
NiviM.71991 (Customer) asked a question.
I'm trying to debug an issue with assignment of users to groups.
I'm using OKTA API to assign users to groups, using the endpoint {OKTA_DOMAIN}/api/v1/groups/{group_id}/users/{user_id}"
The request fails with the following:
Add-to-group [403]: {"errorCode":"E0000006","errorSummary":"You do not have permission to perform the requested action","errorLink":"E0000006","errorId":"xxxxx","errorCauses":[]}
2026-05-20 17:58:37,436 [ERROR] Failed [403]: {"errorCode":"E0000006","errorSummary":"You do not have permission to perform the requested action","errorLink":"E0000006","errorId":"xxxxxxx","errorCauses":[]}
I know what the error E0000006 means but I need more details. I know of a few cases where this error is thrown when trying to add users to groups but none of them fit my case. I do have the errorId but I tried to look it up in the system logs and I get nothing.
How can I get more details why the request failed to add the user to the group?

Hi @Paul S. (Okta, Inc.)
Thanks for the detailed answer. It helped me pinpoint the issue.
The app has a custom admin role that is restricted to specific resources. The solution was to add the group in question to the list of resources that the role can manage.
Thank you!