User Identifiers API
Introduction
The User Identifiers API allows Mendix admins to perform operations related to user identifiers within their company, such as obtaining the user UUIDs of specific email addresses.
Authentication
Authentication for the User Identifiers API uses a personal access token (PAT).
Generating a PAT
To generate a PAT, see the Personal Access Tokens section of User Settings.
Select the following as User Identifiers API scopes:
mx:mxid3:user-identifiers:uuid:read
– to obtain the user’s UUIDs
Store the generated value {GENERATED_PAT}
somewhere safe so you can use it to authorize your User Identifiers API calls.
Using the PAT
Each request must contain an Authorization
header with the value MxToken {GENERATED_PAT}
. Here is an example:
GET /api/user-identifiers/v1/uuids HTTP/1.1
Authorization: MxToken 7LJE…vk
To authenticate calls when using the Open API specification below, click Authorize and use the value MxToken {GENERATED_PAT}
.
Examples
Using the API to Retrieve User UUIDs
The following steps lead to retrieval of user’s UUIDs of the email addresses provided in {emailAddresses}.
-
Set up your authentication PAT. You must be a Mendix Admin.
-
Create a request body containing the email addresses under
emailAddresses
. For example, to get user UUIDs ofjane.doe@domain.tld
andjohn.doe@domain.tld
, provide a body like this:{ "emailAddresses":[ { "emailAddress":"jane.doe@domain.tld" }, { "emailAddress":"john.doe@domain.tld" } ] }
-
Call
GET /api/user-identifiers/v1/uuids
to get the UUIDs of the provided email addresses.