Citizen Developer
Zeitspanne
explore our new search
User Function vs Office 365 Users
Bildquelle: Shutterstock.com
Power Automate
2. Juli 2023 12:00

User Function vs Office 365 Users

von HubSite 365 über Craig White

Talks about #lowcode, #formula1, #powerplatform, #empoweringothers, and #digitaldisruption

Citizen DeveloperPower AutomateLearning Selection

What’s your chosen method for getting logged-on user information in a canvas app? There’s 2 popular ways – the User function and via the Office 365 Users

The author of the summary discusses the use of the User function and the Office 365 Users connector in Microsoft Power Apps to retrieve user information. They highlight potential issues with using the User function, such as mismatches with user names and emails or users not being found. To overcome these problems, the author suggests using the Office 365 Users connector instead.

The Office 365 Users connector offers several advantages. Firstly, it retrieves user information from the Office 365 user profile, which is linked to the company's Active Directory. This ensures that the user data is accurate and consistent across different systems that implement Single Sign-On and sync with Active Directory.

Secondly, the Office 365 Users connector provides richer information compared to the User function. Additional details like department or line manager can be accessed from Office 365 profiles, enabling the automation of tasks like escalations or approvals. The connector also offers other useful API endpoints for searching other users or retrieving direct reports.

The author suggests adding the Office 365 Users connector to the app and utilizing it to store the logged-on user's information and profile image. They provide an example of Power Fx code to achieve this, recommending the use of the latest version of the MyProfile and UserPhoto functions (specifically MyProfileV2() and UserPhotoV2()).

 

 

By following this approach, the user's information can be retrieved and stored using the Office 365 Users connector, providing more accurate data and additional capabilities for the app.

User Function vs Office 365 Users: What's your chosen method for getting logged-on user information in a canvas app? There are 2 popular ways - the User function and via the Office 365 Users connector.

  • USER FUNCTION: The User function can retrieve the logged-on users Full Name, Email, and Photo: User01-1024x744.png.

  • It seems straightforward enough, but the Microsoft documentation says the outputs may not match the current user's information in Microsoft 365 or other services: User02-1-1024x160.png.

  • You don't have to look too far to find evidence of this, as seen in this Power Users Forum post. It's something that has been discovered in the early stages of working with canvas apps.
 

Understanding the Differences Between User Function and Office 365 Users Connector

The User function can provide quick and easy access to basic user information, but it may not always provide accurate or up-to-date data. On the other hand, the Office 365 Users connector is a more reliable method for retrieving user information as it directly connects to the Microsoft 365 services. However, using the connector may require additional steps to set up and access the desired data. In summary, while the User function can offer a more straightforward approach, the Office 365 Users connector provides higher accuracy and reliability in obtaining user information.

Learn about User Function vs Office 365 Users

The User Function and Office 365 Users are two popular methods of getting logged-on user information in a canvas app. The User function can retrieve the logged-on user's Full Name, Email, and Photo, but the Microsoft documentation states that the outputs may not match the current user's information in Microsoft 365 or other services. Evidence of this can be found with PowerUsers.Microsoft.com. It is important to understand that the User Function may not always give accurate results and that Office 365 Users may be more reliable when retrieving user information. Office 365 Users allow the retrieval of users' profile information from Microsoft 365, such as their name, email address, and profile photo. Additionally, Office 365 Users also allow access to other profile information, such as department, job title, and office location. This information can be useful for many types of apps. It is important to note that the Office 365 Users connector requires an admin to grant permission for the app to access user profile information. It is recommended to use this method to get the most accurate and up-to-date information on users.

More links on about User Function vs Office 365 Users

PowerApps User Function & Office 365 Users Guide
All user attributes you can retrieve with PowerApps. Code snippets to retrieve the information of the current user, manager or any other user.
Editing Office 365 user details
An Office 365 administrator can edit user properties for everyone in the organisation that uses Office 365 services. Every user of Office 365 needs a license.
Retrieve Office 365 user details with Azure Functions ... - GCIT
An Azure function, running daily, collects all user details sends them to a Microsoft Flow ... Create a list called Office 365 Users (or whatever you like) ...
PowerApps Search User
Mar 1, 2022 — PowerApps Get another User Information ; Office365Users.UserProfile(InfoAbout.Text).Surname, It helps to get the surname of the other user.
Moving to Office 365: Planning and Migration Guide
Office 365 Administration Functions Task Description Administration roles Domain verification (and DNS review) Adding, deleting, and restoring users ...

Keywords

Office 365 Users, User Function, Canvas Apps, Microsoft Documentation, User Outputs, Microsoft 365