attr_ID

Specify attr_ID entries to modify the data type, the category, or both of a custom attribute.

Syntax

attr_ID.datatype = data_type
attr_ID.category = category_name

Description

Use the appropriate stanza entry syntax depending on if you want to set the data type or category of a custom attribute from the default values.

Options

attr_ID
Specify the attribute identifier for which you want to set the data type or category. The attribute ID must match the name that exists 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
Table 1. Required date and time formats

A list of the data types, the format of each, and examples.

Data typeFormat Example
Date Date: yyyy-mm-dd 2014-06-10
Date with timezone: yyyy-mm-dd{+|-}hh:mm 2014-06-10+05:00
TimeTime: hh:mm:ss 13:00:01
Time with timezone: hh:mm:ss{+|-}hh:mm 01:34:22-06:00
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.

The [user-attribute-definitions] stanza and the attr_ID entries apply only to Advanced Access Control.

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 you defined a custom attribute in the [azn-decision-info] stanza as:

urn:example:company:txn:value = post-data:/"accountBalances"/"savings"

Then, you can set the data type of urn:example:company:txn:value to double by using the following stanza and entry:

[user-attribute-definitions] 
urn:example:company:txn:value.datatype = double

Example: Updating the category for form data

If you defined a custom attribute in the [azn-decision-info] stanza as:

urn:example:company:txn:userid = post-data:userid

Then, you can set the category of urn:example:company:txn:userid to Subject by using the following stanza and entry:

[user-attribute-definitions] 
urn:example:company:txn:userid.category = Subject