curl --request GET \
--url https://api.sandbox.tesouro.com/identity/v1/users \
--header 'Authorization: Bearer <token>'{
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdDateTime": "2023-11-07T05:31:56Z",
"email": "<string>",
"isExpenseApprover": true,
"name": "<string>",
"organizationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"organizationName": "<string>",
"status": "<string>",
"department": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"jobTitle": "<string>",
"lastLoggedInDateTime": "2023-11-07T05:31:56Z",
"location": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"role": "<string>"
}
],
"nextPaginationToken": "<string>",
"prevPaginationToken": "<string>"
}Returns users from the target organization AND all organizations below it in the hierarchy. When X-Organization-ID header is provided, uses that org as target (if visible to caller). When no header is provided, defaults to the caller’s own organization. Supports optional filtering by organization type, user status, and pagination. Requires the user:read scope.
Token types: APP, USER | Required scopes: user:read
curl --request GET \
--url https://api.sandbox.tesouro.com/identity/v1/users \
--header 'Authorization: Bearer <token>'{
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdDateTime": "2023-11-07T05:31:56Z",
"email": "<string>",
"isExpenseApprover": true,
"name": "<string>",
"organizationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"organizationName": "<string>",
"status": "<string>",
"department": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"jobTitle": "<string>",
"lastLoggedInDateTime": "2023-11-07T05:31:56Z",
"location": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"role": "<string>"
}
],
"nextPaginationToken": "<string>",
"prevPaginationToken": "<string>"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
ID of the organization to scope this operation to. When omitted, users from the target org and all its descendants are returned. Must be a valid non-empty UUID. Present but empty or malformed values return 400.
Filter by organization type (VERTICAL_SOFTWARE_PROVIDER, EMBEDDED).
BANK, EMBEDDED, PLATFORM, TRANSACTOR, VERTICAL_SOFTWARE_PROVIDER Maximum number of results to return (default: 20, max: 100).
Opaque pagination token from a previous response for cursor-based navigation.
Filter by user status (default: ACTIVE). Filter for user status when querying users.
ACTIVE, INACTIVE, INVITED, ALL Returns the list of users from related organizations.
Response DTO for listing users from related organizations.
Show child attributes
A token to pass as pagination_token to get the next page of results. Null if there are no more pages after this one.
A token to pass as pagination_token to get the previous page of results. Null if this is the first page.
Was this page helpful?