Get Groups In Organizations By Organization Id And Group Search Term Using GET
Search groups in organization having display name which "contains" search term.
Search results limited to first 20 results. Please refine the search term for accurate results.
Organization members will receive basic group information. Organization owners will additionally receive role details of the groups.
Access Policy
Role | User Accounts | Service Accounts (Client Credentials Applications) |
---|---|---|
Organization Member | ✔️ | ✔️ |
Organization Admin | ✔️ | ✔️ |
Organization Owner | ✔️ | ✔️ |
Unique identifier (GUID) of the organization.
The string to be searched within groups' display name.
OK
{
"results": [
{
"groupType": "string",
"displayName": "string",
"id": "string",
"organizationRoles": [
{
"displayName": "string",
"name": "string",
"expiresAt": 3609941597,
"createdBy": "string",
"lastUpdatedDate": "string",
"resource": "string",
"membershipType": "string",
"createdDate": "string",
"lastUpdatedBy": "string"
}
],
"serviceRoles": [
{
"serviceRoleNames": [
"string"
],
"serviceDefinitionId": "string",
"serviceRoles": [
{
"createdBy": "string",
"lastUpdatedBy": "string",
"name": "string",
"lastUpdatedDate": "string",
"expiresAt": 3609941597,
"membershipType": "string",
"resource": "string",
"createdDate": "string"
}
]
}
],
"ownerOrgId": "string",
"domain": "string",
"sharedOrgIds": [
"string"
],
"customRoles": [
{
"createdBy": "string",
"lastUpdatedBy": "string",
"name": "string",
"lastUpdatedDate": "string",
"expiresAt": 3609941597,
"membershipType": "string",
"resource": "string",
"createdDate": "string"
}
],
"usersCount": 0,
"description": "string"
}
]
}
List of groups that are found.
groupSearchTerm query parameter must be specified
"CspErrorResponse Object"
cspErrorCode
message
errorCode
requestId
moduleCode
statusCode
The user is not authorized to use the API
"CspErrorResponse Object"
cspErrorCode
message
errorCode
requestId
moduleCode
statusCode
The user is forbidden to use the API
"CspErrorResponse Object"
cspErrorCode
message
errorCode
requestId
moduleCode
statusCode
Organization with this identifier is not found.
"CspErrorResponse Object"
cspErrorCode
message
errorCode
requestId
moduleCode
statusCode
The user has sent too many requests
"CspErrorResponse Object"
cspErrorCode
message
errorCode
requestId
moduleCode
statusCode
An unexpected error has occurred while processing the request
"CspErrorResponse Object"
cspErrorCode
message
errorCode
requestId
moduleCode
statusCode
curl -H 'Authorization: <value>' https://{api_host}/csp/gateway/am/api/orgs/{orgId}/groups-search?groupSearchTerm=v