I need to record some user-related audit data. In "old world", the .NET Membership system allocated a GUID (more or less under-the-covers) to each user and using that was the normal way to record the "user id" in any database tables where a reference to the user was needed.
In "new world", the relevant values coming back from WAAD are UPN and PUID. I'm assuming that I need to choose one of those as the value which uniquely identifies my user.
I'm leaning towards PUID because I suspect that the UPN will change if I ever update my users' logon details in WAAD. My feeling is that PUID will remain unchanged for as long as the user record remains in WAAD.
I'm not 100% sure of that though and haven't managed to find a formal definition of PUID anywhere. I'm also not clear what format PUID takes - it doesn't seem to be a GUID.
Thoughts and pointers welcome,
Thanks.
Nick