scm_pa | 2020-06-04 15:44:12 UTC | #1
Greetings all. I'm looking to programmatically add voicemail capability to a user. Is this done via PatchVoiceMailUserPolicy() or do I need to do this through the AuthorizationAPI and modify roles/permissions?
Thank you.
Jerome.Saint-Marc | 2020-06-05 13:37:43 UTC | #2
Hello,
I believe the enablement of voicemail for a user (to get the global voicemail policy applied to this user) is done via authorization/permission. The user needs to have a role granted with the "Voicemail - Voicemail - Receive" permission (voicemail:voicemail:receive).
I think the PatchVoiceMailUserPolicy() only allows to change the alert timeout (before call goes through voicemail) and the user's PIN.
Regards,
scm_pa | 2020-06-10 18:03:39 UTC | #3
Thank you for that. Regards.
scm_pa | 2020-06-11 15:27:51 UTC | #4
Hi. I'm not seeing where or what authorization API used to enable voicemail for the user. I see ones to get a list of permissions for a user but nothing to set the permissions.
Thank you.
Jerome.Saint-Marc | 2020-06-11 15:51:48 UTC | #5
Hello,
Permissions are assigned to users via roles.
So you would need to create a role that contains this permission, or extend an existing role adding this voicemail permission there.
Then you can assign the role to the users via the role. Sending a POST /api/v2/authorization/roles/{roleId}?subjectType=PCUSER With a body like this: {"subjectIds":["userIdofusergettingtherole"],"divisionIds":["divisionIdassignedwiththisrole"]}
Regards,
system | 2020-07-12 15:51:51 UTC | #6
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 7964