Genesys CTI User Forum

Genesys CTI User Forum => Genesys-related Development => Topic started by: rolf_b on July 29, 2020, 08:56:54 PM

Title: WFM API - find roles of user
Post by: rolf_b 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
Title: Re: WFM API - find roles of user
Post by: xember 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);