Create Entry

Overview

The Create Entry Snap creates a new entry (User/Group) in the given Azure Active Directory instance.

Supported Accounts

  • This is a Write-type Snap.
  • Works in Ultra Tasks but we recommend you not to use this Snap in an Ultra Pipeline.

Prerequisites

  • A valid Microsoft Entra ID OAuth2 account.

Snap views

Type Description Examples of upstream and downstream Snaps
Input

This Snap has at most one document input view.

Set of new entries.

Output

This Snap has at most one document output view.

List of entries successfully created.

Learn more about Error handling.

Snap settings

Note: Learn about the common controls in the Snap settings dialog.
Field/Field set Description
Label*

String

Specify a unique name for the Snap. Modify this to be more appropriate, especially if more than one of the same Snaps is in the pipeline.

Default value: Create Entry

Example: Create_Entry

Entity type

Dropdown list

Select the kind of object to create. The available options are:

  • User
  • Group
Note: You cannot create Mail-enabled security groups using the Microsoft Graph APIs. If you create such a group, the Snap displays an error. Learn more: Working with groups in Microsoft Graph - Microsoft Graph v1.0.

Default value: User

Example: Group

Attributes Use this field set to define attributes for the new entry. This field set contains the following fields.
Attribute name

String/Expression

Specify a name for the attribute.

Note: When creating a new user, the forceChangePasswordNextLogin attribute is selected by default. If selected, the user is created with a temporary password. However, the Authenticate Users Snap invalidates this entry; hence, deselect this attribute so that the password is permanent, and also for this Snap to validate this entry.

Default value: N/A

Example: displayName

Attribute value

String/Expression

Specify a value for the attribute name.

Default value: N/A

Example: $displayName

Snap execution

Dropdown list

Choose one of the three modes in which the Snap executes. Available options are:
  • Validate & Execute. Performs limited execution of the Snap and generates a data preview during pipeline validation. Subsequently, performs full execution of the Snap (unlimited records) during pipeline runtime.
  • Execute only. Performs full execution of the Snap during pipeline execution without generating preview data.
  • Disabled. Disables the Snap and all Snaps that are downstream from it.

Additional Information

User-Agent Header

The Microsoft Entra ID Snap Pack utilizes the REST HTTP Client to send HTTP requests to the Azure endpoint. This process incorporates a User-Agent header with the value of SnapLogic for every request. By including the User-Agent header, you can monitor and track the requests made to the Azure endpoint, allowing you to determine the total count of requests made.

To view the User-Agent number for a user or group:

  1. Log in to the Azure portal.
  2. Navigate to Azure services > Microsoft Entra ID.
  3. Navigate to Users/Groups and select the desired User/Group.
  4. Click Audit logs in the left navigation menu. In the right pane, you can view the User-Agent number in the following format: SnapLogic (<build_number>) - pid-113e3955-1969-4541-9c9c-e3e0c897cccd. For example, a PR build might have SnapLogic (PR21312) - pid-113e3955-1969-4541-9c9c-e3e0c897cccd as the User Agent. The pid value comes from Microsoft.

Obtaining User object ID/Role object ID/Group object ID from Azure Portal

  1. Log in to the Azure portal.
  2. Navigate to Microsoft Entra ID > Users/Groups.
  3. Select a specific User/Group.
  4. In the Profile, you can view the Object ID.
  5. Copy the Object ID and use it to configure the relevant Snap as required.

Microsoft Graph API Output Changes

Many features in Microsoft Graph API work similarly to the Azure Active Directory Graph APIs. However, a few have been changed or improved. For instance, there is a variation of the entity names in the output preview. This table depicts the difference in the output:

Old output (Azure AD Graph API) New Output (Microsoft Graph API)

The entity object Id property was displayed as ObjectId.

Learn more about the properties in Azure AD Graph API: Azure AD Graph API Entity and Complex Type Reference

The object Id property is displayed as Id in the output.

The output also contains the default parameters shown by the Microsoft Graph API. However, there are certain attributes such as city that can be set by the Create Entry Snap, but this parameter is not displayed in the output as it is not the default output parameter. If you want use such parameters in your output, you can use filters to filter the parameters.

Learn more about the properties in Microsoft Graph API:

Note: The Immutable Id field is a mandatory field in the old (Azure AD Graph API) version, but it is optional in the new (Microsoft Graph API) version. However, if you have the Immutable Id field mapping in your existing Pipelines, you must remove that mapping from the Snap, else the Snap displays an error.