<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Get the current user role using a server object extension in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/get-the-current-user-role-using-a-server-object/m-p/38707#M217</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is the technical support article to get the current user name and roles using SOE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;A href="https://support.esri.com/en/technical-article/000011331" rel="nofollow noopener noreferrer" target="_blank"&gt;&lt;SPAN style="color: #0563c1; text-decoration: underline; font-size: medium; font-family: Calibri; "&gt;https://support.esri.com/en/technical-article/000011331&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: left; color: #595959; text-transform: none; line-height: 1.55rem; text-indent: 0px; letter-spacing: normal; font-family: 'Avenir Next W01', 'Avenir Next W00', 'Avenir Next', Avenir, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15.93px; font-style: normal; font-weight: 300; margin-top: 0px; margin-bottom: 0.77rem; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; background-color: #ffffff; font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"&gt;This code returns the following JSON:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;{  "serverUserInfo": {   "currentUser": "demo",   "roles": [   "admin",   "publisher"  ]  } }

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The roles are that the user &lt;SPAN style="text-align: left; color: #595959; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: 'Avenir Next W01', 'Avenir Next W00', 'Avenir Next', Avenir, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15.93px; font-style: normal; font-weight: 300; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; background-color: #ffffff; font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"&gt;can be obtained. I'd like to have user name and her/his current role. Please advice?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-align: left; color: #595959; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: 'Avenir Next W01', 'Avenir Next W00', 'Avenir Next', Avenir, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15.93px; font-style: normal; font-weight: 300; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; background-color: #ffffff; font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-align: left; color: #595959; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: 'Avenir Next W01', 'Avenir Next W00', 'Avenir Next', Avenir, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15.93px; font-style: normal; font-weight: 300; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; background-color: #ffffff; font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"&gt;Tom###&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Dec 2021 21:30:13 GMT</pubDate>
    <dc:creator>tomwang1</dc:creator>
    <dc:date>2021-12-10T21:30:13Z</dc:date>
    <item>
      <title>Get the current user role using a server object extension</title>
      <link>https://community.esri.com/t5/developers-questions/get-the-current-user-role-using-a-server-object/m-p/38707#M217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is the technical support article to get the current user name and roles using SOE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;A href="https://support.esri.com/en/technical-article/000011331" rel="nofollow noopener noreferrer" target="_blank"&gt;&lt;SPAN style="color: #0563c1; text-decoration: underline; font-size: medium; font-family: Calibri; "&gt;https://support.esri.com/en/technical-article/000011331&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: left; color: #595959; text-transform: none; line-height: 1.55rem; text-indent: 0px; letter-spacing: normal; font-family: 'Avenir Next W01', 'Avenir Next W00', 'Avenir Next', Avenir, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15.93px; font-style: normal; font-weight: 300; margin-top: 0px; margin-bottom: 0.77rem; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; background-color: #ffffff; font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"&gt;This code returns the following JSON:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;{  "serverUserInfo": {   "currentUser": "demo",   "roles": [   "admin",   "publisher"  ]  } }

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The roles are that the user &lt;SPAN style="text-align: left; color: #595959; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: 'Avenir Next W01', 'Avenir Next W00', 'Avenir Next', Avenir, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15.93px; font-style: normal; font-weight: 300; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; background-color: #ffffff; font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"&gt;can be obtained. I'd like to have user name and her/his current role. Please advice?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-align: left; color: #595959; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: 'Avenir Next W01', 'Avenir Next W00', 'Avenir Next', Avenir, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15.93px; font-style: normal; font-weight: 300; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; background-color: #ffffff; font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-align: left; color: #595959; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: 'Avenir Next W01', 'Avenir Next W00', 'Avenir Next', Avenir, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15.93px; font-style: normal; font-weight: 300; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; background-color: #ffffff; font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"&gt;Tom###&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 21:30:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/get-the-current-user-role-using-a-server-object/m-p/38707#M217</guid>
      <dc:creator>tomwang1</dc:creator>
      <dc:date>2021-12-10T21:30:13Z</dc:date>
    </item>
  </channel>
</rss>

