MENU
      Checking whether account has user-defined policy

        Checking whether account has user-defined policy


        Article summary

        You can check if the target account has a user-defined policy.

        Requests

        • GET /assignments/exists-policy

        Request parameters

        ParametersRequirement statusTypeRestrictionsDescription
        accountMbrNoYStringTarget account
        permissionSetIdYStringPermissionSet ID

        Responses

        Response bodies

        {
          "success": "boolean",
          "message": {
            "userCreatedPolicyName": "String"
          }
        }
        JSON
        ParametersTypeDescriptionRestrictions
        successBooleanWhether 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.
        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.
        400400Permission Set 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.