Skip to content
Software Zone 365
  • Home
  • Plans
  • Log In
  • Blogs
Arrange a Call
Arrange a Call
Software Zone 365
  • Home
  • Plans
  • Log In
  • Blogs
Utilizing Power Apps to Retrieve Current User Profile Details from Office 365

Utilizing Power Apps to Retrieve Current User Profile Details from Office 365

/ Uncategorized / By Ali Haroon

 

In today’s fast-paced business environment, leveraging digital platforms for efficient collaboration is essential. One such platform, Power Apps, enables developers to create custom business apps for their organization. A frequent question among app creators is how to effectively display the profile details of the current user or a specific member within a canvas app form. In this comprehensive guide, we’ll detail the steps to achieve this with ease.

Many find it challenging to showcase user profile details on a canvas app form. Although platforms like Portal App have built-in features for users to view and modify their profile details effortlessly, achieving the same on a canvas app requires a bit more intricacy.

Extracting Current User’s Details:

To begin, you need to integrate the “Office 365 Users” data source into your app. Developers usually assign the DataSource and Item properties to structure a form. To display the current user’s details, assign both properties this formula:


        Office365Users.MyProfile()
    

When aligning a form with a non-connected data source, it’s crucial to manually introduce a custom card, as the ‘Add field’ option won’t display the potential fields. In this custom card, you can add label controls. Configure these labels to display fields from the user profile, such as using ThisItem.GivenName for the user’s first name.

Fields Available for Current User:

Some accessible field names for the current user include:

  1. ThisItem.City 
  2. ThisItem.CompanyName.

Illustrating a Specific User’s Details via Email:

To illustrate a specific user’s details via email, align the DataSource and Item properties with the result derived from the UserProfileV2 method. Pass the user’s email address as an argument, like this:


        Office365Users.UserProfileV2("[email protected]")
    

This approach allows users to define an email either directly or through other controls like drop-down menus or text inputs. As in the previous method, use label controls within custom cards to present the fields, accessing them with the ThisItem keyword.

Fields Accessible for Specific Users:

The fields available for this method include

  1. aboutMe
  2. accountEnabled.

Some fields, like businessPhones or pastProjects, are table values. To depict these, incorporate a child gallery or Datatable control within the custom card, linking the Items property to the desired field value.

Expanding on User Profile Details in Power Apps:

When integrating the “Office 365 Users” data source in Power Apps, developers have access to a plethora of user profile details. Understanding these fields can help in creating more personalized and functional apps. Here’s a closer look at some key details:

    1. ID and displayName: Every user profile has a unique identifier (id) and a display name (displayName). These are fundamental for identifying users within your app.

    2. GivenName and Surname: The user’s first (givenName) and last names (surname) are essential for personalization, especially in communication-focused apps.

    3. Mail and MailNickname: The user’s email address (mail) and mail nickname (mailNickname) are vital for any app that integrates email communications.

    4. AccountEnabled: This field (accountEnabled) indicates whether the user’s account is active or not, which can be crucial for access control in your app.

    5. UserPrincipalName: Often used for login purposes, the userPrincipalName is another unique identifier for the user.

    6. Department and JobTitle: Information like department and jobTitle can be used for categorizing users or tailoring the app experience based on their role within the organization.

    7. Contact Details: Fields like mobilePhone and businessPhones are critical for apps that facilitate direct communication.

    8. Location Details: User location fields such as city, companyName, country, officeLocation, and postalCode are beneficial for geo-specific functionalities or for managing a geographically diverse team.

    9. Additional Fields: There are other fields like aboutMe and pastProjects that can provide deeper insights into a user’s professional background and experiences.

Implementing These Details in a Canvas App:

Using these fields effectively in a canvas app involves not only displaying them but also utilizing them to enhance the app’s functionality. Here are some ideas:

  • Personalized Greetings: Use givenName and surname to create personalized greetings or messages within the app.

  • Role-Based Access: Leverage fields like department and jobTitle to implement role-based access controls or content.

  • Communication Features: Integrate mail, mobilePhone, and businessPhones for features like email notifications or direct dialing from the app.

  • Location-Based Services: Utilize city, country, and officeLocation for location-based services or to customize content based on the user’s location.

Conclusion:  

Understanding and effectively using these user profile details in Power Apps can significantly enhance the functionality and user experience of your custom business apps. By focusing on these aspects, you can create more dynamic, personalized, and efficient digital solutions within your organization.

