Azure / azure-cli

Azure Command-Line Interface
MIT License
3.99k stars 2.97k forks source link

how to view schema extensions data using group or user list ? #10732

Open jpr-luminus opened 5 years ago

jpr-luminus commented 5 years ago

How can I retrieve schema extensions (added via Graph API) using az-cli ?


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

yonzhan commented 5 years ago

@jiasli please take a look and comment.

jiasli commented 5 years ago

Azure CLI is not designed for complicated AAD operations. Also az ad group is still using AAD Graph API https://graph.windows.net/, instead of MS Graph API https://graph.microsoft.com/. As a workaround, you may use az rest to directly call the REST API: https://docs.microsoft.com/en-us/graph/extensibility-schema-groups

az rest --method GET --uri "https://graph.microsoft.com/v1.0/groups?$filter=graphlearn_courses/courseId eq '123'&$select=displayName,id,description,graphlearn_courses"