Group: StrataFrame Users
Posts: 1,
Visits: 7
|
Hello,
I am wondering how I can get the password of a user or how I can determine if a user is administrator.
Since I need check a user's permission, but the program is a Dll and called by another program, so the security login has been bypassed. The user's ID is passed from the other program, i.e. UserID is known. Now I need to check this user's permission to set up my form controls.
I have programed to check SFSUserXPermission and SFSRolesXPermission, but if this user is an administrator, the role is not in table SFSRolesXPermission. My question is how I can get if this user is an administrator or not. I guess the info is in table SFSUsers.us_Data, but how can I get it?
Or, how I can get the password of the user? If I have the password, I can use Login.AuthenticateUser(UserName, Password, "", loUserInfo) to login this user, and then check the currentUser's permission.
Thanks,
|