Retrieve a list of pending users
GET https://{controlplane_path}/api/1/rest/public/apim/pending_user_requests
Overview
Retrieve the user ID or a list of user IDs pending for approval. You can check the pending users under Subscription Manager.
Prerequisites
- Org admin (Environment admin) permissions
- Developer portal login credentials
Request
GET https://{controlplane_path}/api/1/rest/public /apim/pending_user_requests?{query_parameter}
Example
This example uses Basic authentication. For a JWT example, refer to Authentication.
curl -X 'GET' \
'https://elastic.snaplogic.com/api/1/rest/public/apim/pending_user_requests?org_name=acme' \
-H 'Authorization: Basic {base64_encoded email:password}'
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
| Key | Type | Description |
|---|---|---|
org_name |
string | Specify the Org name to retrieve the pending user ID or list of user IDs. |
Request header
Use the application/json content type with basic authentication (email
and password) or a JWT. For examples, refer to Authentication.
Request body
None
Response
{
"Pending user requests": [
{
"username": "[email protected]",
"first_name": "John",
"last_name": "Doe",
"request_time": "2024-02-07T20:35:26.825000+00:00",
"org_snid": "64278be86d968c8a2b49e561",
"_id": "65c3e98e69efcdfdc9c980ac"
},
{
"username": "[email protected]",
"first_name": "Erica",
"last_name": "James",
"request_time": "2024-03-15T12:45:36.123000+00:00",
"org_snid": "64278be86d968c8a2b49e561",
"_id": "65c3e98e69efcdfdc9c980ad"
}
]
}
| Key | Type | Description |
|---|---|---|
|
string |
The array of the JSON object contains:
|
Error handling
| HTTP status codes | Message | Resolution |
|---|---|---|
| 400 | May not have Read permission for org: {org_name} | Verify you have Org admin permissions. |
| 400 | Error in fetching the request: {exception} | Check the error message for details and retry. |
| 401 | Unauthorized | Verify your credentials and that you have Org admin permissions. |