Approve a list of users
POST /apim/approve_users
Overview
This API approves the user ID or a list of user IDs that appear in the 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 for approval
Request
POST https://{controlplane_path}/api/1/rest/public/apim/approve_users
Path parameters
Key | Description |
---|---|
controlplane_path |
Required. The path to the SnapLogic Control Plane:
elastic.snaplogic.com
For the UAT or EMEA control plane, substitute the name for elastic . For
example:
|
Query parameters
None.
Request header
In the request header, specify Basic
for authorization, add your credentials, and specify 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
Response body
{
"response_map": {
"successful approvals": [
{
"User IDs": [
"[email protected]",
"[email protected]"
]
}
],
"failed approvals": [
{
"User [email protected]": "User has not requested access to this org"
},
{
"User [email protected]": "User has not requested access to this org"
}
]
}
}
Key | Type | Description |
---|---|---|
{ "Successful Approvals"
: <list of usernames> }
|
array | The JSON object array contains the list of user IDs that are successfully approved. |
{ "Failed Approvals" :
<list of username: error when approving> }
|
array | The JSON object array contains the list of user IDs that failed the approval process. |