Office 365 update item permissions
Note: This is an external action and may execute on servers running outside your data center Centralized locations used to house servers used by Nintex for remote storage, processing, or distribution of data. Nintex has a number of regional data centers available for Nintex for Office 365. For information about Nintex data centers and where your data center is located, contact your Nintex account or territory manager. region. Before implementing, consider performance and regional concerns where digital boundaries are an issue. For more information, see In-tenant and external actions.
Use the Office 365 update item permissions action A tool for building the processes, logic, and direction within workflows. to update permissions of a specified item in a list or document library on a SharePoint site.
Permission must be provided by a tenant administrator, before workflow designers can start creating connections for this action using the connection type SharePoint Online: Update item permissions (OAuth2).
Note: Providing permission for a tenant has to be done only once, and after it is provided all workflow designers of the tenant can create connections for this action.
For more information about Connection types, see Connection types and Connector actions.
How to provide permission
A tenant administrator can provide permission at any time using this URL without having to go through the steps of creating a connection.
- Access the following URL to be directed to the Nintex website.
When using the link, replace <tenantname> that is highlighted in the link with the name of your tenant. The link will only work when the correct tenant name is inserted in place of <tenantname>.
https://login.microsoftonline.com/common/oauth2/v2.0/authorize?client_id=bf5d7851-1215-4557-b85b-e3634a44e8fa&response_type=code&redirect_uri=https://www.nintex.com&scope=https://<tenantname>.sharepoint.com/AllSites.FullControl%20 https://<tenantname>.sharepoint.com/User.Read.All%20openid%20email%20profile%20offline_access&prompt=consent&response_mode=query
- Sign into your tenant admin account. The following dialog box is displayed:
- In the dialog box, select the Consent on behalf of your organization check box.
- Click Accept.
If the administrator has not provided permission, one of the following messages is displayed when a workflow designer wants to create a new connection:
The following dialog box will be displayed for users who are not tenant administrators:
- You can request your tenant administrator to provide permission through the URL provided. See Using URL.
The following dialog box will be displayed for users who are tenant administrators:
- In the dialog box, select the Consent on behalf of your organization check box.
- Click Accept.
Variables are placeholders that store information that changes each time the workflow runs or even during execution of a single workflow instance.
Each variable has a type that determines what values can be stored in the variable, such as a date, number, file path or a workflow user name. For example, if you want to save the name of an employee in a variable, you have to create a variable of type Text. The workflow can then store a name of the employee, such as "John," in the variable.
- Text: Text string.
- Boolean: Yes or No value.
- Date/Time: Date and time value.
- GUID: Globally unique identifier, often used to reference a list item in SharePoint.
- Number: Integer number with decimal value.
- Integer: Integer number with no decimal value.
- Choice: A value that requests a selection from a list of allowed values.
- Person or Group: A value that requests a selection from a user lookup.
- Hyperlink: A value that requests a hyperlink URL and description.
- Dictionary: A container that holds a single logical unit of variables. For more information, see Dictionary variables.
- Collection: An index-based array of values, also known as an ordered list of values. For more information, see Collection variables.
In NintexOffice 365, the different categories of variables that can be used in a workflow are given below:
-
Workflow Context: Context variables that represent data related to the current workflow instance, such as current item or site URL and workflow name.
- Workflow Variables: User-defined variables that you create to store values such as file paths, dates, workflow outputs Variable to store a value or file on completion of the workflow. and other data for use throughout the workflow.
- Start Variables: Workflow variables with the initiation option selected. Start Variables are used to get data from users when a workflow manually starts.
For more information on manually starting a workflow, see .
- Text
- Boolean
- Date/Time
- Number
- Choice
- Person or Group
- Hyperlink
To configure a variable as a start variable, select the Initiation option when creating a variable.
You can insert an existing Workflow Variable or Context Variable into the configuration fields of workflow actions A tool for building the processes, logic, and direction within workflows. and you can create user-defined variables for use throughout your workflow.
You can create user-defined variables from the Action configuration window when you are configuring a workflow action or from the toolbar of the designer page.
- In the Action configuration window, click in a field that accepts variables.
- Do one of the following depending on the method available;
- On the drop-down list that appears, Click Create New Variable.
- On the Insert Reference pane that appears, expand the Workflow Variables section and click Create New Variable.
- Do the following in the Workflow Variables pane to create the variable:
- For Name, type the variable name you want to use.
- Select a Type.
- If you want to display the variable on the start form, select the Show on start form check box.
- Click Create.
- On the toolbar of the Designer page, click Variables. The Variables dialog box appears.
- Click New and fill in the following:
- For Name, type the variable name you want to use.
- For Type, select a variable type corresponding to the type of data you want to store.
- If you want to specify the variable as a start variable, select the Initiation check box.
- Click to specify the Initiation options Initiation options control the display and behavior of the variable on the start form that is displayed when a workflow is started manually..
- Click Save.
For more information, see User-defined variable types and Initiation options.
The following table describes the variable types available in the Variables dialog box as well as their initiation options, which are available when you select Yes for Initiation. Initiation options control the display and behavior of the variable on the start form that is displayed when a workflow is started manually.
Variable type | Description |
Initiation Available |
Initiation options |
---|---|---|---|
Text |
Any text value. Underlying .NET data type: System.String. |
Yes |
|
Boolean |
Yes or No value. Underlying .NET data type: System.Boolean. |
Yes |
|
Date/Time |
Date and time value. Underlying .NET data type: System.DateTime. |
Yes |
|
GUID |
Globally unique identifier, often used to reference a list item in SharePoint. Underlying .NET data type: System.Guid. |
No |
(n/a) |
Number |
Numeric with a Decimal value. Underlying .NET data type: System.Double. |
Yes |
|
Integer |
Numeric without a decimal. Underlying .NET data type: System.Int32. |
No |
(n/a) |
Choice |
A value that requests a selection from a list of allowed values. The value selected by the workflow initiator is stored in the variable. Underlying .NET data type: System.String. |
Yes |
|
Person or Group |
A value that requests a selection from a user lookup. The item selected by the workflow initiator is stored in the variable. Underlying .NET data type: System.String. |
Yes |
|
Hyperlink |
A value that requests a hyperlink URL and description. Two text boxes are provided:
The values entered by the workflow initiator are stored in the variable. Underlying .NET data type: System.String. |
Yes |
|
Dictionary |
A container that holds a single logical unit of variables. For more information, see Dictionary variables. Underlying .NET data type: Microsoft.Activities.DynamicValue. |
No |
(n/a) |
Collection |
An index-based array of values, also known as an ordered list of values. For more information, see Collection variables. |
No |
(n/a) |
You can insert a Workflow Variable, Reference A workflow reference which is used to construct content containing information specific to the list or library item and to the current instance of the workflow. or a Context Variable into the configuration fields of workflow actions A tool for building the processes, logic, and direction within workflows..
Each field that accepts variables accepts one or more methods for inserting variables. The method available differs depending on the field.
Available methods are given below:
-
Click on the field and select an existing variable from the drop-down list for the field.
- Click on the field, click Create New Variable, and fill the following fields in the Workflow Variable pane that appears:
- For Name, type the variable name you want to use.
- Select the Show on start form check box if you want to display the variable on the start form.
- Click Create.
- Click on the field, select Workflow Variables or Workflow Context, and select a variable from the corresponding drop-down list.
- Click Advanced Lookup, select Workflow Variables or Workflow Context from the drop-down list that appears, and then select a variable from the corresponding drop down and click Insert.
- Click on the field that accept references and from the Insert Reference pane that appears on the right, double-click on a reference to select. Available sections and lookup values depend on the options available for the workflow action.
- Current item URL: The URL of the item the workflow is associated item. Available only for list workflow actions.
- Current site URL: The URL of the site the workflow is associated site.
- Initiator login name: The login name of the person who started the workflow instance.
- Initiator display name: The display name of the person who started the workflow instance.
- Initiator email address: The email address of the person who started the workflow instance.
- Instance ID: The unique identifier of the workflow instance.
- List ID: The unique identifier of the list the workflow is associated with. Available only for list workflow actions.
- List Name: The name of the list the workflow is associated with. Available only for list workflow actions.
- Manager login name: The login name of the manager of the initiator (the person who started the workflow instance).
- Manager display name: The display name of the manager of the initiator (the person who started the workflow instance).
- Manager email address: The email address of the manager of the initiator (the person who started the workflow instance).
- Publish user: The person who published the workflow.
- Workflow name: The name of the executing workflow.
Section | Description |
---|---|
Item Properties |
Metadata columns for the item the workflow is associated with. Available only for list workflows. |
Workflow Context |
Context variables that represent data related to the current workflow instance, such as current item or site URL and workflow name. |
Workflow Variables | Workflow variables configured for the workflow. |
You can configure variables to collect data when a workflow is manually started. These variables will be shown on a start form used to initiate the workflow and allows users to specify a value for the workflow variable before the workflow starts, basically passing values into the workflow before it starts.
Variables displayed on a start form are also known as the "start data" of the workflow and represent data that must be collected when the workflow is started.
Note: If the workflow starts automatically, then default values are used for start data.
To learn how to manually start a workflow, see Start a workflow manually.
Configure a variable to show on a workflow start form:
-
Open the required workflow. The workflow designer opens.
- On the toolbar, click Variables. The Variables window opens.
-
To edit an existing variable, click the required variable. The row becomes editable.
or
- Select the Initiation check box for the required variable.
- If you want to configure initiation options, click to open the Initiation options dialog box, make the changes and click OK. For more information about the fields, see User-defined variable types and Initiation options.
To create a variable, click New on the Variables window toolbar, enter a Name, and select the Type for the variable.
- Click Save to commit changes.
Configure the Office 365 Update Item Permissions action
In the Designer:
-
Click the Libraries and Lists action group in the action toolbox.
or
Type the action name or function in the Search field at the top of the action toolbox.
- Drag the Office 365 Update Item Permissions action to the designer canvas.
-
Do one of the following to open the Action configuration window:
- Double-click the action.
- Click on the action and then click Configure.
See Action configuration window for more information.
- Enter the URL of the site that the item belongs to in Destination site URL.
- Select the Connection to use to connect to the SharePoint Online site.
Don't have a connection yet? For information about how to create a new connection, see Create a personal connection.
- Specify the List name of the list that contains the item.
- Select an option for Items to update.
- Click Save.
For more information on the fields, see Office 365 Update Item Permissions action fields, buttons, and settings.
Section |
Field |
Description |
||||||||
---|---|---|---|---|---|---|---|---|---|---|
(none) | Destination site URL |
The URL of the site containing the list or document library you want to use. |
||||||||
(none) | Connection |
The connection to connect to the SharePoint site to update item permissions.
For more information about connections and connection types, see Connection types and Connector actions. |
||||||||
(none) | List name |
The list or document library containing the items to be updated. |
||||||||
(none) |
Items to update |
Specify which items are to be updated.
What is CAML?
CAML (Collaborative Markup Language) is an XML based language for querying and updating objects such as Lists and Libraries in SharePoint. CAML retrieves items from a SharePoint object based on the conditions specified. |
||||||||
Query builder |
Scope |
Specify options to determine the scope of updates. Select one of the following options:
|
||||||||
Query builder |
Filters |
Filter to specify which items are to be updated. Select one of the following options:
Conditions fields
To add a condition, click Add filter rule and then fill in the fields. |
||||||||
(none) |
Inherit permissions from parent |
Specify if the item permission will inherit the parent permission set (the permissions used in the library or list that contains the item). If this is selected any other permission setting is not applied. |
||||||||
(none) |
Remove existing permissions |
Removes permissions currently set on the item before adding the new permissions. If the item permission currently links to the parent permission set (the permissions used in the library or list that contains the item), disabling (clearing) this option causes the inherited permissions to be copied to the items. |
||||||||
(none) |
Target |
Specify the users or group that will have access to the item.
Note: Does not support external users. To modify permissions of an item for external users, select Group as the Target.
|
||||||||
(none) |
User or group name |
The users or groups that will have permission to access the item.
|
||||||||
(none) |
Permission |
Level of permission to assign for the indicated items. Choose the Remove option in the drop down list to remove all permissions from a user or group. The permission level selected here will be added to the existing permissions of the users, unless Remove existing permissions is selected. If Remove existing permissions is selected the current permissions of the users are removed before the new permission is given. Select one of the following permission levels:
For more information about these permission levels, see understanding-permission-levels. |
||||||||
(none) | Custom permission |
Custom SharePoint permission level for the item. The selection made in the Permission field will be overruled by the Custom permission selected. New permission levels can be created in SharePoint. To learn more, see How to create and edit permission levels. |
||||||||
(none) |
All matched items updated |
Variable to store the operation result. Returns "Yes" if all matched items were successfully updated. |
||||||||
(none) |
List item ID |
Variable to store IDs of the updated items. |
||||||||
(none) |
List item URL |
Variable to store URLs of updated items. |
For more information about how to use Lookups in configuration fields, see Lookups in action configuration fields.