Skip to main content
16-Pearl
March 10, 2021
Question

get UserGroup using getCurrentUser of CurrentSessionInfo thingworx 9.1

  • March 10, 2021
  • 1 reply
  • 1011 views

Hi ,

I am trying to get UserGroup using getCurrentUser . and i tried using below line

var result = Resources["CurrentSessionInfo"].GetCurrentUserGroups();

but it returns infotable with multiple groups(including default composer). i want only Custom group returned in String.

even i tried to iterate from infotable but i am unable to do. can someone help me to get it?

 

Thanks

1 reply

5-Regular Member
March 11, 2021

This is the result from my service in 8.5

zyuan1_0-1615448787270.png

Doesn't seem like it works as my expectation.  What's your service result and your expected output?