Skip to content

Unassign an admin role app target

Request

OAuth 2.0 scope:
  • okta.roles.manage

Unassigns an OIN app target from an APP_ADMIN role assignment to an admin user.

Note: You can't remove the last OIN app target from a role assignment since this causes an exception. If you need a role assignment that applies to all apps, delete the APP_ADMIN role assignment to the user and recreate a new one.

Path
userIdstringrequired

ID of an existing Okta user

Example:00ub0oNGTSWTBKOLGLNR
roleAssignmentIdstringrequired

The id of the role assignment

Example:JBCUYUC7IRCVGS27IFCE2SKO
appNamestringrequired

Name of the app definition (the OIN catalog app key name)

Example:google
curl -i -X DELETE \
  https://subdomain.okta.com/api/v1/users/00ub0oNGTSWTBKOLGLNR/roles/JBCUYUC7IRCVGS27IFCE2SKO/targets/catalog/apps/google

Responses

No Content

Response
No content