The identifier of the user flow attribute. This is a read-only attribute that is automatically created.
displayName
String
The display name of the user flow attribute.
description
String
The description of the user flow attribute. It's shown to the user at the time of sign-up.
userFlowAttributeType
String
The type of the user flow attribute. This is a read-only attribute that is automatically set. Depending on the type of attribute, the values for this property will be builtIn or custom.
dataType
String
The data type of the user flow attribute. This cannot be modified once the custom user flow attribute is created. The supported values for dataType are:
string
boolean
int64
Response
If successful, this method returns a 201 Created response code and identityUserFlowAttribute object in the response body. If unsuccessful, a 4xx error will be returned with specific details.
var graphClient = new GraphServiceClient(requestAdapter);
var requestBody = new IdentityUserFlowAttribute
{
DisplayName = "Hobby",
Description = "Your hobby",
DataType = IdentityUserFlowAttributeDataType.String,
};
var result = await graphClient.Identity.UserFlowAttributes.PostAsync(requestBody);
<?php
// THIS SNIPPET IS A PREVIEW FOR THE KIOTA BASED SDK. NON-PRODUCTION USE ONLY
$graphServiceClient = new GraphServiceClient($requestAdapter);
$requestBody = new IdentityUserFlowAttribute();
$requestBody->setDisplayName('Hobby');
$requestBody->setDescription('Your hobby');
$requestBody->setDataType(new IdentityUserFlowAttributeDataType('string'));
$requestResult = $graphServiceClient->identity()->userFlowAttributes()->post($requestBody);