Skip to main content
19-Tanzanite
March 15, 2016
Question

principal vs GetCurrentUser() snippet

  • March 15, 2016
  • 1 reply
  • 1552 views

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

22-Sapphire I
March 15, 2016

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.