If any part of this guide seems intricate or if you require further technical assistance, feel encouraged to contact us. We’re here to ensure you navigate Power Apps with proficiency, and should you need bespoke solutions, we offer premium services tailored to your needs.

About The Author

Ali Haroon

← Previous Post
Next Post →

Related Posts

Unleashing Business Potential with Microsoft's Power Platform

Unleashing Business Potential with Microsoft’s Power Platform

Uncategorized / By Hussnain_Raza
Responsive-Power-Apps-Forms

How To Build Responsive Power Apps Forms From Scratch

Uncategorized / By Software Zone 365
Power Apps Button With Icon And Text

Creating Stylish Buttons with Icon in Power Apps

Uncategorized / By Software Zone 365
Power Apps Tip: Hide The Navigation Bar In Play Mode 

Power Apps Tip: Hide The Navigation Bar In Play Mode 

Uncategorized / By Software Zone 365
How To Use Custom Fonts In Power Apps

How To Use Custom Fonts In Power Apps

Uncategorized / By Software Zone 365
Rename Variables In Power Apps With 1-Click

Rename Variables In Power Apps With 1-Click

Uncategorized / By Software Zone 365
Enhanced Support Widget

💡 Facing Challenges with PowerPlatform?

Discover customized solutions with our PowerApps experts. Whether you're building apps, automating workflows, or integrating services, we're here to ensure your projects succeed.

🎁 Get a Free 30-Minute Support Consultation!

