[user-attribute-definitions] stanza
Use the [user-attribute-definitions] stanza to modify the data type, the category, or both of a custom attribute.
attr_ID.datatype = data_type attr_ID.category = category_name
Use the appropriate stanza entry syntax depending on if we want to set the data type or category of a custom attribute from the default values.
Options
- attr_ID
- Attribute identifier for which we want to set the data type or category. The attribute ID must match the name in the [azn-decision-info] stanza entry.
- datatype data_type
- Set the data type of an attribute from the default of string to a specified data_type. Your choices are:
- string
- boolean
- integer
- double
- time
- date
- x500name
- category category_name
- Set the category of an attribute from the default of Environment to a specified category_name. Your choices are:
- Environment
- Subject
- Action
- Resource
Usage
This stanza entry is not required.
Default value
The default value for data type is string.
The default value for category is Environment.
Example: Updating the data type for JSON data
If we defined a custom attribute in the [azn-decision-info] stanza as:
urn:example:company:txn:value = post-data:/"accountBalances"/"savings"Then, we can set the data type of urn:example:company:txn:value to double using the following stanza and entry:
[user-attribute-definitions] urn:example:company:txn:value.datatype = doubleExample: Updating the category for form data
If we defined a custom attribute in the [azn-decision-info] stanza as:
urn:example:company:txn:userid = post-data:useridThen, we can set the category of urn:example:company:txn:userid to Subject using the following stanza and entry:
[user-attribute-definitions] urn:example:company:txn:userid.category = SubjectParent topic: Custom attributes for the authorization service