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" resourceType: "User"
} }
userName: string userName: string
displayName?: string
name: { name: {
formatted: string formatted: string
familyName: string familyName: string
@ -44,6 +45,7 @@ export interface ScimCreateUserRequest {
meta: { meta: {
resourceType: "User" resourceType: "User"
} }
displayName?: string
name: { name: {
formatted: string formatted: string
familyName: string familyName: string

View File

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

View File

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