Cannot query softwareOathMethods for a user

Nikolay Valchev 20 Reputation points
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 Entra External ID
Microsoft Entra External ID
A modern identity solution for securing access to customer, citizen and partner-facing apps and services. It is the converged platform of Azure AD External Identities B2B and B2C. Replaces Azure Active Directory External Identities.
2,795 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Crystal Lee Morgan 390 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.


  2. Nikolay Valchev 20 Reputation points
    2023-12-22T15:01:40.4433333+00:00

    My bad, it is working as expected

    0 comments No comments