Accessing User Roles from Plugin

Description
mwanser
Posts: 1
Joined: Wed May 15, 2019 8:44 pm

Accessing User Roles from Plugin

Postby mwanser » Wed May 15, 2019 8:52 pm

Im using

Code: Select all

securityService.getRolesForUser(currentUser.getLabel())
to get roles for a user but im not getting back the roles i see through the global administration tool. I know there is another version of this

Code: Select all

getRolesForUser(java.lang.String userName,IContextId context)
but im not sure what the context parameter is.

I also know there are global roles and project roles but what im getting back matches neither. How could i get back either version of the roles?

Any help would be greatly appreciated. Pretty new to poalrion plugin development so ill take general tips as well

thanks

Return to “Polarion Application Lifecycle Management (ALM)”

Who is online

Users browsing this forum: No registered users and 8 guests