Manage Role Membership
Overview
The Manage Role Membership Snap adds or removes a given user to or from a given role.
Supported Accounts
- This is a Write-type Snap.
Works in Ultra Tasks
Snap views
| Type | Description | Examples of upstream and downstream Snaps |
|---|---|---|
| Input |
This Snap has at most one document input view. User Object ID, Operation to be performed (Add or Remove), and Role Object ID. |
|
| Output |
This Snap has at most one document output view. HTTP status code 204 if the operation is successful. |
|
| Learn more about Error handling. | ||
Snap settings
| Field/Field set | Description |
|---|---|
| Label*
|
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: Manage Role Membership Example: Manage Role Membership |
| User object ID*
|
Specify the User object ID of the user to be added or removed.
Default value: N/A Example: $splitvalue |
| Operation*
|
Specify the action to be performed. Available options are:
Default value: Assign to Role Example: Remove from Role |
| Role object ID*
|
Specify the Role object ID of the destination role.
Default value: N/A Example: e5ebf40e-f991-4810-960-8f56e41f2aes |
| Snap execution
|
Choose one of the three modes in
which the Snap executes. Available options are:
|
Additional Information
User-Agent Header
The Azure Active Directory 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:
- Log in to the Azure portal.
- Navigate to Azure services > Azure Active Directory.
- Navigate to Users/Groups and select the desired User/Group.
- 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 haveSnapLogic (PR21312) - pid-113e3955-1969-4541-9c9c-e3e0c897cccdas the User Agent. Thepidvalue comes from Microsoft.


Obtaining User object ID/Role object ID/Group object ID from Azure Portal
- Log in to the Azure portal.
- Navigate to Azure Active Directory > Users/Groups.
- Select a specific User/Group.
- In the Profile, you can view the Object Id.
- 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 "
Learn more about the properties in Azure AD Graph API: |
The object Id property is displayed as "
The output also contains the default parameters shown by the Microsoft Graph API. However, there are certain attributes such as Learn more about the properties in Microsoft Graph API:
|

