Create Azure Active Directory User Reference

This content applies to legacy design tools (such as K2 Studio, K2 for Visual Studio, or the Silverlight-based K2 workflow design tool). If you have upgraded from K2 blackpearl 4.7 to K2 Five, these tools may still be available in your environment. These legacy tools may not be available in new installations of K2 Five. These legacy tools may also not be available, supported, or behave as described, in future updates or versions of K2. Please see the legacy component support policy for more information about support for these components.

This wizard is found in the Azure Active Directory node in K2 Studio and the K2 Designer for Visual Studio.

What does it do?

The Get AAD User Reference wizard queries the Azure Active Directory for user information based on the filters you choose and creates a reusable reference to them. This reference can be used in any subsequent workflow steps where you would want to refer to each of the users you chose in the wizard.

Use Case Examples

  • Create a reference to username@xyz.com and use it as input in multiple other wizards that require a username.
  • Display a user’s details in the body of an email using reference data fields (Display Name, Job Title, Telephone Number, etc).

Permissions

The user designing the workflow must have AAD Read permission.

Additional Considerations

  • The wizard’s input fields do not support “begins with” or “contains” e.g. to create a reference to a user with the display name “First Last”, you must type in the full name.
  • Input fields are not case sensitive.
  • Multiple properties may be used to narrow down which users the wizard should create a reference to.

How is it used?

To utilize reference data in a text field (e.g. in an email), navigate to the Context Browser, expand the Item References category, expand the Reference you created with a Get Reference wizard, and drag an item to the text field. This data gets populated dynamically after you deploy the workflow and start up a new instance.

If you want to use a Group reference to more than one person, you will need to keep in mind the fact that multiple objects in a reference are stored as an array. In order to insert spaces, commas or semicolons, between each object, you will need to use the inline Join function. To do this, navigate to the Context Browser, expand the Inline Functions category, expand the Text category, and drag the Join function to the text area where you want to use the reference. In the Join menu, drag the reference data object to the Values textbox and specify a Separator.

If you want to use a user reference in another AAD wizard that requires a UPN (Get Manager Reference, Get Direct Reports Reference), make sure the reference you create in this wizard only refers to a single user. Using a reference to multiple users gets a reference to the manager/reports of only the last user in the list.