Grant and revoke Community group access with workflows
Grant or remove Community group access automatically with a workflow. Access changes are performed by two workflow actions, Grant Group Access and Revoke Group Access. The trigger is whatever event should start the change, and there is no dedicated trigger for a member leaving a Community.
A workflow combines a trigger, which starts the workflow, with actions that run afterward. For a general explanation of this structure, see Workflows Overview.
Grant Community group access
Use the Grant Group Access action when a contact should gain access to a Community group, and choose the trigger that matches the event that should grant it.
In the Workflow Builder, select Create a Workflow.
Add the trigger that matches the event that should grant access.
Add the Grant Group Access action and select the Community group the contact should access.
Test the workflow with a representative contact, then publish it.
Revoke Community group access
Use the Revoke Group Access action to remove a contact's access to the Community group you select in the action. The trigger picker has no trigger for a member leaving a Community, so start the workflow from the event that should end access instead.
In the Workflow Builder, select Create a Workflow.
Add the trigger that matches the event that should end access. The setups below cover the most common ones.
Add the Revoke Group Access action and select the Community group whose access should be removed.
Test the workflow with a representative contact, then publish it.
Remove member groups when membership lapses
Add the Revoke Group Access action as a step in your lapsed member automation. When membership lapses, the workflow takes away the member groups you select in the action.
Remove access when a tag is removed
Start the workflow with the Contact Tag trigger and the Tag Removed filter, then add Revoke Group Access for the matching group. For example, remove access to the Board Group when you remove the "board member" tag. For more on how tags drive automation, see Working with Contact Tags.
End time-limited access automatically
Grant access to the time-limited resource with Grant Group Access, add a wait step for the access period (for example, 90 days), then add Revoke Group Access. This removes the member from the group when the access period ends.
Run automation after access changes
The Communities category in the trigger picker includes two triggers that start a workflow after access has already changed: Group Access Granted and Group Access Revoked. Use them when follow-up steps should run after access is granted or removed. They respond to the change; they do not grant or revoke access themselves. For the full list of actions, see Workflow actions.