The User SID virtual table contains the user's SID. Important/potentially useful: It contains all of their SIDs. Which means if they are part of windows groups etc. (which might also have Nav permissions) you would have to do
IF "User SID".FINDFIRST THEN
REPEAT
...
UNTIL "User SID".NEXT = 0;
so that should help understand what Kriki's code is doing.
Small correction: Do NOT use FINDFIRST if you use REPEAT-UNTIL. So:
IF "User SID".FINDSET THEN
REPEAT
...
UNTIL "User SID".NEXT = 0;
BTW: important to remember about that table is that it only gives the SID's of CURRENT user. So if you want to know all the SID's of a user, you need to create a form/page/report/... on that table and then run it with the users credentials.
Regards,Alain Krikilion No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
Comments
You referring to the lookup on the UserID in the User Setup form - where you can connect Nav Logins and Window Logins?
With thanks
recUserSID.RESET;
recUserSID.SETFILTER(ID,'*\' + USERID);
recUserSID.FINDFIRST;
MESSAGE('%1',recUserSID.SID);
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
The User SID virtual table contains the user's SID.
Important/potentially useful: It contains all of their SIDs. Which means if they are part of windows groups etc. (which might also have Nav permissions) you would have to do
so that should help understand what Kriki's code is doing.
BTW: important to remember about that table is that it only gives the SID's of CURRENT user. So if you want to know all the SID's of a user, you need to create a form/page/report/... on that table and then run it with the users credentials.
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!