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

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

principal vs GetCurrentUser() snippet

VladimirRosu
19-Tanzanite

principal vs GetCurrentUser() snippet

Hi guys,

I discovered something strange. On a stream I have two columns, source and User (don't remember why exactly, especially considering that soourceType is always User, but anyway).

The User I pass dynamically from a service and the value of the User is the principal keyword.

The issue is that on some rows the value of source is different than User.

What exactly returns principal?

Is there a difference between this and GetCurrentUser?

Many thanks

Vladi

1 REPLY 1
PaiChung
22-Sapphire I
(To:VladimirRosu)

As far as I know principal and GetCurrentUser return the same information, not sure if they access something different.

Personally I've always preferred GetCurrentUser because it tells me more about what is actually being done.

Announcements


Top Tags