Policy Server Guides › Policy Server Configuration Guide › Variables › Create a Variable › Create a User Context Variable
Create a User Context Variable
You create a user context variable to make it available for use in policies or responses.
Note: The value of the resolved variable may be no larger than 1K.
To create a variable
- Open the domain to which to you want to add a variable.
- Click the Variables tab.
A table lists the variables associated with the domain.
- Click Create Variable.
The Create Variable pane opens.
- Verify that Create a new object is selected, and click OK.
Variable settings open.
- Type the variable name in the Name field.
Note: User Context variable names must begin with the percent character (%).
Example: %SM_USERPATH
- Select User Context from the Variable Type list.
User context settings open.
- Select the portion of the user context that provides the value of the variable from the Property list.
The return type value appears as either string or boolean depending on the value you selected from the Property list.
- (Required for User Property and Directory Entry) Enter the name of the directory or user attribute that provides the variable value in the Property field.
- (Required for User Property and Directory Entry) Enter the size of the buffer (in bytes) that is to store the variable in the Buffer field.
- (Required for Directory Entry) Enter the distinguished name of the directory entry in the DN field.
- Click Submit.
- The variable appears in the Variables tab of the domain. The variable can now be used in policy expressions or responses.