View source: R/cognitoidentityprovider_operations.R
cognitoidentityprovider_add_custom_attributes | R Documentation |
Adds additional user attributes to the user pool schema. Custom attributes can be mutable or immutable and have a custom:
or dev:
prefix. For more information, see Custom attributes.
See https://www.paws-r-sdk.com/docs/cognitoidentityprovider_add_custom_attributes/ for full documentation.
cognitoidentityprovider_add_custom_attributes(UserPoolId, CustomAttributes)
UserPoolId |
[required] The ID of the user pool where you want to add custom attributes. |
CustomAttributes |
[required] An array of custom attribute names and other properties. Sets the following characteristics: AttributeDataType The expected data type. Can be a string, a number, a date and time, or a boolean. Mutable If true, you can grant app clients write access to the attribute value. If false, the attribute value can only be set up on sign-up or administrator creation of users. Name The attribute name. For an attribute like Required When true, users who sign up or are created must set a value for the attribute. NumberAttributeConstraints The minimum and maximum length of accepted values for a StringAttributeConstraints The minimum and maximum length of accepted values for a DeveloperOnlyAttribute This legacy option creates an attribute with a |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.