Skip to main content
Nintex Community Menu Bar

How Can I check if a User Is a Member of A Role

  • November 21, 2011
  • 5 replies
  • 19 views

Forum|alt.badge.img+5

Is there any way to check if a user (the originator in my case) is a member of a Role? Ideally, I'd like to do this from Studio, without having to use the API.


Thanks,


Peter

5 replies

Forum|alt.badge.img+7
  • December 9, 2011

You can check if user is a member of a k2 role by executing the Get Role Users of the UMUser smartobject. If you want to do it within a k2 process, then use inline function (Text- contains).


Forum|alt.badge.img+5
  • Author
  • December 16, 2011

Can you point me to instructions on how to call this method? I haven't used SmartObjects too heavily yet.


Forum|alt.badge.img+7
  • December 16, 2011

Smartobject service tester is described at _http://jeylabsblog.com/2009/02/15/smartobject-service-tester/


Once you opened the smartobject service tester, expand smartobject explorer > all smartobjects > right-click on UMUsers. Then select the method to execute (Role to users), type in the input (role name) and click on execute.


Forum|alt.badge.img
  • October 29, 2018
Hi,

I am not able to find the Role to user SO method in he UMUsers SO.
Could you please let me know where I can find this method, I have checked this method is not listed in the UMUser SO.

Forum|alt.badge.img+13
  • October 31, 2018

Hi arunkaul and pwnewhook,


 


The method is called Get Role Users in the UMUser smo.  You may exexute this from the smartobject service tester. 17039iBE676389247334F7.png