Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Database logged in user

Status
Not open for further replies.

Ray M

Technical User
Aug 5, 2019
6
US
I am trying to limit a Crystal Reports use to only certain users. I need to be able to acquire the current logged in SQL user so I can conditionally suppress a subreport so that userA and userB can see it but not userC.
 
If you are using the BI platform. I believe the variable CEUser is available (I have never used it myself), and thus you could conditionally suppress using that variable.
 
I tried the CEUser but it diddn't work. I may have figured it out though. I added a SQL Expression with "{fn USER()}" (without the quotes) and it seems to have worked when I used it in the Section Expert's Conditional Suppress.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top