web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Using O365 account for...
Power Apps
Answered

Using O365 account for different views and permissions

(0) ShareShare
ReportReport
Posted on by Microsoft Employee
Hallo guys,
I’ve got a question related to O365 account and PowerApps.
We are a small company and we’re using O365 to correspond each other. I’d like to create an app with PowerApps. There are a number of employees being listed in MS Azure. How is it possible that a user logs in his account and is able to see his dedicated view of the app only?
An administrator (HR) should have a different view of the PowerApp than an ordinary user (IT) depending which O365 account is used.
Are there any functions/methods?

Thanks so much for helping.
ThePowerAppsGuy
Categories:
  • Verified answer
    eka24 Profile Picture
    20,925 on at

    To accomplish that, you will need a user Table.

     

    I will use two sample tables to explain the process, Main Table and UserTable.

    Do a variable OnStart of the App:

              To make use of the UserGroup:

               Set(VarUser,LookUp(UserTable,Email=User().Email,UserGroup)

    To filter Product table for a particular UserGroup, that is to see only records of particular UserGroup (On Example a Gallery):

            Filter(ProductTable,UserGroup= VarUser)

    Sample Tables:

    user.JPG

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at
    Thanks so much for your reply.
    Is there an article or documentation about it? Would you mind providing a link related to my topic? Can’t find anything to it. Quite new with PowerApps.
  • eka24 Profile Picture
    20,925 on at

    Not sure your datasource but these are tables. So if you are using Azure SQL, create the sample user table in your database.

     

    Then whatever table you wish to filter you can create either Email or FullName column.

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at
    Ah ok. I see. I’m afraid I’m still not very familiar to PowerApps so far.
    It’s still quite a big deal for me to put it into practice.

    Does your explanation include following example?

    There’s a benefit system which rewards employees for special performance for example.

    All employees do have an O365 account.
    If user A enters his credentials for his account, and enters his dashboard of O365, then he’ll have a view of his credits. Only a view for his credits.

    The HR is the administrator and manages this platform/app.
    She’s able to see all listed employees (from MS Azure) and is permitted to add, delete or change the value of credits.
    Her perspective of the app is a different one than from the rest of the users.

    But how to make this happen?
    Where to see a documentation to look up?

    Thanks so much for helping.
  • Verified answer
    eka24 Profile Picture
    20,925 on at

    I asked for your datasource, whether Excel sharepoint or Azure SQL.

    Try watching:

    https://youtu.be/-VaADTTPYmg?t=616

    https://youtu.be/-Z_13J02RPU?t=221 (Excel)

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at
    It hasn’t implemented so far. Wanna use Azure SQL.

    Really appreciate your reply.
    Thanks 🙏.
  • eka24 Profile Picture
    20,925 on at

    That is good.

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 220 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 194 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 150

Last 30 days Overall leaderboard