Deny a list of users

POST /apim/deny_users

Overview

This API denies access to the user ID or a list of user IDs that appear in created status under Subscription Manager.

Note: The approval process is unsuccessful if the user is not registered in Developer Portal.

Prerequisites

  • Org admin (Environment admin) permissions
  • Developer portal login credentials
  • Specify the user ID or list of user IDs access denial

Request

POST https://{controlplane_path}/api/1/rest/public/apim/deny_users

Path Parameters

Key Description
controlplane_path Required. The path to the SnapLogic control plane.

Example: cdn.elastic.snaplogic.com

For other control planes, substitute the subdomain name for elastic. For example:
  • cdn.uat.snaplogic.com
  • cdn.emea.snaplogic.com

Query Parameters

None.

Request Header

Specify Basic for authorization and application/json for content type.


Authorization: Basic {your_encoded_security_credentials}
Content-Type: application/json
          

Request Body

{
  "org_name": "...",
  "user_ids": [ ... ]
}               
Key Type Description
org_name string The name of the SnapLogic Environment/Org
user_ids array/string An array that contains the user ID or a list of user IDs

Response

Example Response Body


{
  {
  "response_map": {
    "successful denials": [
      {
        "User IDs": [
          "[email protected]",
          "[email protected]"
        ]
      }
    ],
    "failed denials": [
      {
        "User [email protected]": "User is not registered"
      },
      {
        "User [email protected]": "User is not registered"
      }
    ]
  }
}       
Key Type Description
{ "Successful Denials" : <list of usernames>(list of strings) } array The JSON object array contains the list of user IDs that are successfully denied.
{ "Failed denials" : < list of username: error when approving> } array The JSON object array contains the list of user IDs that failed the denial process.