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

Offline rolf_b

  • Newbie
  • *
  • Posts: 20
  • Karma: 0
WFM API - find roles of user
« on: July 29, 2020, 08:56:54 PM »
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 29, 2021, 10:13:00 PM »
WFMConfigService852Soap config = getCfgService();

CfgSortMode sortMode = new CfgSortMode();
CfgSecurityRoleDetails details = new CfgSecurityRoleDetails();
details.setInfoType(ECfgInfoType.CFG_INFO_OBJECT);

CfgSecurityRoleHolder roleHolder = config.getSecurityRole(null, sortMode, details);