cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
AbhayKacker
Regular Visitor

Model Driven Apps - Get Logged in User

Hi team, I am trying to get the current logged in user email / full name on model driven apps to compare it with a certain field on a CDS entity. Requirement - a user submits a report and says my managers email address / name is "X" (over riding manager field on user level); then the user "X" should be able to see that report. Is this possible. Thanks 
1 ACCEPTED SOLUTION

Accepted Solutions
v-monli-msft
Community Support
Community Support

Hi @AbhayKacker ,

 

User function is avaible in canvas app, could you please try to embed a canvas app on the model-driven form, then get the current user information using User function?

https://docs.microsoft.com/en-us/powerapps/maker/model-driven-apps/embed-canvas-app-in-form

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-user

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
v-monli-msft
Community Support
Community Support

Hi @AbhayKacker ,

 

User function is avaible in canvas app, could you please try to embed a canvas app on the model-driven form, then get the current user information using User function?

https://docs.microsoft.com/en-us/powerapps/maker/model-driven-apps/embed-canvas-app-in-form

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-user

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi @AbhayKacker can you review the above reply and update the thread if it was helpful? 

 

Thank you,

 

@Anonymous 

@v-monli-msft 

So in model driven app there is no native way to filter data in entity per current user ?

Is there a way to do it?

 

For example I have to find if a Custom Text Column contains the current user full name in order to filter a view.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on June 15, 2022 at 8am PDT.

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Top Kudoed Authors
Users online (2,355)