Author Topic: Get Allowed permission for an agent using WDE SDK.  (Read 2290 times)

Offline Rajnish@49

  • Jr. Member
  • **
  • Posts: 58
  • Karma: -1
Get Allowed permission for an agent using WDE SDK.
« on: April 20, 2019, 09:59:40 PM »
Hello All,

I have created a custom task to integrate WDE with SAP C4S. Data communication between WDE and SAP C4S is working fine. But one last piece to Read assigned/allowed actions/privilege to agent. Any help how to get allowed privilege using WDE SDK.

Appreciate your support!!

Thanks,
Rajnish

Offline Rajnish@49

  • Jr. Member
  • **
  • Posts: 58
  • Karma: -1
Re: Get Allowed permission for an agent using WDE SDK.
« Reply #1 on: April 23, 2019, 09:23:19 AM »
I have got it working using below statement

string Permission=(string)configManager.getvalues("InteractionWorkspace.Chat.canDeclineChat");

Returns 1 If is is allowed. Else it return blank or empty string.


Thanks,
Rajnish

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2752
  • Karma: 44
Re: Get Allowed permission for an agent using WDE SDK.
« Reply #2 on: April 23, 2019, 10:34:44 AM »
This returns just information about assigned roles, but nothing about assigned privileges and permissions.