Search User Group

Search / Get the details about a user group. The user group can be filtered by the given input.

URL

/usergroup-search

Type

POST

Parameter

Param Type Name Description Field Type
Header sessionId ** Session Id received after login string
Query Gwkey Tenant Key. Needed only in case of multitenant installations string
Query gwsource** Source from which the request is triggered (Eg: web, external) String
Payload filterValue Input filter value string to filter the role. String
Payload sortColumn Column by which the output has to be sorted String
Payload startIndex Start index to show in output in case if there are more than one matching records Integer
Payload maxSize The number of records to return in a response. maxSize is starting from the start index Integer
Payload sortOrder Order of sorting. Possible values are asc and desc String

** - Mandatory value

Possible Response MESSAGE & CODE

HTTP Code Description Response Message
200 Accepted Matching results found for the given input.
404 Bad request No matching records found

Sample Request/Response

Use Case

Get the details about a user group with the name usergroup_1.

Request URL

http://appviewxapi.com/avxapi/usergroup-search?gwkey=f000ca01&gwsource=external

Request Payload

{

"payload": {

"startIndex" : 1,

"maxSize" :1,

"sortColumn" : "name",

"sortOrder":"asc",

"filterValue" : "admin usergroup"

}

}

Response

{

"response":{

"data":[

{"name": " usergroup_1", "description": "Test user group", "roles":[], "aclIdentifiers":[],…}

],

"totalRecords": 1,

"obtainedRecords": 1,

"obtainedRecordRange":{

"start": 1,

"end": 1

}

},

"message": "Matching results found for the given input.",

"appStatusCode": null,

"tags": null,

"headers": null

}