Hi,
There is the technical support article to get the current user name and roles using SOE.
https://support.esri.com/en/technical-article/000011331
This code returns the following JSON:
{ "serverUserInfo": { "currentUser": "demo", "roles": [ "admin", "publisher" ] } }
The roles are that the user can be obtained. I'd like to have user name and her/his current role. Please advice?
Thanks,
Tom###
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.