Share via

Cannot query softwareOathMethods for a user

Anonymous
2023-12-20T16:28:47.4766667+00:00

Hello, https://graph.microsoft.com/v1.0/users/$userObjectId/authentication/softwareOathMethods does not return. Api has the following permissions:
UserAuthenticationMethod.Read.All
UserAuthenticationMethod.ReadWrite.All

What could be the problem?

Thanks, Nikolay

Microsoft Security | Microsoft Entra | Microsoft Entra External ID
0 comments No comments

2 answers

Sort by: Most helpful
  1. Anonymous
    2023-12-22T15:01:40.4433333+00:00

    My bad, it is working as expected

    Was this answer helpful?

    0 comments No comments

  2. Crystal Lee Morgan 380 Reputation points
    2023-12-20T17:17:41.59+00:00

    @Nikolay Valchev It seems like you are facing an issue with the Microsoft Graph API not returning softwareOathMethods for a user. You have the necessary permissions to access the softwareOathMethods, but the API is not returning any results <sup>12</sup>.

    This issue can occur due to various reasons such as incorrect API endpoint, incorrect user object ID, or permission issues <sup>12</sup>. To troubleshoot this issue, you can try the following steps:

    Check if the API endpoint is correct. You can try using the Graph Explorer to test the API endpoint and see if it returns any results <sup>1</sup>.

    Check if the user object ID is correct. You can try using a different user object ID to see if the API returns any results <sup>1</sup>.

    Check if the user has any softwareOathMethods associated with their account. If the user does not have any softwareOathMethods, the API will not return any results <sup>1</sup>.

    Check if there are any permission issues. You can try checking the Azure AD audit logs to see if there are any errors related to the API request <sup>2</sup>.

    If the above steps do not resolve the issue, you can try reaching out to the Microsoft support team for further assistance.

    I hope this helps! Let me know if you have any other questions.

    Was this answer helpful?


Your answer

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