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 / Canvas Apps - is it po...
Power Apps
Unanswered

Canvas Apps - is it possible to get the business unit etc...

(0) ShareShare
ReportReport
Posted on by 581

In a Canvas App is it possible to get a users Business Unit, Team etc... into the app?

 

For example if someone is in the "CorporationOne" business unit, can I get that information as a variable or part of a collection in the app?

Categories:
  • bengo83 Profile Picture
    159 on at

    Hi @lee-martin 

     

    What do you mean by "Business Unit"? If you want to save user's Department you can use the following code:

     

    Set(varDepartment,First(Office365Users.SearchUserV2({searchTerm:"benjamin@golders.ch"}).value).Department)

     

    King regards

    Beny

  • Lee-Martin Profile Picture
    581 on at

    @bengo83  -Thank you, but I'm asking about Business Units not the department.

     

    In power apps admin, You can define Access through Security Roles, Teams, Users, and Business Units.

     

    I want to be able to access those.

  • bengo83 Profile Picture
    159 on at

    Hi @lee-martin 

     

    Ok, sorry... i know what you mean now 🙂

     

    I think with the following code you can read out the bussiness unit from the current user of the app:

     

    LookUp(Users,'Full Name'=User().FullName).'Business Unit'.Name

     

    Users is a dataverse table where you need to add that the code works and for which you need a Powerapps premium licence.

     

    I hope it helps you

     

    King regards

    Beny

     

  • Lee-Martin Profile Picture
    581 on at

    @bengo83  - thanks, but we're not using dataverse

  • bengo83 Profile Picture
    159 on at

    Hi @lee-martin 

    Does this mean, that you do not have premium licences? I don't think it would be possible to solve the problem in this case.

    King regards

    Beny

  • Lee-Martin Profile Picture
    581 on at

    @bengo83 

     

    We have premier licenses. We are using SQL Server as our datasource

  • bengo83 Profile Picture
    159 on at

    Hi @lee-martin 

    With premium licenses you can use the data table I recommend.

     

    bengo83_0-1711626750821.png

     

    Best regards

    Beny

  • Lee-Martin Profile Picture
    581 on at

    @bengo83 

     

    So whatever we set in powerplatform admin - it will be in there?

  • bengo83 Profile Picture
    159 on at

    Hi @lee-martin 

    I think you can find most of the informations in the dataverse (in different tables).

    Best Regards

    Beny

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 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 271

#3
Mohsin Ali Profile Picture

Mohsin Ali 223

Last 30 days Overall leaderboard