mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-01 00:08:27 +01:00
31bf7825c0
https://linear.app/unleash/issue/2-2111/api-should-not-allow-manual-management-of-scim-managed-groups-in Introduces a SCIM guard for SCIM groups. SCIM groups should be managed exclusively by the SCIM client, not Unleash. We decided to be restrictive for now, completely covering all of the write methods, but may fine-tune some of this at a later stage. Will eventually be followed up by a UI-centric PR.
26 lines
457 B
TypeScript
26 lines
457 B
TypeScript
import type { IUser } from './user';
|
|
|
|
export interface IGroup {
|
|
id: number;
|
|
name: string;
|
|
description: string;
|
|
createdAt: Date;
|
|
users: IGroupUser[];
|
|
projects: string[];
|
|
addedAt?: string;
|
|
userCount?: number;
|
|
mappingsSSO: string[];
|
|
rootRole?: number;
|
|
scimId?: string;
|
|
}
|
|
|
|
export interface IGroupUser extends IUser {
|
|
joinedAt?: Date;
|
|
}
|
|
|
|
export interface IGroupUserModel {
|
|
user: {
|
|
id: number;
|
|
};
|
|
}
|