0
votes

I have two tenants of Azure Active Directory. I am creating a console/Daemon/Background application which uses Microsoft.Graph nugget package.

How can I use microsoft graph api to filter based on tenant id? Example I want to get users in particular tenant.There is no user login screen.I am using this https://github.com/microsoftgraph/uwp-csharp-snippets-sample as reference.

1

1 Answers

0
votes

You can only authenticate against one tenant at a time so there is no method/need to filter by the tenant id. Each tenant would generate it's own Access Token for your application which you then return to that tenant as part of the request.