✅ Book Your Free Session Now
Trusted Support Trusted by 500+ users
rpiket from United States United States
5.0 ⭐️⭐️⭐️⭐️⭐️
Ahmad patiently looked over my Power Automate code and determined where I had gone wrong. He fixed it and patiently explained the changes to me. We thoroughly tested it together to verify it worked. I will definitely contact him again as I'm sure I'll need more help at some point.
David Lowe from United Kingdom United Kingdom
5.0 ⭐️⭐️⭐️⭐️⭐️
Ahmad Raza was fantastic in helping deliver these much needed changes. He was very polite, fast, and full of knowledge. Specifically, I was impressed by his ability to quickly understand my complex Power Apps query and suggest an efficient solution. Thanks to his expertise, we were able to implement the changes quickly and smoothly. I would highly recommend Ahmad to anyone needing assistance with Power Apps." - David Lowe, UK
Siddharth from India India
5.0 ⭐️⭐️⭐️⭐️⭐️
Great work. Understood the requirements and delivered in a timely manner!" - Siddharth, India
Liu Wei from China Switzerland
5.0 ⭐️⭐️⭐️⭐️⭐️
"Fast support amazing experience definetly recommend Ahmad" - lucamadonia, Switzerland
Arshad from Pakistan Pakistan
5.0 ⭐️⭐️⭐️⭐️⭐️
"Great job, Look forward to working together again. Thank you.." - Arshad, Pakistan
ahsunchuah from Singapore Singapore
5.0 ⭐️⭐️⭐️⭐️⭐️
"Look no further for an microsoft ecosystem support developer. you would not be disappointed" - ahsunchuah, Singapore
ch1ch1 from Germany Germany
5.0 ⭐️⭐️⭐️⭐️⭐️
"Thank you for solving the problems" - ch1ch1, Germany
maximilianfeuln from Italy Italy
5.0 ⭐️⭐️⭐️⭐️⭐️
"Great work, thank you!" - maximilianfeuln, Italy
meenamakan from South Africa South Africa
5.0 ⭐️⭐️⭐️⭐️⭐️
"Thank you so much Ahmad. Your service has help us tremendously. Will continue using your services in the future" - meenamakan, South Africa
maximilianfeuln from Italy Spain
5.0 ⭐️⭐️⭐️⭐️⭐️
"Problem solved efficiently and quickly. Satisfied with Ahmad's work, we continue to count on his services. Extensive knowledge of power apps" - navyrey_group, Spain
ketsueki from Japan Japan
5.0 ⭐️⭐️⭐️⭐️⭐️
"Easy to communicate with, service provided as advertised, no fuzz, quick and proficient." - ketsueki, Japan
pablo_aguirre_ from Chile Chile
5.0 ⭐️⭐️⭐️⭐️⭐️
"He know a lot of settings to add into the apps" - pablo_aguirre_, Chile
kasghar from Australia Australia
5.0 ⭐️⭐️⭐️⭐️⭐️
"I hired Ahmed for a Power App consultation. He was very helpful and patient, and he made sure that I understood everything. He has over 5 years of experience in Power Apps development, and he was able to quickly identify and advise solution accordingly. I would highly recommend him to anyone who needs help with Power Apps." - kasghar, Australia
tharinitd from Canada Canada
5.0 ⭐️⭐️⭐️⭐️⭐️
"Very good service" - tharinitd, Canada
yakiel23 from Israel Israel
5.0 ⭐️⭐️⭐️⭐️⭐️
"thank you greate developer" - yakiel23, Israel
hamdialomari from Saudi Arabia Saudi Arabia
5.0 ⭐️⭐️⭐️⭐️⭐️
"Skilled in consulting" - hamdialomari, Saudi Arabia
jawadb from Saudi Arabia Saudi Arabia
5.0 ⭐️⭐️⭐️⭐️⭐️
"Hi professional skills, I definitely will contact again." - jawadb, Saudi Arabia
hqebooks from United Kingdom United Kingdom
5.0 ⭐️⭐️⭐️⭐️⭐️
"Great experience. I guess this is my 5 time ordering for him. He is professional" - hqebooks, United Kingdom
giorgikala1985 from Georgia Georgia
5.0 ⭐️⭐️⭐️⭐️⭐️
"Ahmad has awesome skills in PowerApps and he helped me to fix issue very fast.
I strongly recommend him! 10/10" - giorgikala1985, Georgia
vpstraub from United States United States
5.0 ⭐️⭐️⭐️⭐️⭐️
"We had an initial discovery conversation and it sounds like Ahmad is able to deliver on my requirements.. Looking forward to demo'ing the functionality next week." - vpstraub, United States
leonili from Brazil Brazil
5.0 ⭐️⭐️⭐️⭐️⭐️
"Ahmad is exceptional! third time ordering from him and no regrets whatsoever." - leonili, Brazil
trustno78 from Estonia Estonia
5.0 ⭐️⭐️⭐️⭐️⭐️
"Outstanding experience, very skillful and professional work." - trustno78, Estonia
metavdoctor from Indonesia Indonesia
5.0 ⭐️⭐️⭐️⭐️⭐️
"straight forward, fast delivery." - metavdoctor, Indonesia
vascomarques360 from Portugal Portugal
5.0 ⭐️⭐️⭐️⭐️⭐️
"He was very fast and professional." - vascomarques360, Portugal
crmintegrator from Malta Malta
5.0 ⭐️⭐️⭐️⭐️⭐️
"Did a fine job and will work with him again." - crmintegrator, Malta
datawareghana from Ghana Ghana
4.0 ⭐️⭐️⭐️⭐️
"Very knowledgeable about PowerApps" - datawareghana, Ghana
victorv2022 from Mexico Mexico
5.0 ⭐️⭐️⭐️⭐️⭐️
"Excellent seller, understood my needs and helped with the development of an app as expected." - victorv2022, Mexico
texmaster17 from Netherlands Netherlands
5.0 ⭐️⭐️⭐️⭐️⭐️
"great work once again" - texmaster17, Netherlands
giantpanos from Greece Greece
5.0 ⭐️⭐️⭐️⭐️⭐️
"what can i say!
Ahmad was exceptional as always!" - giantpanos, Greece
box2021 from United Arab Emirates United Arab Emirates
4.0 ⭐️⭐️⭐️⭐️
"Fast and nice work. I had no difficulty with what he taught me how to do the backup on my c-panel files. The task ended quickly and I was pleased with the result. I highly recommend this guy. I didn't waste my money on him. I will definitely call him again for my next tasks." - box2021, United Arab Emirates
llendebo1 from Dominican Republic Dominican Republic
5.0 ⭐️⭐️⭐️⭐️⭐️
"Excellent. 5 STARS" - llendebo1, Dominican Republic
Read All Reviews
×
User Image
×

All Customer Reviews

Software Zone 365
dmca-badge
Facebook Twitter Youtube Linkedin Reddit Whatsapp Envelope

Navigation

  • Home
  • Pricing
  • About
  • Contact
  • Policy
  • Blog
  • PowerApps
  • Power Automate
  • Power Bi
  • Power Pages

Newsletter

Copyright © 2022 Software Zone 365 All Rights Reserved. 

  • ←
  • Contact Us
    Contact Form

  • WhatsApp
  • Email