Add or Remove Group Membership Crate
What does the Add or Remove Group Membership Crate do?
Our Add or Remove Group Membership Crate provides a form-based interface that enables adding or removing a user from Microsoft groups, whether in on-premises environments or Microsoft 365 cloud-based groups. This Crate:
Facilitates seamless addition or removal of users from on-premise Active Directory or Microsoft 365 groups
Works with both security and distribution groups across environments
Supports the management of multiple users within a single submission, ensuring faster group membership updates via batch processing
Can be combined with other Rewst workflows for automation across onboarding, offboarding, or user-role changes
This Crate only handles membership changes, not group creation. It focuses on simple add or remove operations and does not manage nested group hierarchies.
Workflow breakdown
The workflow begins with the core_noop task which serves as the initialization point and processes the input data to prepare organization variables for creation by filtering out system-reserved keys and categorizing variables into integration and general configuration types.
The rewst_list_organizations task retrieves a list of all existing organizations within the current managing organization to check if the new client organization already exists in the Rewst platform.
If the organization name does not already exist in the system, the rewst_create_organization task creates a new organization in Rewst using the provided organization name and domain, establishing it as a managed organization under the current parent organization.
If the organization already exists, the workflow skips the creation step and retrieves the existing organization ID to proceed with configuration updates.
The create_integration_org_var task iterates through the filtered integration-specific organization variables and creates them as system-category variables within the target organization, configuring essential integration settings and connection parameters.
The invite_forms_users task processes the list of users designated for forms-only access and sends invitations to each user with the appropriate role permissions, granting them access to execute forms within the organization.
The invite_member_users task processes the list of users designated for full member access and sends invitations to each user with both forms and member role permissions, providing them with broader access to the organization's resources.
The create_general_org_var task iterates through the filtered general organization variables and creates them as general-category variables within the target organization, establishing configuration settings for identity providers, user management, and other operational parameters.
The workflow completes successfully after all organization variables have been created and all user invitations have been processed, resulting in a fully configured child organization ready for use within the Rewst platform.
Crate prerequisites
Rewst's Microsoft Cloud Integration Bundle must be set up before unpacking this Crate.
If you'll be using the Crate for any on-premises environments, you'll need to have your RMM integrated with Rewst before unpacking the Crate.
Unpack the Add or Remove Group Membership Crate
Navigate to Crates > Crate Marketplace in the left side menu of the Rewst Platform.
Search for
Add or Remove Group Membership.
Click on the Crate tile to begin the unpacking process.
Click Unpack Crate.
Click Continue.
Note that you have the option under the Form Submission accordion menu to activate the Crate for all future organizations in addition to the current one. Current org-only is the default. You may also set activation to certain tags, trigger criteria, or for integration overrides.
Click Unpack Crate.
Use the Add or Remove Group Membership Crate
This form has a variety of fields and drop-down selectors that will appear depending on what you select earlier in the form. If you change your mind or make a mistake while filling out the form and decide to change a previously selected option, hard refresh your page to reset the conditions of the form. Then, proceed and make your desired selections.
Navigate to Automations > Forms.
Search for
[Rewst Master v2] Groups - Add or Remove Membership.Click ⋮ > Usages > View Direct URLs.

Copy the URL and paste it into a new tab or browser window.
Choose the organization you'd like to run the form on from the List Organizations drop-down selector.

Choose if you would like to Manage User's Groups or Manage Group's Users. Depending on your selection, the form will display different relevant options for the next step.
If choosing Manage User's Groups:
Choose your relevant user from the populated list in the List Users drop-down selector.
Choose if you would like to Add Groups to User or Remove Groups from User.
If choosing add, use the List Current Group Membership drop-down selector to indicate which groups should be excluded from removal. Then, select your groups from the List AAD Groups and List OnPrem Groups drop-down selectors.

If choosing remove, use the List Current Group Membership drop-down selector to indicate which groups should be excluded from removal.

Click Submit.
If choosing Manage Group's Users:
Choose your relevant user from the populated list in the List Users drop-down selector.
Choose if you'd like to Add Members to Group or Remove Members From Group.
Make your selections in the List OnPrem Groups drop-down selector.
Choose if you would like to Add Members to Group or Remove Members from Group.

Click Submit.
Last updated
Was this helpful?

