GetGroupByApp
≥4.8.1
Interface Function
Get Group under the current Application.
Request Parameter
Parameter | Type | Required | Default | Remarks |
---|---|---|---|---|
OnlyCurrentApp | bool | false | true | When true, only get the private group of the current Application, when false, get the shared group of the tenant and the private group of the current Application |
PageIndex | int | true | 1 | Page number |
PageSize | int | true | 10 | Page size |
[warning] Note
In order to control the interface performance and the amount of data returned, this interface limits PageSize to a maximum of 100. Interfaces force to return 100 pieces of data when exceeding the maximum value.
Return Data Type
Refer to Return Sample
Input Sample
{
"OnlyCurrentApp":"true",//This parameter is optional.
"PageIndex":1,
"PageSize":5
}
Return Sample
{
"StatusCode": 200,
"Info": "Request (or process) succeeded",
"Data": {
"Groups": [
{
"_id": null,
"GroupName": "DemoGroup",
"GroupDescription": "",
"ParentID": "a0dc3cc4-b16b-4922-ab60-24db8d79bb5c",
"OrganizationCode": "DemoTenant",
"GroupID": "22592e9a-3ccf-413e-b211-7dd2efa8bcc6",
"CreateDate": "2019-11-14T07:33:56.42Z",
"ActiveFlag": null,
"ParentName": null,
"ApplicationCode": "DemoApp@DemoTenant",
"GroupType": "AppGroup",
"CreateBy": null,
"LastModifyBy": null,
"Attribute1": "",
"Attribute2": "",
"Attribute3": "",
"APIAccess": null,
"CurrentUserID": null
}
],
"Pages": 1,
"Rows": 1
}
}