Merge pull request #10145 from Budibase/BUDI-6683-map-display-name

BUDI-6683 - Add and map display name in scim
This commit is contained in:
Adria Navarro 2023-03-29 19:30:22 +02:00 committed by GitHub
commit 523a1b95a4
3 changed files with 4 additions and 6 deletions

View File

@ -11,6 +11,7 @@ export interface ScimUserResponse extends ScimResource {
resourceType: "User"
}
userName: string
displayName?: string
name: {
formatted: string
familyName: string
@ -44,6 +45,7 @@ export interface ScimCreateUserRequest {
meta: {
resourceType: "User"
}
displayName?: string
name: {
formatted: string
familyName: string

View File

@ -54,9 +54,10 @@ export interface User extends Document {
userGroups?: string[]
onboardedAt?: string
scimInfo?: {
isSync: boolean
userName: string
externalId: string
isSync: boolean
displayName?: string
}
}

View File

@ -395,11 +395,6 @@ describe("scim", () => {
const body: ScimUpdateRequest = {
schemas: ["urn:ietf:params:scim:api:messages:2.0:PatchOp"],
Operations: [
{
op: "Add",
path: "displayName",
value: structures.generator.name(),
},
{
op: "Add",
path: "preferredLanguage",