Skip to content

Update an application group

Request

OAuth 2.0 scope:
  • okta.apps.manage

Updates a group assignment to an app

Path
appIdstringrequired

Application ID

Example:0oafxqCAJWWGELFTYASJ
groupIdstringrequired

The id of the group

Example:00g1emaKYZTWRYYRRTSK
Bodyapplication/json
Array [
opstring(PatchAction)

The operation (PATCH action)

Enum ValueDescription
remove

Removes the attribute in path if allowed

replace

Replaces the attribute in content path with the content in value

pathstring

The resource path of the attribute to update

valueobject

The update operation value

]
curl -i -X PATCH \
  https://subdomain.okta.com/api/v1/apps/0oafxqCAJWWGELFTYASJ/groups/00g1emaKYZTWRYYRRTSK \
  -H 'Content-Type: application/json' \
  -d '[
    {
      "op": "replace",
      "path": "/profile/manager",
      "value": "Carlo Ancelotti"
    }
  ]'

Responses

Success

Bodyapplication/json
idstringread-only

ID of the group

Example:"00g4hb1HChfUriNgW0g4"
lastUpdatedstring, (date-time)(lastUpdatedProperty)read-only

Timestamp when the object was last updated

Example:"2014-06-24T15:28:14.000Z"
priorityinteger

Priority assigned to the group. If an app has more than one group assigned to the same user, then the group with the higher priority has its profile applied to the application user. If a priority value isn't specified, then the next highest priority is assigned by default. See Assign attribute group priority and the sample priority use case.

Example:99
profileobject(GroupAssignmentProfile)

Specifies the profile properties applied to application users that are assigned to the app through group membership. Some reference properties are imported from the target app and can't be configured. See profile.

_embeddedobjectread-only

Embedded resource related to the Application Group using the JSON Hypertext Application Language specification. If the expand=group query parameter is specified, then the group object is embedded. If the expand=metadata query parameter is specified, then the group assignment metadata is embedded.

Response
{ "id": "00g15acRUy0SYb9GT0g4", "priority": 0, "lastUpdated": "2024-06-03T13:42:20.000Z", "profile": { "preferredLanguage": "English", "securityQuestion": "Who is the footballer to have played the game", "securityAnswer": "Jay Jay Okocha", "timezone": "Canada/Eastern", "initialStatus": "active_with_pass", "managerId": "ike.ogb@gmail.com", "locale": "en_US", "division": "top", "organization": null, "userType": null, "department": "Accounting", "manager": "Carlo Ancelotti" }, "_links": { "app": { … }, "self": { … }, "group": { … } } }