Pull information from Azure, Teams or Office to create a Sharepoint business directory

Tony Griffiths 0 Reputation points
2023-09-12T05:57:27.5466667+00:00

I am looking for an option to take user properties information in Azure, Office or Teams that will create a Phonebook listing for internal users in SharePoint. Basic data only (Username, Phone, Email, Department, Role)

Microsoft 365 and Office | SharePoint | For business | Windows
Microsoft Teams | Microsoft Teams for business | Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Pascal 86 Reputation points
    2023-09-13T08:39:48.9833333+00:00

    Hey Toni

    I see several possibilities to achieve this. Some might be:

    Option A: Power Automate Flow using Connector "Search for users V2"

    Create a Power Automate flow that gets all users through "Search for users V2" connector and write them into a SharePoint list one after the other using the "SharePoint - Create list item" connector.

    Office 365 Users - Connectors | Microsoft Learn

    Option B: Create Power App and query Company Directory directly

    PowerApp that queries and lists Company directory with the "Office 365 Users" connector. Once finished you could deploy the App to Teams through Teams Admin Center. This approach has the advantage that you do not have to have a SharePoint list that is in constant Sync with your AAD since it queries the directory directly.

    Connect to Office 365 Users connection from Power Apps - Power Apps | Microsoft Learn

    Option C: Power Automate Flow using HTTP Connector and Microsoft Graph API

    You could create a Power Automate flow that gets all users through HTTP connector (Premium) and writes them into a SharePoint list one after the other. This approach probably needs an Azure AD App Registration.

    List users - Microsoft Graph v1.0 | Microsoft Learn

    Option D: Using PowerShell

    Alternatively you could also create a PowerShell script that reads out all Company users and writes them into a specific SharePoint list.

    Get-AzureADUser (AzureAD) | Microsoft Learn

    0 comments No comments

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.