--- id: account-profile-attribute-generator title: Account Profile Attribute Generator pagination_label: Account Profile Attribute Generator sidebar_label: Account Profile Attribute Generator sidebar_class_name: accountProfileAttributeGenerator keywords: ['cloud', 'rules', 'account profile', 'attribute generator'] description: This rule generates complex account attribute values during provisioning, e.g. when creating an account. slug: /extensibility/rules/cloud-rules/account-profile-attribute-generator tags: ['Rules'] --- ## Overview This rule generates complex account attribute values during provisioning, e.g. when creating an account. You would typically use this rule when you are creating an account to generate attributes like usernames, first time passwords, or email addresses. ## Execution - **Cloud Execution** - This rule executes in the Identity Security Cloud cloud, and it has read-only access to Identity Security Cloud data models, but it does not have access to on-premise sources or connectors. - **Logging** - Logging statements are currently only visible to SailPoint personnel. ![Rule Execution](../img/cloud_execution.png) ## Input | Argument | Type | Purpose | | --- | --- | --- | | log | org.apache.log4j.Logger | Logger to log statements. _Note: This executes in the cloud, and logging is currently not exposed to anyone other than SailPoint._ | | idn | sailpoint.server.IdnRuleUtil | Provides a read-only starting point for using the SailPoint API. From this passed reference, the rule can interrogate the Identity Security Cloud data model including identities or account information via helper methods as described in [IdnRuleUtil](../idn_rule_utility.md). | | identity | sailpoint.object.Identity | Reference to identity object representing the identity being calculated. | | application | sailpoint.object.Application | Read-only reference to application object that represents the source to which provisioning is being done. | | field | sailpoint.object.Field | Field object used to get information about the attribute being generated. | ## Output | Argument | Type | Purpose | | -------- | ---------------- | ----------------------------------------- | | value | java.lang.Object | Value returned for the account attribute. | ## Template ```xml Describe your rule here. ``` ## Example - Generate Username ```java This will generate a username. ```