Author Topic: WFM API - find roles of user  (Read 878 times)

Offline rolf_b

  • Newbie
  • *
  • Posts: 13
  • Karma: 0
WFM API - find roles of user
« on: July 30, 2020, 05:56:54 AM »
Hello,

I've been given the task to create a "year overview" for Timeoff-Entries in WFM, and for this, I need to check the role of the user. Team leaders and Department leaders shall see more things than agents.

In WFM Supervisor Web, there are roles for this. The leaders get the appropriate role, and receive the

But I cannot find an API function and no database table that associates agents (or users) with roles. There should be an association, since the WFM Supervisor Web allows me to select a role and assign users. But how to obtain it?

Any help appreciated
Rolf

Offline xember

  • Newbie
  • *
  • Posts: 19
  • Karma: 0
Re: WFM API - find roles of user
« Reply #1 on: January 30, 2021, 07:13:00 AM »
            WFMConfigService852Soap config = getCfgService();
   
            CfgSortMode sortMode = new CfgSortMode();
            CfgSecurityRoleDetails details = new CfgSecurityRoleDetails();
            details.setInfoType(ECfgInfoType.CFG_INFO_OBJECT);
            
            CfgSecurityRoleHolder roleHolder = config.getSecurityRole(null, sortMode, details);