Skip to main content

How to Add the Office 365 Users Connector to a Canvas App in Power Apps

· 6 min read
Jagdish Kumawat
Founder @ Dewiride

The Office 365 Users connector gives a canvas app people's Microsoft 365 profiles: name, email, job title, department, manager and direct reports. It's a standard connector, so it comes with Microsoft 365 licenses that include Power Apps. Adding it takes a minute from Studio's Data pane.

The example adds it to the Overtime Timesheet app, which uses each person's department from their profile.

Prerequisites​

Step 1: Open the Data Pane and Select Add Data​

Select Data in Studio's left-hand bar. In a new app it says There is no data in your app. Select Add data:

The Data pane saying There is no data in your app, with the Add data button outlined in red

Step 2: Search for Office 365 Users​

Select a data source opens with its search box ready. Type Office 365 Users:

The Select a data source flyout with Office 365 Users typed in the search box and the Office 365 Users connector, outlined in red, as the only result

Select Office 365 Users.

Step 3: Choose Your Connection​

The flyout lists your connections for this connector. If you already have one, it's listed under + Add a connection with the account it signs in as:

The Office 365 Users flyout with + Add a connection and an existing connection for admin@example.com, outlined in red

Select it. With no connection yet, select + Add a connection instead; Microsoft's Office 365 Users article says to select Connect and sign in with your work account if asked.

Step 4: Check the Data Pane​

The data source is added at once. A banner names it after the connection, here The data source "admin@example.com" was added to your app., while the Data pane lists it as Office365Users, the name formulas use:

The Data pane listing Office365Users with admin@example.com under it, outlined in red, next to the banner The data source admin@example.com was added to your app

Step 5: Use It in a Formula​

Type Office365Users. in a formula and Studio lists the connector's operations, such as DirectReportsV2, ManagerV2, MyProfileV2 and SearchUserV2. Here it's in a named formula in App.Formulas:

The formula bar for App.Formulas with MyProfile = Office365Users. typed and a suggestion list showing DirectReports, DirectReportsV2, HttpRequest, Manager, ManagerV2, MyProfile, MyProfileV2, MyTrendingDocuments, RelevantPeople, RelevantPeopleIBEnforced, SearchUser and SearchUserIBEnforced

The example only looked at the list and cleared the formula again. These guides use the operations properly:

Until a formula uses it, the App checker lists Office365Users under Unused data sources: Fixed: "Unused Data Sources".

Who Needs What​

Common Mistakes​

MistakeWhat happensDo this instead
Using the account name from the banner in formulasFormulas need Office365UsersUse the name the Data pane shows
Selecting + Add a connection when you already have oneYou end up with two connections for the same accountChoose the existing connection

Troubleshooting​

SymptomLikely causeFix
Office365Users is underlined red in a formulaThe data source isn't in the app yetAdd it from the Data pane
No suggestions after typing Office365Users. in App.FormulasApp.Formulas expects Name = formula;Start with a name, as in MyProfile = Office365Users.

FAQ​

Does it need an admin?​

Not in the example: adding it took no admin step, and each person's connection uses their own account. An organization's data policies can still restrict which connectors apps may use.

Which fields can I get?​

Name, email, job title, department, office location and more. How to Get the Current User's Profile and Job Title in Power Apps (MyProfileV2) lists the useful ones.

Conclusion​

Data → Add data → Office 365 Users → your connection. The app gets an Office365Users data source, and formulas can call its operations, starting with Office365Users.MyProfileV2().

Additional Resources​