curl "https://anypoint.mulesoft.com/accounts/api/organizations/<OrganizationID>/users?limit=100&offset=0" \ -H "authorization: bearer <AccessToken>"Note: If the query parameter of limit=100 is not provided, then the response would be default to 25 users. The response will include up to 100 users (as per the set limit) and will look like:
{
"data": [
{
"id": "a1234b56-7c89-012d-3e4f-g56hi78jk901",
"username": "userSample",
"firstName": "user",
"lastName": "sample",
"email": "user.sample@example.com",
"organizationId": "a1234b56-7c89-012d-3e4f-g56hi78jk901",
"enabled": true,
"idprovider_id": "example",
"createdAt": "2020-01-01T00:00:00.000Z",
"updatedAt": "2020-01-01T00:00:00.000Z",
"lastLogin": "2020-01-01T00:00:00.000Z",
"mfaVerifiersConfigured": false,
"mfaVerificationExcluded": false,
"type": "host",
"organization": {
"name": "Example",
"id": "a1234b56-7c89-012d-3e4f-g56hi78jk901",
"createdAt": "2020-01-01T00:00:00.000Z",
"updatedAt": "2020-01-01T00:00:00.000Z",
"ownerId": "a1234b56-7c89-012d-3e4f-g56hi78jk901",
"clientId": "a1234b567c89012d3e4fg56hi78jk901",
"idprovider_id": "example",
"isFederated": false,
"parentOrganizationIds": [],
"subOrganizationIds": [
"a1234b56-7c89-012d-3e4f-g56hi78jk901",
"a1234b56-7c89-012d-3e4f-g56hi78jk901"
],
"tenantOrganizationIds": [],
"mfaRequired": "no",
"domain": "example-usample",
"isMaster": true,
"subscription": {
"category": "Trial",
"type": "Product",
"expiration": "3020-01-01T00:00:00.000Z"
},
"properties": {},
"entitlements": {
...
<entitlements here>
...
}
}
},
],
"total": 1
}
curl "https://anypoint.mulesoft.com/accounts/api/organizations/<OrganizationID>/users/<UserID>/roles?limit=100&offset=0" \ -H "authorization: bearer <AccessToken>" and curl "https://anypoint.mulesoft.com/accounts/api/organizations/<OrganizationID>/users/<UserID>/rolegroups?limit=100&offset=0" \ -H "authorization: bearer <AccessToken>"The response will include up to 100 roles and rolegroups (as per the set limit) and will respectively look like:
{
"data": [
{
"role_id": "a1234b56-7c89-012d-3e4f-g56hi78jk901",
"context_params": {
"org": "a1234b56-7c89-012d-3e4f-g56hi78jk901",
"product": "exchange",
"projectId": "a1234b56-7c89-012d-3e4f-g56hi78jk901"
},
"name": "Role Name",
"description": "Role Description"
}
],
"total": 1
}
and
{
"data": [
{
"role_group_id": "a1234b56-7c89-012d-3e4f-g56hi78jk901",
"name": "Role Name",
"description": "Role Description",
"context_params": {},
"user_role_group_id": "a1234b56-7c89-012d-3e4f-g56hi78jk901"
}
],
"total": 1
}
001115942

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.