Unable to find existing ID when using Graph /reports/authenticationMethods/userRegistrationDetails/{userRegistrationDetails-id}

Stadou 20 Reputation points
2024-08-15T09:23:41.3766667+00:00

I encountered an issue while using the Graph Explorer. Specifically, when I attempt to query the endpoint /reports/authenticationMethods/userRegistrationDetails/{some-id} with a specific user ID, I receive a 404 (Not Found) error. That's the case for most of the ID's, but not all, as some are working.

However, if I query the entire list using /reports/authenticationMethods/userRegistrationDetails, the data is returned correctly, and I can see the users in the response.

Could you please help me understand why querying with a specific user ID results in a 404 error, and how I might resolve this?

Thank you in advance for your assistance.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,113 questions
0 comments No comments
{count} votes

Accepted answer
  1. CarlZhao-MSFT 42,041 Reputation points
    2024-08-15T10:21:14.3766667+00:00

    Hi @Stadou

    This might be an issue with the API itself. In my case, it only returns data for certain user IDs, but for most user IDs, it returns a 404 error, even though these user IDs do exist in the list.

    I recommend opening a support ticket with the Microsoft support team to understand the cause of the error. Alternatively, you can click the "feedback" button on the documentation to report the issue.

    8ff46999-5b11-4ba7-b4d8-62d0d2430f18

    As a workaround, you can try using the $filter query parameter and the UPN attribute to filter the list set to retrieve the registration details for specific users.

    https://graph.microsoft.com/v1.0/reports/authenticationMethods/userRegistrationDetails?$filter=userPrincipalName eq '{UPN}'
    

    Hope this helps.

    If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.