Using a service account to get users
Use the service account and its token you created in previous sections to get users under your tenant.
The API to be used is https://api.<env>.cloud.talend.com/account/users.
Before you begin
- Ensure that the service account to be used to issue API calls has the Users - Manage permission. The ID of this permission is TMC_USER_MANAGEMENT.
About this task
In this section, the following API call is
issued:It
is implemented in Talend API Tester
for demonstration purposes. In Talend API Tester,
you can use an expression builder to dynamically retrieve the service account token
from its related API request.
method: GET
endpoint: https://api.<env>.cloud.talend.com/account/users
headers: {
"Authorization": "Bearer <service_account_token>"
}
payload: N/A