UiPath Activities

The UiPath Activities Guide

For Each Role


Performs an activity or a series of activities on each directory role that is activated in the tenant.



  • DisplayName - The display name of the activity.


  • ODataFilter - Establishes an oData v3.0 filter. This field supports only strings and String variables.
  • Top - Specifies the maximum number of roles this activity retrieves. If not set, it returns the roles matching the filter criteria. This field supports only strings and String variables.


  • Private - If selected, the values of variables and arguments are no longer logged at Verbose level.


  • Index - Provides a zero-based index that specifies what element of the current collection is being iterated.


This activity requires one of the following permissions to be set:

  • Delegated - RoleManagement.Read.Directory, Directory.Read.All, RoleManagement.ReadWrite.Directory, Directory.ReadWrite.All, Directory.AccessAsUser.All
  • Application - RoleManagement.Read.Directory, Directory.Read.All, RoleManagement.ReadWrite.Directory, Directory.ReadWrite.All

Updated 4 months ago

For Each Role

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.