design
This commit is contained in:
@@ -294,6 +294,11 @@ export class LldapService {
|
||||
return response.groups;
|
||||
}
|
||||
|
||||
async findGroupByDisplayName(displayName: string): Promise<LldapGroup | null> {
|
||||
const groups = await this.listGroups();
|
||||
return groups.find((group) => group.displayName === displayName) ?? null;
|
||||
}
|
||||
|
||||
async getGroup(groupId: number): Promise<LldapGroup> {
|
||||
const response = await this.graphql<{ group: LldapGroup }>(
|
||||
`query Group($groupId: Int!) {
|
||||
|
||||
Reference in New Issue
Block a user