Skip to content

Assign a client role app instance target

Request

OAuth 2.0 scope:
  • okta.roles.manage

Assigns an app instance target to an APP_ADMIN role assignment to a client. When you assign the first OIN app or app instance target, you reduce the scope of the role assignment. The role no longer applies to all app targets, but applies only to the specified target.

Note: You can target a mixture of both OIN app and app instance targets, but you can't assign permissions to manage all instances of an OIN app and then assign a subset of permissions to the same app. For example, you can't specify that an admin has access to manage all instances of the Salesforce app and then also manage only specific configurations of the Salesforce app.

Path
clientIdstringrequired

client_id of the app

Example:52Uy4BUWVBOjFItcg2jWsmnd83Ad8dD
roleAssignmentIdstringrequired

The id of the role assignment

Example:JBCUYUC7IRCVGS27IFCE2SKO
appNamestringrequired

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

Example:google
appIdstringrequired

Application ID

Example:0oafxqCAJWWGELFTYASJ
curl -i -X PUT \
  https://subdomain.okta.com/oauth2/v1/clients/52Uy4BUWVBOjFItcg2jWsmnd83Ad8dD/roles/JBCUYUC7IRCVGS27IFCE2SKO/targets/catalog/apps/google/0oafxqCAJWWGELFTYASJ

Responses

No Content

Response
No content