Action: Add users to site

Action: Add users to site

Add users to site  action allows to grant an Active Directory (AD) user or group access to a SharePoint site without assigning any permissions.

Example of Add users to site action configuration on the current site


For more information about Action Builder read 
Action Builder introduction  article.

Note 1: In order to use the Add users to site action in Scheduled/Triggered Actions Teamsware SharePoint Site Admin Connector has to be approved by a tenant administrator and site has to be added to Approved sites list before this action can be used. 

Note 2: When you deploy the solution to another SharePoint tenant, it requires approval of Teamsware SharePoint Site Admin Connector on the deployment tenant as well. 


To configure the action Add users to site the additional properties should be specified. 

Configuration

Property

Required

Type

Description

Site url

yes

String

Specify a path to the site on the current tenant where you want to add AD user(s) or group(s)

Users to add

yes

String

Specify AD user(s) or group email(s) or provide an expression to be evaluated as an email(s) of users you want to add. Emails should be separated with ',' if you add more than one email address.

 

Availability

Modern Forms

List Actions

Scheduled/Triggered Actions

-

-

 

Output

Output Parameter

Type

Description

AddedUsers

Array of objects

Returns an array of users mails added to the site 

FailedUsers

Array of objects

Returns an array of users mails that failed to be added to the site

 

Ein Bild, das Text, Screenshot, Display, Software enthält.

KI-generierte Inhalte können fehlerhaft sein.


Example:

To use this output and set the value to the text field open Expression builder and use Assignment expression:

=JSON.stringify([[@Actions.Add_users_to_site.AddedUsers]])