Class: SCIMMY.Schemas.User
SCIM User Schema
Description
Summary:
- Ensures a User instance conforms to the User schema set out in RFC7643ยง4.1.
Usage
Instantiates a new user that conforms to the SCIM User schema definition
new SCIMMY.Schemas.User(resource, directionopt, basepathopt, filtersopt)
- Extends:
- SCIMMY.Types.Schema
- Source:
- src/lib/schemas/user.js, line 9
Parameters:
Name | Type | Default | Description |
---|---|---|---|
resource
|
Object
|
|
the source data to feed through the schema definition |
directionopt
|
String
|
|
whether the resource is inbound from a request or outbound for a response |
basepathopt
|
String
|
|
the base path for resolution of a resource's location |
filtersopt
|
SCIMMY.Types.Filter
|
|
attribute filters to apply to the coerced value |
Properties:
Name | Type | Description | |||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
userName
|
String
|
unique identifier for the User, typically used by the user to directly authenticate to the service provider. Each User MUST include a non-empty userName value. This identifier MUST be unique across the service provider's entire set of Users. REQUIRED |
|||||||||||||||||||||||||||
nameopt
|
Object
|
the components of the user's real name. Providers MAY return just the full name as a single string in the formatted sub-attribute, or they MAY return just the individual component attributes using the other sub-attributes, or they MAY return both. If both variants are returned, they SHOULD be describing the same name, with the formatted name indicating how the component attributes should be combined Properties
|
|||||||||||||||||||||||||||
displayNameopt
|
String
|
the name of the User, suitable for display to end-users. The name SHOULD be the full name of the User being described, if known |
|||||||||||||||||||||||||||
nickNameopt
|
String
|
the casual way to address the user in real life, e.g. 'Bob' or 'Bobby' instead of 'Robert'. This attribute SHOULD NOT be used to represent a User's username (e.g. 'bjensen' or 'mpepperidge') |
|||||||||||||||||||||||||||
profileUrlopt
|
String
|
a fully qualified URL pointing to a page representing the User's online profile |
|||||||||||||||||||||||||||
titleopt
|
String
|
the user's title, such as 'Vice President' |
|||||||||||||||||||||||||||
userTypeopt
|
String
|
used to identify the relationship between the organization and the user. Typical values used might be 'Contractor', 'Employee', 'Intern', 'Temp', 'External', and 'Unknown', but any value may be used |
|||||||||||||||||||||||||||
preferredLanguageopt
|
String
|
indicates the User's preferred written or spoken language. Generally used for selecting a localized user interface; e.g. 'en_US' specifies the language English and country US |
|||||||||||||||||||||||||||
localeopt
|
String
|
used to indicate the User's default location for purposes of localizing items such as currency, date time format, or numerical representations |
|||||||||||||||||||||||||||
timezoneopt
|
String
|
the User's time zone in the 'Olson' time zone database format, e.g. 'America/Los_Angeles' |
|||||||||||||||||||||||||||
activeopt
|
Boolean
|
a Boolean value indicating the User's administrative status |
|||||||||||||||||||||||||||
passwordopt
|
String
|
the User's cleartext password. This attribute is intended to be used as a means to specify an initial password when creating a new User or to reset an existing User's password |
|||||||||||||||||||||||||||
emailsopt
|
Object[]
|
email addresses for the user. The value SHOULD be canonicalized by the service provider, e.g. 'bjensen@example.com' instead of 'bjensen@EXAMPLE.COM'. Canonical type values of 'work', 'home', and 'other' Properties
|
|||||||||||||||||||||||||||
phoneNumbersopt
|
Object[]
|
phone numbers for the User. The value SHOULD be canonicalized by the service provider according to the format specified in RFC 3966, e.g. 'tel:+1-201-555-0123'. Canonical type values of 'work', 'home', 'mobile', 'fax', 'pager', and 'other' Properties
|
|||||||||||||||||||||||||||
imsopt
|
Object[]
|
instant messaging addresses for the User Properties
|
|||||||||||||||||||||||||||
photosopt
|
Object[]
|
uRLs of photos of the User Properties
|
|||||||||||||||||||||||||||
addressesopt
|
Object[]
|
a physical mailing address for this User. Canonical type values of 'work', 'home', and 'other' Properties
|
|||||||||||||||||||||||||||
groupsopt
|
Object[]
|
a list of groups to which the user belongs, either through direct membership, through nested groups, or dynamically calculated Properties
|
|||||||||||||||||||||||||||
entitlementsopt
|
Object[]
|
a list of entitlements for the User that represent a thing the User has Properties
|
|||||||||||||||||||||||||||
rolesopt
|
Object[]
|
a list of roles for the User that collectively represent who the User is, e.g. 'Student', 'Faculty' Properties
|
|||||||||||||||||||||||||||
x509Certificatesopt
|
Object[]
|
a list of certificates issued to the User Properties
|
Members
(static) id: "urn:ietf:params:scim:schemas:core:2.0:User"
SCIM schema URN namespace
- Type:
- {"urn:ietf:params:scim:schemas:core:2.0:User"}
- Extends:
- SCIMMY.Types.Schema.id
- Source:
- src/lib/schemas/user.js, line 11
(static) definition: SCIMMY.Types.SchemaDefinition
Retrieves a schema's definition instance
- Type:
- {SCIMMY.Types.SchemaDefinition}
- Implements:
- SCIMMY.Types.Schema.definition
- Source:
- src/lib/schemas/user.js, line 16