Azure / azure-sdk-for-go

This repository is for active development of the Azure SDK for Go. For consumers of the SDK we recommend visiting our public developer docs at:
https://docs.microsoft.com/azure/developer/go/
MIT License
1.63k stars 832 forks source link

Azure AD Graph API User query? #5616

Closed Devin-Holland closed 5 years ago

Devin-Holland commented 5 years ago

I'm looking for a way to query users within our AD based on email. Similar to this from the graph api documentation:

https://docs.microsoft.com/en-us/previous-versions/azure/ad/graph/api/users-operations

GET https://graph.windows.net/myorganization/users?api-version[&$filter]

However, I am not seeing anywhere that this is an option in the generated sdk. I have found https://github.com/Azure/azure-sdk-for-go/blob/98f2f9ff6ad63a307bb3438b7631af594b11f32b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/user.go but it doesn't do quite what I need. Is this functionality available somewhere that I am missing?

Devin-Holland commented 5 years ago

I think this is what I'm looking for actually: https://github.com/Azure/azure-sdk-for-go/blob/7a9d2769e4a581b0b1bc609c71b59af043e05c98/services/graphrbac/1.6/graphrbac/users.go#L368

kaerm commented 5 years ago

Hi @Devin-Holland thanks for posting. I am tagging the right team to take a look at this

ghost commented 5 years ago

Thanks for working with Microsoft on GitHub! Tell us how you feel about your experience using the reactions on this comment.