We are working on a Graph section in our project to show monthly report of Active and Inactive Guest members.
We found this API:
GET /reports/getTeamsUserActivityUserCounts(period='{period_value}')
But this API is only returning count of Normal Members not Guest users.
Which API do I need to call to get Guest users count?
Related
In my application, I need to get user data like user name and email, also using API, I use find meeting time and create calendar event. Users those will use application will not be in my AD group.
Is there some scenario for making API workable for external users?
There are certain limitations and for guest users in the organizations:https://learn.microsoft.com/en-us/graph/api/resources/users?view=graph-rest-1.0#user-and-group-search-limitations-for-guest-users-in-organizations
For inviting or adding the Add a guest user and send an invitation please refer :https://learn.microsoft.com/en-us/azure/active-directory/external-identities/b2b-quickstart-add-guest-users-portal
I need to construct a Microsoft Graph URL so that when an admin clicks on the authorize button my application can read the user's list and inbox. I was successful in reading my own users list and their inboxes but when I tried to read the users list and inboxes of different third-party accounts after admin approval, I was getting an error. The URL which I created for authorization is given below
https://login.microsoftonline.com/<my_tenant_id>/v2.0/adminconsent?client_id=<my_client_id>&state=<state_id>&redirect_uri=<some_url>&scope=Directory.Read.All%20Mail.ReadWrite%20User.Read.All%20offline_access
The error i am getting when an third party admin tries to authorize it
User account '{EmailHidden}' does not exist in tenant 'Company' and
cannot access the application ''() in that tenant.
The account needs to be added as an external user in the tenant first.
Sign out and sign in again with a different Azure Active Directory
user account
I am trying to call the graph api using c# and a app registration to get the list of team meeting participants for another user.
https://learn.microsoft.com/en-us/graph/api/onlinemeeting-get?view=graph-rest-beta&tabs=http
GET /users/{userId}/onlineMeetings/{meetingId}
I can create an online meeting using my app registration but I cannot retrieve the meeting participants. I keep getting a 403 error. I have granted my app registration OnlineMeetings.Read.All and OnlineMeetings.ReadWrite.All. What other permissions are needed to get the meeting participants on behalf of another user?
I have created an app in azure AD, in my company tenant.
In application permissions, I have added Calendars.Read and Calendars.ReadWrite (Read and write calendars in all mailboxes) with application permission type, and I have grant admin consent.
In users, I have added user with personal Microsoft account (outlook.com) as a guest user.
When I am calling a graph for Member users, I am able to receive calendar events (and create a new ones),
but when I am calling a graph for a Guest users I get exception MailboxNotEnabledForRESTAPI.
Message: REST API is not yet supported for this mailbox.
Is there some limitation that I can create event only to a Member user, or I have miss-configured something?
You can only read mails/calendar events of users in your tenant only. So, it's better to filter users using userType eq 'member'.
https://graph.microsoft.com/v1.0/users?$filter=userType eq 'member'
Is there a way for no-authenticate user to managed his own list (in code) say I have a list of user screen name, is there any api that can I pass the list of users and return timeline for those users ? I have look into https://dev.twitter.com/docs/api/1/get/statuses/user_timeline but multiple user is not supported and in this post Combining multiple Twitter user timelines into one request they said about list and bot account, but from my understanding twitter limited 20 lists fro 1 account, so this seem not practical for > 20 users based app.
The list idea is just fine. You don't have to create new list to every user in your app. Add unique users you want to follow to non-full list (1 list can have up to 500 members) or create new list. Then poll all your lists few times an hour - then just sort out which screen_names to show to which your users.
I have managed to collect the statuses of ~55000 twitter users by using only 6 bot accounts.