<?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 Re: Adding Member to group using account databricks rest api in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/adding-member-to-group-using-account-databricks-rest-api/m-p/80232#M35967</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working on workspace-local group APIs on Azure Databricks though what&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/9"&gt;@Retired_mod&lt;/a&gt;&amp;nbsp;suggested did not work to me too. I checked the payload sent from Databricks workspace frontend and the following worked to me. Has API signature been changed but document hasn't been updated?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
  "schemas": [
    "urn:ietf:params:scim:api:messages:2.0:PatchOp"
  ],
  "Operations": [
    {
      "op": "add",
      "value": {
        "members": [
          {
            "value": "0000000000000000 (replace this with your Databricks USER ID)"
          }
        ]
      }
    }
  ]
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Edit:&lt;/P&gt;&lt;P&gt;I am using PATCH `/api/2.0/preview/scim/v2/Groups/{id}` API. I found another doc which looks like v2.1 API reference and the signature looks quite similar to what I used.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.gcp.databricks.com/en/_extras/documents/account-scim-2_1.pdf" target="_blank"&gt;Account SCIM 2.1 Documentation (databricks.com)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 24 Jul 2024 02:40:03 GMT</pubDate>
    <dc:creator>shingot</dc:creator>
    <dc:date>2024-07-24T02:40:03Z</dc:date>
    <item>
      <title>Adding Member to group using account databricks rest api</title>
      <link>https://community.databricks.com/t5/data-engineering/adding-member-to-group-using-account-databricks-rest-api/m-p/68153#M33566</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I want to add a member to a group in databricks account level using rest api (&lt;A href="https://docs.databricks.com/api/azure/account/accountgroups/patch" target="_blank"&gt;https://docs.databricks.com/api/azure/account/accountgroups/patch&lt;/A&gt;) as mentioned in this link I could able to authenticate but not able to add member while using below body. Could please someone guide what i missed to add in body?&lt;/P&gt;&lt;P&gt;{"schemas": [&lt;BR /&gt;"urn:ietf:params:scim:api:messages:2.0:PatchOp"&lt;BR /&gt;],&lt;BR /&gt;"Operations":[&lt;BR /&gt;{&lt;BR /&gt;"op": "add",&lt;BR /&gt;"path": "/members",&lt;BR /&gt;"value": "xyz@abcdcomapny.com"&lt;BR /&gt;}&lt;BR /&gt;]&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2024 07:27:12 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/adding-member-to-group-using-account-databricks-rest-api/m-p/68153#M33566</guid>
      <dc:creator>pragarwal</dc:creator>
      <dc:date>2024-05-06T07:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Member to group using account databricks rest api</title>
      <link>https://community.databricks.com/t5/data-engineering/adding-member-to-group-using-account-databricks-rest-api/m-p/68246#M33609</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/9"&gt;@Retired_mod&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried suggest body also but still member is not added to group. is there any other method that i can use add member to the group at account level&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Phani.&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2024 12:22:58 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/adding-member-to-group-using-account-databricks-rest-api/m-p/68246#M33609</guid>
      <dc:creator>pragarwal</dc:creator>
      <dc:date>2024-05-06T12:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Member to group using account databricks rest api</title>
      <link>https://community.databricks.com/t5/data-engineering/adding-member-to-group-using-account-databricks-rest-api/m-p/77470#M35435</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/9"&gt;@Retired_mod&lt;/a&gt;&amp;nbsp; I am having the same issue as&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/103530"&gt;@pragarwal&lt;/a&gt;&amp;nbsp;: after sending the api request and getting success code 200 the member is not added to the admin group.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 13:26:36 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/adding-member-to-group-using-account-databricks-rest-api/m-p/77470#M35435</guid>
      <dc:creator>larsr</dc:creator>
      <dc:date>2024-07-09T13:26:36Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Member to group using account databricks rest api</title>
      <link>https://community.databricks.com/t5/data-engineering/adding-member-to-group-using-account-databricks-rest-api/m-p/80232#M35967</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working on workspace-local group APIs on Azure Databricks though what&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/9"&gt;@Retired_mod&lt;/a&gt;&amp;nbsp;suggested did not work to me too. I checked the payload sent from Databricks workspace frontend and the following worked to me. Has API signature been changed but document hasn't been updated?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
  "schemas": [
    "urn:ietf:params:scim:api:messages:2.0:PatchOp"
  ],
  "Operations": [
    {
      "op": "add",
      "value": {
        "members": [
          {
            "value": "0000000000000000 (replace this with your Databricks USER ID)"
          }
        ]
      }
    }
  ]
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Edit:&lt;/P&gt;&lt;P&gt;I am using PATCH `/api/2.0/preview/scim/v2/Groups/{id}` API. I found another doc which looks like v2.1 API reference and the signature looks quite similar to what I used.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.gcp.databricks.com/en/_extras/documents/account-scim-2_1.pdf" target="_blank"&gt;Account SCIM 2.1 Documentation (databricks.com)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2024 02:40:03 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/adding-member-to-group-using-account-databricks-rest-api/m-p/80232#M35967</guid>
      <dc:creator>shingot</dc:creator>
      <dc:date>2024-07-24T02:40:03Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Member to group using account databricks rest api</title>
      <link>https://community.databricks.com/t5/data-engineering/adding-member-to-group-using-account-databricks-rest-api/m-p/80869#M36156</link>
      <description>&lt;P&gt;Looks like value should be an array. This worked to me to add three users to a group. Replace xxx/yyy/zzz with account ID.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
  "schemas": [
    "urn:ietf:params:scim:api:messages:2.0:PatchOp"
  ],
  "Operations": [
    {
      "path": "members",
      "op": "add",
      "value": [
        {
          "value": "xxx"
        },
        {
          "value": "yyy"
        },
        {
          "value": "zzz"
        }
      ]
    }
  ]
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;On the other hand, remove operation seems a bit different format. Add remove operation for each entry to remove. Here is an example to remove three users with ID xxx, yyy and zzz from a group.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
  "schemas": [
    "urn:ietf:params:scim:api:messages:2.0:PatchOp"
  ],
  "Operations": [
    {
      "op": "remove",
      "path": "members[value eq \"xxx\"]"
    },
    {
      "op": "remove",
      "path": "members[value eq \"yyy\"]"
    },
    {
      "op": "remove",
      "path": "members[value eq \"zzz\"]"
    }
  ]
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 28 Jul 2024 01:08:04 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/adding-member-to-group-using-account-databricks-rest-api/m-p/80869#M36156</guid>
      <dc:creator>shingot</dc:creator>
      <dc:date>2024-07-28T01:08:04Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Member to group using account databricks rest api</title>
      <link>https://community.databricks.com/t5/data-engineering/adding-member-to-group-using-account-databricks-rest-api/m-p/88924#M37664</link>
      <description>&lt;P&gt;Does the above work? I still can't quite figure it out. Any help would be much appreciated.&lt;/P&gt;&lt;P&gt;I know authentication is not an issue as I can use a lot of the other endpoints. I just can't figure out the correct body syntax to add a member to a group.&lt;/P&gt;&lt;P&gt;url= &lt;A href="https://accounts.azuredatabricks.net/api/2.0/accounts/" target="_blank" rel="noopener"&gt;https://accounts.azuredatabricks.net/api/2.0/accounts/&lt;/A&gt;&amp;lt;account_id&amp;gt;/scim/v2/Groups/&amp;lt;group_id&amp;gt;&lt;/P&gt;&lt;P&gt;data= {&lt;BR /&gt;&amp;nbsp; 'schemas': [&lt;BR /&gt;&amp;nbsp; &amp;nbsp; 'urn:ietf:params:scim:api:messages:2.0:PatchOp'&lt;BR /&gt;&amp;nbsp; ],&lt;BR /&gt;&amp;nbsp; 'Operations': [&lt;BR /&gt;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; 'op': 'add',&lt;BR /&gt;&amp;nbsp; &amp;nbsp; 'path': '/members',&lt;BR /&gt;&amp;nbsp; &amp;nbsp; 'value': {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 'value': '&amp;lt;user&amp;gt;@&amp;lt;domain&amp;gt;.com'&lt;BR /&gt;&amp;nbsp; &amp;nbsp; }&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp; ]&lt;BR /&gt;}&lt;/P&gt;&lt;P data-unlink="true"&gt;header={'Content-Type': 'Authorization': 'Bearer &amp;lt;token&amp;gt;'}&lt;/P&gt;&lt;P data-unlink="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;My code is&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;requests.patch(url=url, data=data, headers=header)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Error:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;{&lt;BR /&gt;'schemas': [&lt;BR /&gt;'urn:ietf:params:scim:api:messages:2.0:Error'&lt;BR /&gt;],&lt;BR /&gt;'scimType': "Invalid JSON provided in request body. PATCH\nUnrecognized token 'schemas': was expecting ('true', 'false' or 'null')\n at [Source: schemas=urn%3Aietf%3Aparams%3Ascim%3Aapi%3Amessages%3A2.0%3APatchOp&amp;amp;Operations=op&amp;amp;Operations=path&amp;amp;Operations=value; line: 1, column: 8]",&lt;BR /&gt;'detail': 'Request is unparsable, syntactically incorrect, or violates schema.',&lt;BR /&gt;'status': '400'&lt;BR /&gt;}&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 06 Sep 2024 21:51:28 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/adding-member-to-group-using-account-databricks-rest-api/m-p/88924#M37664</guid>
      <dc:creator>Nikos</dc:creator>
      <dc:date>2024-09-06T21:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Member to group using account databricks rest api</title>
      <link>https://community.databricks.com/t5/data-engineering/adding-member-to-group-using-account-databricks-rest-api/m-p/91493#M38176</link>
      <description>&lt;P&gt;This payload worked for me:&lt;/P&gt;&lt;P&gt;URL:&amp;nbsp;&lt;A href="https://{databricks_instance}/api/2.0/account/scim/v2/Groups/{group_id}" target="_blank"&gt;https://{databricks_instance}/api/2.0/account/scim/v2/Groups/{group_id}&lt;/A&gt;&lt;/P&gt;&lt;P&gt;PATCH with this payload&lt;/P&gt;&lt;DIV&gt;{&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"schemas": ["urn:ietf:params:scim:api:messages:2.0:PatchOp"],&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; "Operations": [&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"op": "add",&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"value": {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"members": [&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;{"value": "{user_id}"}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;]&lt;/DIV&gt;&lt;DIV&gt;}&lt;/DIV&gt;</description>
      <pubDate>Mon, 23 Sep 2024 22:02:26 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/adding-member-to-group-using-account-databricks-rest-api/m-p/91493#M38176</guid>
      <dc:creator>mauri_murillo</dc:creator>
      <dc:date>2024-09-23T22:02:26Z</dc:date>
    </item>
  </channel>
</rss>

