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

Get detail of current logged in user using Powerapps Component Framework

Hi. Can anyone tell me what is the way of getting the details (fullname,email,etc) of the current logged in user using the powerapps component framework. Thank you.

2 ACCEPTED SOLUTIONS

Accepted Solutions
Community Support
Community Support

Hi @ThareLyn :

User's info is available under context.userSettings. 

I think this link will help you a lot:

Context 

UserSettings 

In addition,you can also refer to this post:

How to display the current user information by code? 

Best Regards,

Bof

View solution in original post

you can get user name and userid and security roles of the user from context.userSettings.

context.userSettings.userName

 

However, if you need other user attributes, you may need to use context.webapi.retrieve to query uer entity with userid

View solution in original post

2 REPLIES 2
Community Support
Community Support

Hi @ThareLyn :

User's info is available under context.userSettings. 

I think this link will help you a lot:

Context 

UserSettings 

In addition,you can also refer to this post:

How to display the current user information by code? 

Best Regards,

Bof

View solution in original post

you can get user name and userid and security roles of the user from context.userSettings.

context.userSettings.userName

 

However, if you need other user attributes, you may need to use context.webapi.retrieve to query uer entity with userid

View solution in original post

Helpful resources

Announcements
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

Users online (64,135)