question

JSG-3345 avatar image
0 Votes"
JSG-3345 asked saldana-msft edited

How to track the number of consumed requests whose resources are not in the main Azure AD storage?

The user has a number of properties that are not stored in Azure AD, such as

"aboutMe, birthday, hireDate, interests, mySite, pastProjects, preferredName, responsibilities, schools, skills"

They also cannot be obtained using the request
https://docs.microsoft.com/en-us/graph/delta-query-overview#properties-stored-outside-of-the-main-data-store

"GET /users"

They also cannot be obtained using the /delta request. If there are a lot of users in AAD, for example, more than 9,000, then to get these properties it will be necessary to make a request for each user to get these attributes.

_graphClient.Users[id].Request().Select("aboutMe, birthday, hireDate, interests, mySite, pastProjects, preferredName, responsibilities, schools, skills, id");

And this will lead to the second problem that I encountered code I get information about all these users in less than 10 minutes. This is the Retry-After response after about 9,000 requests.. The documentation says that there is an additional header "x-ms-throttle-limit-percentage" which notifies how many resources are left for these requests before the "Retry-After" will work, but I did not receive this header for this type of requests
https://docs.microsoft.com/en-gb/graph/throttling?view=graph-rest-1.0#regular-responses-requests

I have a question, the header "x-ms-throttle-limit-percentage" should come for properties that are outside of AAD, for example in SharePoint Online?

microsoft-graph-usersmicrosoft-graph-throttling
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

ZehuiYaoMSFT-7151 avatar image
0 Votes"
ZehuiYaoMSFT-7151 answered ZehuiYaoMSFT-7151 edited

Hi @JSG-3345, I recommend opening a support ticket for more details on throttling and getting properties stored outside of the main data store.



If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.





5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.