How to create SharePoint group and add users in Microsoft Flow and Azure Logic Apps

In this article, you will learn how to create a SharePoint group and add users there. Let us suppose that you have created a new site and now you want to create a group and add users there. We will be using Create SharePoint Group and Add User to SharePoint Group actions from Plumsail SharePoint connector.

There are a few other actions to manage SharePoint groups which you can use in your flow:

  • Create SharePoint Group
  • Update SharePoint Group Properties
  • Remove SharePoint Group
  • Add User to SharePoint Group
  • Is User Member of SharePoint Group
  • Get Members of SharePoint Group
  • Remove User from SharePoint Group

You can find all the actions and their description on this page.

Create Microsoft Flow

Now let us review the flow and learn how it is implemented:

flow

You can actually pick any trigger. For example, you can start a flow when a new email arrives. We are using "Manually trigger a flow" trigger here to simplify the flow.

Create SharePoint Group

Create SharePoint Group is the action from Plumsail SharePoint connector. You can use it to create groups in your SharePoint.

create-sp-group-action

You can specify this group’s owner and add a description.

Add users to SharePoint group

Now we are adding users to the newly created group. We are using Add User to SharePoint Group action from Plumsail SharePoint connector to do this.

add-users

Remove User from SharePoint Group

Sometimes we also need to remove users from a SharePoint group. In this case, we can use Remove User from SharePoint Group action from Plumsail SharePoint connector.

remove-users

Conclusion

Now you should have an idea how to use the actions from Plumsail SharePoint connector for Microsoft Flow to manage SharePoint groups. If you haven’t used the connector yet, registering an account would be the first step. It is quite easy to get started.