1. Packages
  2. Azure Active Directory (Azure AD)
  3. API Docs
  4. UserFlowAttribute
Azure Active Directory (Azure AD) v6.2.0 published on Tuesday, Jan 21, 2025 by Pulumi

azuread.UserFlowAttribute

Explore with Pulumi AI

Manages user flow attributes in an Azure Active Directory (Azure AD) tenant.

API Permissions

The following API permissions are required in order to use this resource.

When authenticated with a service principal, this resource requires the following application role: IdentityUserFlow.ReadWrite.All

Example Usage

Basic example

import * as pulumi from "@pulumi/pulumi";
import * as azuread from "@pulumi/azuread";

const example = new azuread.UserFlowAttribute("example", {
    displayName: "Hobby",
    description: "Your hobby",
    dataType: "string",
});
Copy
import pulumi
import pulumi_azuread as azuread

example = azuread.UserFlowAttribute("example",
    display_name="Hobby",
    description="Your hobby",
    data_type="string")
Copy
package main

import (
	"github.com/pulumi/pulumi-azuread/sdk/v6/go/azuread"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := azuread.NewUserFlowAttribute(ctx, "example", &azuread.UserFlowAttributeArgs{
			DisplayName: pulumi.String("Hobby"),
			Description: pulumi.String("Your hobby"),
			DataType:    pulumi.String("string"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureAD = Pulumi.AzureAD;

return await Deployment.RunAsync(() => 
{
    var example = new AzureAD.UserFlowAttribute("example", new()
    {
        DisplayName = "Hobby",
        Description = "Your hobby",
        DataType = "string",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azuread.UserFlowAttribute;
import com.pulumi.azuread.UserFlowAttributeArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var example = new UserFlowAttribute("example", UserFlowAttributeArgs.builder()
            .displayName("Hobby")
            .description("Your hobby")
            .dataType("string")
            .build());

    }
}
Copy
resources:
  example:
    type: azuread:UserFlowAttribute
    properties:
      displayName: Hobby
      description: Your hobby
      dataType: string
Copy

Create UserFlowAttribute Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new UserFlowAttribute(name: string, args: UserFlowAttributeArgs, opts?: CustomResourceOptions);
@overload
def UserFlowAttribute(resource_name: str,
                      args: UserFlowAttributeArgs,
                      opts: Optional[ResourceOptions] = None)

@overload
def UserFlowAttribute(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      data_type: Optional[str] = None,
                      description: Optional[str] = None,
                      display_name: Optional[str] = None)
func NewUserFlowAttribute(ctx *Context, name string, args UserFlowAttributeArgs, opts ...ResourceOption) (*UserFlowAttribute, error)
public UserFlowAttribute(string name, UserFlowAttributeArgs args, CustomResourceOptions? opts = null)
public UserFlowAttribute(String name, UserFlowAttributeArgs args)
public UserFlowAttribute(String name, UserFlowAttributeArgs args, CustomResourceOptions options)
type: azuread:UserFlowAttribute
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. UserFlowAttributeArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. UserFlowAttributeArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. UserFlowAttributeArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. UserFlowAttributeArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. UserFlowAttributeArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var userFlowAttributeResource = new AzureAD.UserFlowAttribute("userFlowAttributeResource", new()
{
    DataType = "string",
    Description = "string",
    DisplayName = "string",
});
Copy
example, err := azuread.NewUserFlowAttribute(ctx, "userFlowAttributeResource", &azuread.UserFlowAttributeArgs{
	DataType:    pulumi.String("string"),
	Description: pulumi.String("string"),
	DisplayName: pulumi.String("string"),
})
Copy
var userFlowAttributeResource = new UserFlowAttribute("userFlowAttributeResource", UserFlowAttributeArgs.builder()
    .dataType("string")
    .description("string")
    .displayName("string")
    .build());
Copy
user_flow_attribute_resource = azuread.UserFlowAttribute("userFlowAttributeResource",
    data_type="string",
    description="string",
    display_name="string")
Copy
const userFlowAttributeResource = new azuread.UserFlowAttribute("userFlowAttributeResource", {
    dataType: "string",
    description: "string",
    displayName: "string",
});
Copy
type: azuread:UserFlowAttribute
properties:
    dataType: string
    description: string
    displayName: string
Copy

UserFlowAttribute Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The UserFlowAttribute resource accepts the following input properties:

DataType
This property is required.
Changes to this property will trigger replacement.
string
The data type of the user flow attribute. Possible values are boolean, dateTime, int64, string or stringCollection. Changing this forces a new resource to be created.
Description This property is required. string
The description of the user flow attribute that is shown to the user at the time of sign-up.
DisplayName
This property is required.
Changes to this property will trigger replacement.
string
The display name of the user flow attribute. Changing this forces a new resource to be created.
DataType
This property is required.
Changes to this property will trigger replacement.
string
The data type of the user flow attribute. Possible values are boolean, dateTime, int64, string or stringCollection. Changing this forces a new resource to be created.
Description This property is required. string
The description of the user flow attribute that is shown to the user at the time of sign-up.
DisplayName
This property is required.
Changes to this property will trigger replacement.
string
The display name of the user flow attribute. Changing this forces a new resource to be created.
dataType
This property is required.
Changes to this property will trigger replacement.
String
The data type of the user flow attribute. Possible values are boolean, dateTime, int64, string or stringCollection. Changing this forces a new resource to be created.
description This property is required. String
The description of the user flow attribute that is shown to the user at the time of sign-up.
displayName
This property is required.
Changes to this property will trigger replacement.
String
The display name of the user flow attribute. Changing this forces a new resource to be created.
dataType
This property is required.
Changes to this property will trigger replacement.
string
The data type of the user flow attribute. Possible values are boolean, dateTime, int64, string or stringCollection. Changing this forces a new resource to be created.
description This property is required. string
The description of the user flow attribute that is shown to the user at the time of sign-up.
displayName
This property is required.
Changes to this property will trigger replacement.
string
The display name of the user flow attribute. Changing this forces a new resource to be created.
data_type
This property is required.
Changes to this property will trigger replacement.
str
The data type of the user flow attribute. Possible values are boolean, dateTime, int64, string or stringCollection. Changing this forces a new resource to be created.
description This property is required. str
The description of the user flow attribute that is shown to the user at the time of sign-up.
display_name
This property is required.
Changes to this property will trigger replacement.
str
The display name of the user flow attribute. Changing this forces a new resource to be created.
dataType
This property is required.
Changes to this property will trigger replacement.
String
The data type of the user flow attribute. Possible values are boolean, dateTime, int64, string or stringCollection. Changing this forces a new resource to be created.
description This property is required. String
The description of the user flow attribute that is shown to the user at the time of sign-up.
displayName
This property is required.
Changes to this property will trigger replacement.
String
The display name of the user flow attribute. Changing this forces a new resource to be created.

Outputs

All input properties are implicitly available as output properties. Additionally, the UserFlowAttribute resource produces the following output properties:

AttributeType string
The type of the user flow attribute. Values include builtIn, custom or required.
Id string
The provider-assigned unique ID for this managed resource.
AttributeType string
The type of the user flow attribute. Values include builtIn, custom or required.
Id string
The provider-assigned unique ID for this managed resource.
attributeType String
The type of the user flow attribute. Values include builtIn, custom or required.
id String
The provider-assigned unique ID for this managed resource.
attributeType string
The type of the user flow attribute. Values include builtIn, custom or required.
id string
The provider-assigned unique ID for this managed resource.
attribute_type str
The type of the user flow attribute. Values include builtIn, custom or required.
id str
The provider-assigned unique ID for this managed resource.
attributeType String
The type of the user flow attribute. Values include builtIn, custom or required.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing UserFlowAttribute Resource

Get an existing UserFlowAttribute resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: UserFlowAttributeState, opts?: CustomResourceOptions): UserFlowAttribute
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        attribute_type: Optional[str] = None,
        data_type: Optional[str] = None,
        description: Optional[str] = None,
        display_name: Optional[str] = None) -> UserFlowAttribute
func GetUserFlowAttribute(ctx *Context, name string, id IDInput, state *UserFlowAttributeState, opts ...ResourceOption) (*UserFlowAttribute, error)
public static UserFlowAttribute Get(string name, Input<string> id, UserFlowAttributeState? state, CustomResourceOptions? opts = null)
public static UserFlowAttribute get(String name, Output<String> id, UserFlowAttributeState state, CustomResourceOptions options)
resources:  _:    type: azuread:UserFlowAttribute    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
AttributeType string
The type of the user flow attribute. Values include builtIn, custom or required.
DataType Changes to this property will trigger replacement. string
The data type of the user flow attribute. Possible values are boolean, dateTime, int64, string or stringCollection. Changing this forces a new resource to be created.
Description string
The description of the user flow attribute that is shown to the user at the time of sign-up.
DisplayName Changes to this property will trigger replacement. string
The display name of the user flow attribute. Changing this forces a new resource to be created.
AttributeType string
The type of the user flow attribute. Values include builtIn, custom or required.
DataType Changes to this property will trigger replacement. string
The data type of the user flow attribute. Possible values are boolean, dateTime, int64, string or stringCollection. Changing this forces a new resource to be created.
Description string
The description of the user flow attribute that is shown to the user at the time of sign-up.
DisplayName Changes to this property will trigger replacement. string
The display name of the user flow attribute. Changing this forces a new resource to be created.
attributeType String
The type of the user flow attribute. Values include builtIn, custom or required.
dataType Changes to this property will trigger replacement. String
The data type of the user flow attribute. Possible values are boolean, dateTime, int64, string or stringCollection. Changing this forces a new resource to be created.
description String
The description of the user flow attribute that is shown to the user at the time of sign-up.
displayName Changes to this property will trigger replacement. String
The display name of the user flow attribute. Changing this forces a new resource to be created.
attributeType string
The type of the user flow attribute. Values include builtIn, custom or required.
dataType Changes to this property will trigger replacement. string
The data type of the user flow attribute. Possible values are boolean, dateTime, int64, string or stringCollection. Changing this forces a new resource to be created.
description string
The description of the user flow attribute that is shown to the user at the time of sign-up.
displayName Changes to this property will trigger replacement. string
The display name of the user flow attribute. Changing this forces a new resource to be created.
attribute_type str
The type of the user flow attribute. Values include builtIn, custom or required.
data_type Changes to this property will trigger replacement. str
The data type of the user flow attribute. Possible values are boolean, dateTime, int64, string or stringCollection. Changing this forces a new resource to be created.
description str
The description of the user flow attribute that is shown to the user at the time of sign-up.
display_name Changes to this property will trigger replacement. str
The display name of the user flow attribute. Changing this forces a new resource to be created.
attributeType String
The type of the user flow attribute. Values include builtIn, custom or required.
dataType Changes to this property will trigger replacement. String
The data type of the user flow attribute. Possible values are boolean, dateTime, int64, string or stringCollection. Changing this forces a new resource to be created.
description String
The description of the user flow attribute that is shown to the user at the time of sign-up.
displayName Changes to this property will trigger replacement. String
The display name of the user flow attribute. Changing this forces a new resource to be created.

Import

User flow attributes can be imported using the id, e.g.

$ pulumi import azuread:index/userFlowAttribute:UserFlowAttribute example extension_ecc9f88db2924942b8a96f44873616fe_Hobbyjkorv
Copy

-> This ID can be queried using the User Flow Attributes API.

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
Azure Active Directory (Azure AD) pulumi/pulumi-azuread
License
Apache-2.0
Notes
This Pulumi package is based on the azuread Terraform Provider.