IOrganizationUserGroupsQuery
Service to query valid filter elements for particular filter.
export interface IOrganizationUserGroupsQuery
Methods
Method | Description |
|---|---|
Starts the organization users query. | |
Sets filter for the query. | |
Sets starting page for the query. Backend WILL return no data if the page is greater than total number of pages. Default page: 0 | |
Sets number of users to return per page. Default size is specific per backend |
Method details
IOrganizationUserGroupsQuery.query()method
Starts the organization users query.
query(): Promise<IOrganizationUserGroupsQueryResult>;
Returns
Promise<IOrganizationUserGroupsQueryResult>
promise of first page of the results
IOrganizationUserGroupsQuery.withFilter()method
Sets filter for the query.
withFilter(filter: {
workspace?: string;
group?: string;
name?: string;
dataSource?: string;
}): IOrganizationUserGroupsQuery;
Parameters
Parameter | Type | Description |
|---|---|---|
filter | { workspace?: string; group?: string; name?: string; dataSource?: string; } | filter to apply |
Returns
organization user groups query
IOrganizationUserGroupsQuery.withPage()method
Sets starting page for the query. Backend WILL return no data if the page is greater than total number of pages. Default page: 0
withPage(page: number): IOrganizationUserGroupsQuery;
Parameters
Parameter | Type | Description |
|---|---|---|
page | number | zero indexed, must be non-negative |
Returns
organization users query
IOrganizationUserGroupsQuery.withSize()method
Sets number of users to return per page. Default size is specific per backend
withSize(size: number): IOrganizationUserGroupsQuery;
Parameters
Parameter | Type | Description |
|---|---|---|
size | number | desired max number of organization users per page; must be a positive number |
Returns
organization users query