-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Description
Having some trouble with the Google Directory API Connector here - https://github.com/Azure/Azure-Sentinel/tree/master/Solutions/GoogleDirectory/Playbooks/GoogleDirectoryAPIConnector
I'm able to use the 'Updated User' function in a Logic App to reset passwords and such - this works fine following the documentation from the Connector page linked above.
I deployed the "Google-SignOutUser" Playbook but am getting a 403 Forbidden. Permissions appear to be granted per the documentation - not sure what else might be causing this.
To Reproduce
Steps to reproduce the behavior:
- Deploy Google Directory API Connector per the setup docs.
- Deploy the Google-SignOutUser playbook, trigger it.
- Look at error log in Logic App with 403 Forbidden error.
{ "statusCode": 403, "headers": { "Vary": "Origin,X-Origin,Referer", "X-XSS-Protection": "0", "X-Frame-Options": "SAMEORIGIN", "X-Content-Type-Options": "nosniff", "Alt-Svc": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000", "WWW-Authenticate": "Bearer realm=\"https://accounts.google.com/\", error=\"insufficient_scope\", scope=\"https://www.googleapis.com/auth/admin.directory.user.security https://www.googleapis.com/auth/apps.security\"", "Date": "Mon, 02 Mar 2026 18:09:19 GMT", "Content-Length": "658", "Content-Type": "application/json; charset=UTF-8" }, "body": { "error": { "code": 403, "message": "Request had insufficient authentication scopes.", "errors": [ { "message": "Insufficient Permission", "domain": "global", "reason": "insufficientPermissions" } ], "status": "PERMISSION_DENIED", "details": [ { "@type": "type.googleapis.com/google.rpc.ErrorInfo", "reason": "ACCESS_TOKEN_SCOPE_INSUFFICIENT", "domain": "googleapis.com", "metadata": { "method": "ccc.hosted.frontend.directory.v1.DirectoryUsersSessions.ResetUserSessions", "service": "admin.googleapis.com" } } ] } } }
https://www.googleapis.com/auth/admin.directory.user is enabled on the Google Consent page, and it works for updating other user-related data.