Skip to content

Upload the group memberships to be deleted in Okta

Request

OAuth 2.0 scope:
  • okta.identitySources.manage

Uploads the group memberships that need to be deleted in Okta from the identity source for the given session

Path
identitySourceIdstringrequired

The ID of the identity source for which the session is created

Example:0oa3l6l6WK6h0R0QW0g4
sessionIdstringrequired

The ID of the identity source session

Example:aps1qqonvr2SZv6o70h8
Bodyapplication/json
membershipsArray of objects, [ 1 .. 200 ] items(IdentitySourceGroupMembershipsDeleteProfile)

Array of group memberships that need to be deleted in Okta

curl -i -X POST \
  https://subdomain.okta.com/api/v1/identity-sources/0oa3l6l6WK6h0R0QW0g4/sessions/aps1qqonvr2SZv6o70h8/bulk-group-memberships-delete \
  -H 'Content-Type: application/json' \
  -d '{
    "memberships": [
      {
        "groupExternalId": "GROUPEXT123456784C2IFA",
        "memberExternalIds": [
          "USEREXT123456784C2IFA",
          "USEREXT123456784C3IFB",
          "USEREXT123456784C4IFC"
        ]
      },
      {
        "groupExternalId": "GROUPEXT123456784C2IFB",
        "memberExternalIds": [
          "USEREXT123456784C2IFA",
          "USEREXT123456784C3IFB",
          "USEREXT123456784C4IFC"
        ]
      }
    ]
  }'

Responses

Accepted

Response
No content