Search Clients By Roles
Searches OAuth2 clients based on the assigned roles.Note: If no filters are provided, all client-role assignments in the tenant will be returned.
The VMware Identity Services tenant ID
my-tenant
The index of the page. Pages start with index 1.
1
Number of results per page.
50
Roles assigned to the OAuth2 clients for filtering. Allowed values for filtering are client_type, client_uuid, description, display_name, roles and role_name. Sorting by can be done by any of the following: client_uuid, client_id, display_name, description, and client_type.
{
"filters": {
"and": [
{
"key": "string",
"values": [
"string"
],
"operator": "string"
}
],
"or": [
{
"key": "string",
"values": [
"string"
],
"operator": "string"
}
]
},
"_links": {
"self": {
"href": "https://example.com/path-to-self"
}
},
"sort_by": "string",
"sort_order": "string"
}
Defines groups of filters that apply AND and OR logical operations
The resource HATEOAS links. Usually includes a "self" link for this resource
Field name by which the result will be sorted, e.g., 'client_id'
Order in which results will be sorted: 'asc' or 'desc'
OAuth2 clients successfully found based on roles
{
"items": [
{
"scope": [
"admin",
"openid",
"profile",
"email"
],
"_links": {
"self": {
"href": "https://example.com/path-to-self"
}
},
"client_uuid": "d53b5824-78ff-4897-b08a-46c8d23b5d0e",
"client_id": "oauth_clientid",
"display_name": "VM Activity Monitor",
"description": "Service account for nightly sync job",
"created_date": "string",
"modified_date": "string",
"client_type": "API_CLIENT",
"roles": [
{
"name": "admin",
"resources": [
"string"
],
"_links": {
"self": {
"href": "https://example.com/path-to-self"
}
},
"display_name": "Administrator",
"membership_type": [
"DIRECT",
"GROUP"
],
"group_ids": [
"groupId1",
"groupId2"
],
"sub_roles": [
{
"type": "nsx",
"names": [
{
"name": "moderator",
"display_name": "Moderator"
}
],
"_links": {
"self": {
"href": "https://example.com/path-to-self"
}
}
}
],
"expires_at": 1700000000000
}
]
}
],
"totalCount": 0,
"pageNumber": 0,
"totalPages": 0,
"pageSize": 0,
"_links": {
"self": {
"href": "https://example.com/path-to-self"
}
}
}
Request contains invalid information
The role or tenant was not found.
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/vnd.vmware.horizon.manager.accesscontrol.roles.search+json' -d '{}' https://{api_host}/acs/t/{tenant}/broker/oauth2-clients/search