Skip to content

fromScimUser

reference
1 min readUpdated

Kind: Function

Source: atloria-monorepo/apps/api/src/scim/scim.mapper.ts

Extract the writable fields from an inbound SCIM User resource.

  • email: userName, falling back to the primary (or first) email
  • name: name.formatted → "given family" → displayName → email local-part
  • active: defaults to TRUE when omitted (SCIM create default)

Signature

ts
function fromScimUser(resource: Partial<ScimUserResource> | undefined | null): ScimUserInput

Parameters

NameType
resource`Partial

Returns: ScimUserInput

Was this page helpful?

Download as PDF