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)

Mandatory/Optional

Data Type

Description

orgId

Query

Mandatory

String

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

Request Parameters (Body)

Name

Mandatory/Optional

Data Type

Description

subjectIds

Mandatory

String

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

subjectType

Mandatory

String

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

policy

Mandatory

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
}