cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to Identify the current Logged in user in SDK logic

0 Likes
956

Hi,

I need to identify the current logged in user on the UI in my underlying SDK logic to have some conditions in code.

Can you please help me with the code patch to identify the logged in user?

Thanks,

Pratik

Accepted Solutions (1)

Accepted Solutions (1)

ashishsingh1987
Product and Topic Expert
Product and Topic Expert

Hi Pratik,

You can use below code:

import AP.PC.IdentityManagement.Global;

var user = Identity.Retrieve(Context.GetCurrentIdentityUUID()).ID.content;

variable user will hold the value of the current logged in user.

Regards,

Ashish

0 Likes

Thanks a lot Ashish. It worked for me.

Answers (0)