Checking whether Permission Set has policy
    • PDF

    Checking whether Permission Set has policy

    • PDF

    Article summary

    You can check whether a user-defined policy exists in an account.

    Requests

    • GET /permission-sets/{permissionSetId}/exists-policy

    Request path

    ParametersRequirement statusTypeRestrictionsDescription
    permissionSetIdYStringPermissionSet ID

    Request parameters

    ParametersRequirement statusTypeRestrictionsDescription
    policyNameYStringName of the user-defined policy to check

    Responses

    Response bodies

    {
      "success": "boolean",
      "message": ["String"]
    }
    
    ParametersTypeDescriptionRestrictions
    successBooleanWhether 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.
    messageArrayFailure 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 codeError codeError message
    400400Invalid request
    400500Policy does not exist.
    400400PermissionSet does not exist.

    Was this article helpful?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.