Using the CurrentUser Control

These example automations show how to use the CurrentUser control. The first automation works with the control's properties. The second automation uses the IsInRole methods.

Note: When testing for newly-created role information, such as a new user or a new group, it is important to log out and log in to force the propagation of role information within the domain. Not doing so can cause the IsInRole test to return False.

This automation shows how to check the Windows group membership information using the CurrentUser control:

This automation shows how to use the IsInRole (string) and IsInRole(WindowsBuiltInRole) methods.


See GetRoles Script for the script shown in this automation.


Privacy | Trademarks | Terms of Use | Feedback

Updated: 18 June 2020

© 2016 - 2020 Pegasystems Inc.  Cambridge, MA All rights reserved.


OpenSpan data classification label