<?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: Which rest API to use in order to list the groups that belong to a specific user in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/which-rest-api-to-use-in-order-to-list-the-groups-that-belong-to/m-p/11145#M6173</link>
    <description>&lt;P&gt;@Mohit Miglani​&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make sure to select the best option so the post will be moved to the top and will help in case more users have this question in the future.&lt;/P&gt;</description>
    <pubDate>Fri, 12 Nov 2021 23:46:40 GMT</pubDate>
    <dc:creator>jose_gonzalez</dc:creator>
    <dc:date>2021-11-12T23:46:40Z</dc:date>
    <item>
      <title>Which rest API to use in order to list the groups that belong to a specific user</title>
      <link>https://community.databricks.com/t5/data-engineering/which-rest-api-to-use-in-order-to-list-the-groups-that-belong-to/m-p/11140#M6168</link>
      <description>&lt;P&gt;Which rest API to use in order to list the groups that belong to a specific user&lt;/P&gt;</description>
      <pubDate>Wed, 10 Nov 2021 10:25:09 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/which-rest-api-to-use-in-order-to-list-the-groups-that-belong-to/m-p/11140#M6168</guid>
      <dc:creator>Mohit_m</dc:creator>
      <dc:date>2021-11-10T10:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: Which rest API to use in order to list the groups that belong to a specific user</title>
      <link>https://community.databricks.com/t5/data-engineering/which-rest-api-to-use-in-order-to-list-the-groups-that-belong-to/m-p/11141#M6169</link>
      <description>&lt;P&gt;api/2.0/groups/list-parents &lt;/P&gt;&lt;P&gt;--data '{ "user_name": "someone@example.com" }'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Nov 2021 10:28:33 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/which-rest-api-to-use-in-order-to-list-the-groups-that-belong-to/m-p/11141#M6169</guid>
      <dc:creator>Prabakar</dc:creator>
      <dc:date>2021-11-10T10:28:33Z</dc:date>
    </item>
    <item>
      <title>Re: Which rest API to use in order to list the groups that belong to a specific user</title>
      <link>https://community.databricks.com/t5/data-engineering/which-rest-api-to-use-in-order-to-list-the-groups-that-belong-to/m-p/11142#M6170</link>
      <description>&lt;P&gt;Please check the below curl command example which invokes list-parents endpoint from the Groups API. It can be extended/modified based on the requirements.&lt;/P&gt;&lt;P&gt;It retrieves all groups in which a given user or group is a member.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This method is non-recursive; it returns all groups in which the given user or group is a member but not the groups in which those groups are members.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;B&gt;&lt;I&gt;curl --netrc -X GET \&lt;/I&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;&lt;I&gt;&lt;A href="https://xxxxx.cloud.databricks.com/api/2.0/groups/list-parents" target="test_blank"&gt;https://xxxxx.cloud.databricks.com/api/2.0/groups/list-parents&lt;/A&gt; \&lt;/I&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;&lt;I&gt;--data '{ "user_name": "someone@example.com" }' \&lt;/I&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;&lt;I&gt;| jq .&lt;/I&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reference documentation from more details:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.databricks.com/dev-tools/api/latest/groups.html#list-parents" target="test_blank"&gt;https://docs.databricks.com/dev-tools/api/latest/groups.html#list-parents&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Nov 2021 10:29:10 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/which-rest-api-to-use-in-order-to-list-the-groups-that-belong-to/m-p/11142#M6170</guid>
      <dc:creator>Mohit_m</dc:creator>
      <dc:date>2021-11-10T10:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: Which rest API to use in order to list the groups that belong to a specific user</title>
      <link>https://community.databricks.com/t5/data-engineering/which-rest-api-to-use-in-order-to-list-the-groups-that-belong-to/m-p/11143#M6171</link>
      <description>&lt;P&gt;Hi there is groups API. &lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.databricks.com/dev-tools/api/latest/groups.html" target="test_blank"&gt;https://docs.databricks.com/dev-tools/api/latest/groups.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is example API call to list members of the group:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;curl --netrc -X GET \
&lt;A href="https://dbc-a1b2345c-d6e7.cloud.databricks.com/api/2.0/groups/list-members" target="test_blank"&gt;https://dbc-a1b2345c-d6e7.cloud.databricks.com/api/2.0/groups/list-members&lt;/A&gt; \
--data '{ "group_name": "reporting-department" }' \
| jq .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Nov 2021 10:31:09 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/which-rest-api-to-use-in-order-to-list-the-groups-that-belong-to/m-p/11143#M6171</guid>
      <dc:creator>Hubert-Dudek</dc:creator>
      <dc:date>2021-11-10T10:31:09Z</dc:date>
    </item>
    <item>
      <title>Re: Which rest API to use in order to list the groups that belong to a specific user</title>
      <link>https://community.databricks.com/t5/data-engineering/which-rest-api-to-use-in-order-to-list-the-groups-that-belong-to/m-p/11144#M6172</link>
      <description>&lt;P&gt;Hi @Hubert Dudek​&amp;nbsp;the API &lt;I&gt;list-members&lt;/I&gt; will list all the members of the group, but here the question is to list all the groups of a user. So &lt;I&gt;list-parents&lt;/I&gt; is the API to be used. This will give all groups in which a given user or group is a member.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.databricks.com/dev-tools/api/latest/groups.html#list-parents" target="test_blank"&gt;https://docs.databricks.com/dev-tools/api/latest/groups.html#list-parents&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Nov 2021 10:41:11 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/which-rest-api-to-use-in-order-to-list-the-groups-that-belong-to/m-p/11144#M6172</guid>
      <dc:creator>Prabakar</dc:creator>
      <dc:date>2021-11-10T10:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: Which rest API to use in order to list the groups that belong to a specific user</title>
      <link>https://community.databricks.com/t5/data-engineering/which-rest-api-to-use-in-order-to-list-the-groups-that-belong-to/m-p/11145#M6173</link>
      <description>&lt;P&gt;@Mohit Miglani​&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make sure to select the best option so the post will be moved to the top and will help in case more users have this question in the future.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Nov 2021 23:46:40 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/which-rest-api-to-use-in-order-to-list-the-groups-that-belong-to/m-p/11145#M6173</guid>
      <dc:creator>jose_gonzalez</dc:creator>
      <dc:date>2021-11-12T23:46:40Z</dc:date>
    </item>
  </channel>
</rss>

