list_verticals_users¶
- VerticalsApi.list_verticals_users(role_id, _request_timeout=None, _request_auth=None, _content_type=None, _headers=None, _host_index=0)¶
List users and their allowed apps
Returns Cognito-confirmed users (CONFIRMED when IDP is disabled, EXTERNAL_PROVIDER when IDP is enabled) with UserId, FullName, EmailId, and AllowedApps. Requires verticals.view on role_id. AllowedApps defaults to [“amorphic”]. When Cognito custom:attr3 (allowed_apps=…) is present, this endpoint is called without a vertical type, so AllowedApps is the intersection of the user’s apps with amorphic only. Identity-provider users use custom:username as UserId when present. This Lambda maps InvalidInputException and UnauthorizedUserException to HTTP 400. Example: GET /verticals/users
- Parameters:
role_id (str) – Amorphic role ID used to authorize the request. Must grant verticals.view. The caller must belong to the role. (required)
_request_timeout (int, tuple(int, int), optional) – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
_request_auth (dict, optional) – set to override the auth_settings for an a single request; this effectively ignores the authentication in the spec for a single request.
_content_type (str, Optional) – force content-type for the request.
_headers (dict, optional) – set to override the headers for a single request; this effectively ignores the headers in the spec for a single request.
_host_index (int, optional) – set to override the host_index for a single request; this effectively ignores the host_index in the spec for a single request.
- Return type:
- Returns:
Returns the result object.
Request and Response Examples¶
HTTP: GET /verticals/users
Parameter examples¶
Name |
In |
Example |
|---|---|---|
|
header |
|
Success (HTTP 200)¶
Wrapper object with a Users array. Not paginated.
Request / response example
{
"Users": [
{
"UserId": "jane.doe",
"FullName": "Jane Doe",
"EmailId": "jane.doe@example.com",
"AllowedApps": [
"amorphic"
]
}
]
}
Errors¶
Documented error codes: AUTH-1001.
HTTP 400
InvalidInputException or UnauthorizedUserException. Body is {“Message”: “<CODE> - <text>”}.
missingRole
{
"Message": "AUTH-1001 - Missing role information in event header"
}
HTTP 500
GenericFailure, InconsistentMetadata, or unhandled exception. Body is {“Message”: “<CODE> - <text>”} or a raw exception string.
unexpected
{
"Message": "Unexpected error - <exception text>"
}