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
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
|
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]])
Related Articles
Action: Add item permissions
Add item permissions action allows you grant specified permissions to users and groups for specified item of the list or library Note: If an item does not have broken permissions, adding new permissions will break its permission inheritance Example ...
Action: Add members to SharePoint group
Add members to SharePoint group action allows you to add users or AD groups to the specified SharePoint group. Example of Add members to SharePoint group action configuration on the current site For more information about Action Builder read Action ...
Action: Add domains to HTML field security
Add domains to HTML field security action allows to add web domain to a list of domains in HTML Field Security setting on the root site collection Site Settings page under Site Collection Administration Example of Add domains to HTML field security ...
Action: Create invite
Create invite action allows you to create an invitation for the external user. The invitation is used to add external users to the organization. On invitation creation, the invited user is added as an external user to the Microsoft Entra ID. To ...
Action: Invite guest user
Invite guest user action allows you to create an invitation for the external user. The invitation is used to add external users to the organization. On invitation creation, the invited user is added as an external user to the Microsoft Entra ID. To ...