GetGroupByApp
≥4.8.1
Interface Function
Get Group under the current Application.
Request Parameter
Parameter | Type | Required | Default | Remarks |
---|---|---|---|---|
OnlyCurrentApp | bool | false | true | Get only 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
Return Sample
{
"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
}
Code example
//
bool OnlyCurrentApp=false;
int PageIndex=1;
int PageSize=20;
var result=Service.GetGroupByApp(OnlyCurrentApp,PageIndex,PageSize);
Service.ConsoleLog("GetGroupApp result",result);