Remove Policy from User/User Group/Service Account


Remove policies from a user, user group, or service account.

Operation Permissions

Applications assigned with the administrator policy in the OU.

Request Format

POST https://{apigw-address}/enos-iam-service/v2.3/policy/revoke

Request Parameters (URI)

Name

Location (Path/Query)

Required/Optional

Data Type

Description

orgId

Query

Required

String

The ID of the OU to which the user/user group/service account belongs to. How to get orgId>>

Request Parameters (Body)

Name

Required/Optional

Data Type

Description

subjectIds

Required

String

The ID of the user/user group/service account to remove the policy from. subjectIds has to align with the subjectType.

subjectType

Required

String

The subject type. Available values are: user, user_group, and app_instance. subjectType has to align with the subjectIds.

policy

Required

RemovePolicy Struct

The information of the policies to be removed. For more information, see RemovePolicy Struct.

Samples

Request Sample

url: https://{apigw-address}/enos-iam-service/v2.3/policy/revoke?orgId=yourOrgId
method: POST
request Body:
{
  "policy": {
    "delete": [
      "123"
    ]
  },
  "subjectIds": "userGroupId359",
  "subjectType": "user_group"
}

Return Sample

{
  "fail": false,
  "data": true,
  "success": true,
  "status": 0
}