<?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 Account SCIM API OpenAPI specification issues in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/account-scim-api-openapi-specification-issues/m-p/9953#M5211</link>
    <description>&lt;P&gt;I'm trying to get a list of all users, groups and service principals on Azure from a python script. As I understand things I should be using the Account SCIM API for this. According to the azure documentation [&lt;A href="https://learn.microsoft.com/en-us/azure/databricks/dev-tools/api/latest/scim/account-scim" alt="https://learn.microsoft.com/en-us/azure/databricks/dev-tools/api/latest/scim/account-scim" target="_blank"&gt;ref&lt;/A&gt;], the OpenAPI specification for this is &lt;A href="https://learn.microsoft.com/en-us/azure/databricks/_extras/api-refs/account-scim-2.0-azure.yaml" alt="https://learn.microsoft.com/en-us/azure/databricks/_extras/api-refs/account-scim-2.0-azure.yaml" target="_blank"&gt;here&lt;/A&gt;, however, this OpenAPI spec seems to have multiple issues, for one it uses `type: uuid`, and when I try and use it with &lt;A href="https://github.com/openapi-generators/openapi-python-client" alt="https://github.com/openapi-generators/openapi-python-client" target="_blank"&gt;openapi-python-client&lt;/A&gt; I get a whole host of errors (see &lt;A href="https://gist.github.com/aucampia/3978827ccd743cb34ffd7c684706b16d" alt="https://gist.github.com/aucampia/3978827ccd743cb34ffd7c684706b16d" target="_blank"&gt;here&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The OpenAPI spec also has `DEPRECATED in favor of &lt;A href="http://go/openapi/spec`" target="test_blank"&gt;http://go/openapi/spec`&lt;/A&gt; at the top, which is a bit confusing and not very helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this the right OpenAPI specification to use? If not where can I get the right one? And if it is, how can I report these issues with the OpenAPI spec?&lt;/P&gt;</description>
    <pubDate>Mon, 06 Feb 2023 11:46:24 GMT</pubDate>
    <dc:creator>iwan_aucamp</dc:creator>
    <dc:date>2023-02-06T11:46:24Z</dc:date>
    <item>
      <title>Account SCIM API OpenAPI specification issues</title>
      <link>https://community.databricks.com/t5/data-engineering/account-scim-api-openapi-specification-issues/m-p/9953#M5211</link>
      <description>&lt;P&gt;I'm trying to get a list of all users, groups and service principals on Azure from a python script. As I understand things I should be using the Account SCIM API for this. According to the azure documentation [&lt;A href="https://learn.microsoft.com/en-us/azure/databricks/dev-tools/api/latest/scim/account-scim" alt="https://learn.microsoft.com/en-us/azure/databricks/dev-tools/api/latest/scim/account-scim" target="_blank"&gt;ref&lt;/A&gt;], the OpenAPI specification for this is &lt;A href="https://learn.microsoft.com/en-us/azure/databricks/_extras/api-refs/account-scim-2.0-azure.yaml" alt="https://learn.microsoft.com/en-us/azure/databricks/_extras/api-refs/account-scim-2.0-azure.yaml" target="_blank"&gt;here&lt;/A&gt;, however, this OpenAPI spec seems to have multiple issues, for one it uses `type: uuid`, and when I try and use it with &lt;A href="https://github.com/openapi-generators/openapi-python-client" alt="https://github.com/openapi-generators/openapi-python-client" target="_blank"&gt;openapi-python-client&lt;/A&gt; I get a whole host of errors (see &lt;A href="https://gist.github.com/aucampia/3978827ccd743cb34ffd7c684706b16d" alt="https://gist.github.com/aucampia/3978827ccd743cb34ffd7c684706b16d" target="_blank"&gt;here&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The OpenAPI spec also has `DEPRECATED in favor of &lt;A href="http://go/openapi/spec`" target="test_blank"&gt;http://go/openapi/spec`&lt;/A&gt; at the top, which is a bit confusing and not very helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this the right OpenAPI specification to use? If not where can I get the right one? And if it is, how can I report these issues with the OpenAPI spec?&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 11:46:24 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/account-scim-api-openapi-specification-issues/m-p/9953#M5211</guid>
      <dc:creator>iwan_aucamp</dc:creator>
      <dc:date>2023-02-06T11:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: Account SCIM API OpenAPI specification issues</title>
      <link>https://community.databricks.com/t5/data-engineering/account-scim-api-openapi-specification-issues/m-p/9954#M5212</link>
      <description>&lt;P&gt;@Iwan Aucamp​&amp;nbsp;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The OpenAPI specification you found for the Azure Account SCIM API may not be up-to-date or may have issues as you have encountered. Microsoft provides several APIs for Azure Active Directory that allow programmatic access to users, groups, and service principals. You may want to consider using Microsoft Graph API, which provides a unified programmability model that can be used to access data and insights across the Microsoft Cloud.&lt;/P&gt;&lt;P&gt;To access Azure Active Directory data with Microsoft Graph API, you will need to authenticate using OAuth 2.0. Once authenticated, you can use the Microsoft Graph API endpoints to get users, groups, and service principals. You can also use the Graph Explorer to interactively test and explore the API.&lt;/P&gt;&lt;P&gt;Here is an example of how to list all users in Python using the Microsoft Graph API:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;import requests
import json
&amp;nbsp;
# Set the API endpoint and headers
url = "https://graph.microsoft.com/v1.0/users"
headers = {
    "Authorization": "Bearer &amp;lt;ACCESS_TOKEN&amp;gt;",
    "Accept": "application/json"
}
&amp;nbsp;
# Make the API request and handle errors
response = requests.get(url, headers=headers)
if response.status_code != 200:
    print("Error:", response.status_code, response.text)
    exit()
&amp;nbsp;
# Parse the response and print the users
users = json.loads(response.text)["value"]
for user in users:
    print(user["displayName"], user["userPrincipalName"])&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;You can find more information and examples for using the Microsoft Graph API in Python in the official documentation: &lt;A href="https://docs.microsoft.com/en-us/graph/sdks/sdks-overview" alt="https://docs.microsoft.com/en-us/graph/sdks/sdks-overview" target="_blank"&gt;https://docs.microsoft.com/en-us/graph/sdks/sdks-overview&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 09 Apr 2023 14:55:07 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/account-scim-api-openapi-specification-issues/m-p/9954#M5212</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-04-09T14:55:07Z</dc:date>
    </item>
    <item>
      <title>Re: Account SCIM API OpenAPI specification issues</title>
      <link>https://community.databricks.com/t5/data-engineering/account-scim-api-openapi-specification-issues/m-p/9955#M5213</link>
      <description>&lt;P&gt;Hi @Iwan Aucamp​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for posting your question in our community! We are happy to assist you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To help us provide you with the most accurate information, could you please take a moment to review the responses and select the one that best answers your question?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will also help other community members who may have similar questions in the future. Thank you for your participation and let us know if you need any further assistance!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Apr 2023 08:41:51 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/account-scim-api-openapi-specification-issues/m-p/9955#M5213</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-04-10T08:41:51Z</dc:date>
    </item>
  </channel>
</rss>

