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.
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.
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.
Office 365 Users, User Function, Canvas Apps, Microsoft Documentation, User Outputs, Microsoft 365