Samples
Sample user model
The examples in this section use the following model:
{
"user": {
"name": {
"given": "John",
"family": "Doe"
},
"role": "SA",
"memberOfGroupNames": ["Admin", "User"],
"groupDNs": [
"CN=Devs,CN=Users,DC=malibu,DC=gl,DC=lab",
"CN=Admins,CN=Users,DC=malibu,DC=gl,DC=lab"
]
}
}
Expression | Result |
---|---|
|
FirstName |
|
User |
|
1 |
|
true |
|
['USER'] |
|
|
Expression | Result |
---|---|
|
FirstName, LastName |
|
John, Doe |
Expression | Result |
---|---|
|
JDoe |
Expression | Result |
---|---|
|
[test] |
Expression | Result |
---|---|
|
Friday, 01 January; 10:15 AM |
Expression | Result |
---|---|
|
John Doe, Software Architect |
Expression | Result |
---|---|
|
[ "ADMIN", "USER" ] |
Expression | Result |
---|---|
|
[ "CN=Admin,DC=example,DC=com", "CN=User,DC=example,DC=com" ] |
Expression | Result |
---|---|
|
[ "Devs", "Admins" ] |
Accessing property names with non-alphanumeric characters
If a property name contains any characters other than alpha-numeric characters and underscores (_
), use the map access format instead of dot notation.
The examples in this section use the following model:
{
"providerAttributes": {
"full-name": "John Doe",
"http://www.schema.com/samples/userId": "jdoe00",
"Email Address": "johndoe00@test.com"
},
"custom-attributes": {
"email": "johndoe00@test.com"
}
}
Expression | Result |
---|---|
|
John Doe |
Expression | Result |
---|---|
|
jdoe00 |
Expression | Result |
---|---|
|
johndoe00@test.com |
Expression | Result |
---|---|
|
johndoe00@test.com |