Checking whether Permission Set has policy
- Print
- PDF
Checking whether Permission Set has policy
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
You can check whether a user-defined policy exists in an account.
Requests
- GET /permission-sets/{permissionSetId}/exists-policy
Request path
Parameters | Requirement status | Type | Restrictions | Description |
---|---|---|---|---|
permissionSetId | Y | String | PermissionSet ID |
Request parameters
Parameters | Requirement status | Type | Restrictions | Description |
---|---|---|---|---|
policyName | Y | String | Name of the user-defined policy to check |
Responses
Response bodies
{
"success": "boolean",
"message": ["String"]
}
Parameters | Type | Description | Restrictions |
---|---|---|---|
success | Boolean | Whether the policy exists in the account true: no account exists with the permissionSet assigned or the account contains the user-defined policy. false: account exists with the permissionSet assigned and the account does not contain the user-defined policy. | |
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 | PermissionSet does not exist. |
Was this article helpful?