Hey, Trying to assign users group_membership_admin role and assign them specific groups they can manage, how can we achieve this via the API ?
Have you checked out the docs for the Roles endpoint? You can make a POST to /api/v1/users/${userId}/roles
to assign a role to the given user, see Administrator Roles | Okta Developer
Then you’ll need to add a group target to the role, with a PUT to /api/v1/users/${userId}/roles/${roleId}/targets/groups/${groupId}
see Administrator Roles | Okta Developer
That solved the issue, thank you.
1 Like
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.