Checking whether account has user-defined policy
- Print
- PDF
Checking whether account has user-defined policy
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
You can check if the target account has a user-defined policy.
Requests
- GET /assignments/exists-policy
Request parameters
Parameters | Requirement status | Type | Restrictions | Description |
---|---|---|---|---|
accountMbrNo | Y | String | Target account | |
permissionSetId | Y | String | PermissionSet ID |
Responses
Response bodies
{
"success": "boolean",
"message": {
"userCreatedPolicyName": "String"
}
}
Parameters | Type | Description | Restrictions |
---|---|---|---|
success | Boolean | Whether the account has the policy true: The permissionSet has no user-defined policy added or the user-defined policy exists in the account. false: The permissionSet has the user-defined policy added but the user-defined policy does not exist in the account. | |
message | Array | Failure error message |
Errors
Errors that may occur while using this action are listed below. For error response format, see ErrorResponse.
For more information on common errors, see NAVER Cloud Platform API.
HTTP status code | Error code | Error message |
---|---|---|
400 | 400 | Invalid request. |
400 | 500 | Policy does not exist. |
400 | 400 | Permission Set does not exist. |
Was this article helpful?