--- title: "Configuring a Dynamic List Attribute" slug: "configuring-a-dynamic-list-attribute" description: "How to create Dynamic Attributes in Rapididentity" tags: ["Dynamic List Attribute", "Administrator", "GAL", "RapidIdentity Connect", "Action Set"] updated: 2023-06-26T21:04:48Z published: 2023-06-26T21:04:48Z canonical: "help.rapididentity.com/configuring-a-dynamic-list-attribute" --- > ## Documentation Index > Fetch the complete documentation index at: https://help.rapididentity.com/llms.txt > Use this file to discover all available pages before exploring further. # Configuring a Dynamic List Attribute ## Configuring a Dynamic List Attribute A dynamic list attribute provides the ability for a RapidIdentity Connect Action Set to pass its results into an attribute. The result of that Action Set populates a drop-down list to enable a delegate to select from a list of attribute values. **Note:** To pass an Action Set result into a defined attribute, the Action Set must return a JSON string containing two fields: - success (boolean) - listItems (array) ### Example Action Set ``` response = createRecord(false) addRecordFieldValue(response, "success", true, false) listItems = createArray() listItem = createRecord(false) addRecordFieldValue(listItem, "displayName", "Item 1", false) addRecordFieldValue(listItem, "value", "1", false) appendArrayItem(listItems, listItem) listItem = createRecord(false) addRecordFieldValue(listItem, "displayName", "Item 2", false) addRecordFieldValue(listItem, "value", "2", false) appendArrayItem(listItems, listItem) addRecordFieldValue(response, "listItems", listItems, false) return JSON.stringify(response) ``` ### Creating a Dynamic Attribute Navigate to Configuration > Metadirectory > Global Attributes List 1. Click the **Add Attribute** icon to configure a new attribute in the Global Attribute List 2. Select Dynamic List as the attribute **Type** ![image.png](https://cdn.document360.io/4d958006-b877-42af-8de5-00e3bb7fe41d/Images/Documentation/image%28449%29.png) 3. Click **Save** when done ### Creating Dynamic Attribute Values with Connect The RapidIdentity Connect Action Set is required to populate a Dynamic List attribute. Action Set parameters (RapidIdentity Connect Action Set Input Properties) are not required to configure a Dynamic List attribute. One use case in which parameters can be used in a dynamic list attribute is to allow users to select their primary Email address from all possible Email addresses associated with their user account in the *My Profile* delegation. For that use case, the Action Set would need to connect to the system(s) associating the user with their possible Email addresses, which is likely to be a directory service or database. Subsequently, the Action Set would also need to compile the Email addresses as listItems and return the JSON value. The only two parameters that will work for this particular use case are shown below. **Example Action Set Parameters** | Parameter | Description | | --- | --- | | target_id | The idautoID of the target of the operation | | perp_id | The idautoID of the perpetrator of the operation (who's performing the operation) | ## Related - [Global Attribute List](/global-attribute-list.md)