Share via

How to user details of a user from Azure storage via emailId, get all users of a group.

waseem S 0 Reputation points
Jan 16, 2025, 1:00 PM

I want to know is there any way to get user details of a user by providing user emailId via Azure Management Api's.
Any azure api to fetch groups and members of that groups?

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
2,310 questions
Azure Storage Explorer
Azure Storage Explorer
An Azure tool that is used to manage cloud storage resources on Windows, macOS, and Linux.
278 questions
Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
3,393 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Khadeer Ali 3,675 Reputation points Microsoft Vendor
    Jan 16, 2025, 2:05 PM

    @waseem S,

    Welcome to the Microsoft Q&A Platform!

    Thank you for reaching out with your query about fetching user details by email ID and retrieving group members via the Microsoft Graph API.

    Fetch User Details

    You can use the Microsoft Graph API to get user details by providing the user's email ID. Here's an example:

    HTTP
    
    GET https://graph.microsoft.com/v1.0/users/{email}
    

    Replace {email} with the email address of the user you wish to retrieve details for. This API call returns a JSON object containing the user's details, such as their display name, job title, and other attributes.


    Fetch Members of a Group

    To fetch the members of a specific group, you can use the following API:

    HTTP
    GET https://graph.microsoft.com/v1.0/groups/{group-id}/members
    

    Replace {group-id} with the group's unique ID. This call retrieves a JSON object listing the group's members, including their display names and email addresses.


    Fetch All Groups

    To retrieve a list of all groups in your organization, you can use:

    HTTP
    
    GET https://graph.microsoft.com/v1.0/groups
    

    This returns a JSON object containing all groups, with details such as their display names and email addresses.


    Authentication and Authorization

    To use the Microsoft Graph API, you'll need to authenticate and authorize your application using Azure Active Directory. Ensure your app has the following permissions:

    • User.Read.All (for user details)
    • Group.Read.All (for group and member data)

    For further details, refer to the official Microsoft documentation:

    Microsoft Graph API - Get User

    Hope this helps. Do let us know if you any further queries.


    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.


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.