UiPath Activities

The UiPath Activities Guide

For Each User in Role


Performs an activity or a series of activities on each user that is a member of a directory role.



  • DisplayName - The display name of the activity.


  • RoleId - Establishes the object's ID of the directory role. 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 User in Role

Suggested Edits are limited on API Reference Pages

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