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
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.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Top Kudoed Authors
Users online (3,105)