<?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 Create role and add domain user in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/create-role-and-add-domain-user/m-p/410205#M15886</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I am trying to create a db role using&amp;nbsp;&lt;/P&gt;&lt;P&gt;arcpy.CreateRole_management(sdeconn, "rolename", "GRANT", "domain\username")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is failing with following error message, although it seems to have created the role and added the AD user to it&lt;/P&gt;&lt;P&gt;Error granting role privilege to the user. [Invalid parameter value passed to function]&lt;BR /&gt;Failed to execute (CreateRole).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have also tried using double backslash domain\\username&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I remove the domain&amp;nbsp;as I am working in the same domain, it fails to add user as it cannot find it&lt;/P&gt;&lt;P&gt;Error granting role privilege to the user. [DBMS table not found [42000:[Microsoft][ODBC Driver 13 for SQL Server][SQL Server]Cannot add the principal ''username'', because it does not exist or you do not have permission.]]&lt;BR /&gt;Failed to execute (CreateRole).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone been able to get the correct syntax for this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Jan 2019 10:20:19 GMT</pubDate>
    <dc:creator>RavinHasseea1</dc:creator>
    <dc:date>2019-01-25T10:20:19Z</dc:date>
    <item>
      <title>Create role and add domain user</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/create-role-and-add-domain-user/m-p/410205#M15886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I am trying to create a db role using&amp;nbsp;&lt;/P&gt;&lt;P&gt;arcpy.CreateRole_management(sdeconn, "rolename", "GRANT", "domain\username")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is failing with following error message, although it seems to have created the role and added the AD user to it&lt;/P&gt;&lt;P&gt;Error granting role privilege to the user. [Invalid parameter value passed to function]&lt;BR /&gt;Failed to execute (CreateRole).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have also tried using double backslash domain\\username&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I remove the domain&amp;nbsp;as I am working in the same domain, it fails to add user as it cannot find it&lt;/P&gt;&lt;P&gt;Error granting role privilege to the user. [DBMS table not found [42000:[Microsoft][ODBC Driver 13 for SQL Server][SQL Server]Cannot add the principal ''username'', because it does not exist or you do not have permission.]]&lt;BR /&gt;Failed to execute (CreateRole).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone been able to get the correct syntax for this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jan 2019 10:20:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/create-role-and-add-domain-user/m-p/410205#M15886</guid>
      <dc:creator>RavinHasseea1</dc:creator>
      <dc:date>2019-01-25T10:20:19Z</dc:date>
    </item>
  </channel>
</rss>

