JF2016 | 2019-08-20 13:01:46 UTC | #1
Hi,
is it possible to pass informations to a custom client app. We need to know in the app, who is the actual PureCloud user opening the app.
We want to monitor the user via the Platform api and therefore we need to know who is the actual Purecloud user.
I have only found that we can hand over the language (pcLanTag) and the environment (pcEnvironment)
Regards,
Jan
tim.smith | 2019-08-20 19:28:22 UTC | #2
If you need to retrieve information about the user, your app will need to be authorized first. Then you can retrieve the user's information via GET /api/v2/users/me. Also see the JavaScript SDK.
JF2016 | 2019-08-21 06:49:06 UTC | #3
Thank you for the fast reply, but my question is belonging to the custom client application, which can be installed at the Admin->Integration Page.
An app configured this way starts within the PC UI when i start it via the menu or sidebar. At this start, i want to hand over the User Name of the User in PC to that Website (custom client app). So that i can display Information belonging to the user without having a new Logon at PC via the platform api. The info are no PC Informations, but external data.
Just the same way, like i can pass the language and the environment over to the app via the macros pcLanTag and pcEnvironment.
tim.smith | 2019-08-22 14:20:56 UTC | #4
I understand what you're trying to do. The Client App SDK doesn't expose the user's information. If you want to get that info, you need to authenticate your app.
system | 2019-09-22 14:20:59 UTC | #5
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: 5824