Determining if a user is an Admin


Author
Message
Greg McGuffey
Greg McGuffey
Strategic Support Team Member (3.4K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
I saw a post that soon this will be easy for the CurrentLoggedOnUser. However, I need to do it for any user (more of my row level security issues). How do I figure this out? Lets say I fill the SFSUsersBO with all users. I want to loop through the BO and determine for each user if they are an admin (actually I'd like to query if they are an admin, but that ain't happenin), how would I do this?
Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
This data is held within an encrypted field.  You cannot access it directly.  You will have to load the user into the SFSUsersBO for it to be properly decrypted.  You can then reference the us_IsAdminitrator property.
Greg McGuffey
Greg McGuffey
Strategic Support Team Member (3.4K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
OK. I was afraid you were going to say that BigGrin
Greg McGuffey
Greg McGuffey
Strategic Support Team Member (3.4K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
Got this working. I can now figure out who all my administrators are. BigGrin
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search