Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Wednesday, April 24, 2024 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 Data & Imports Forums - T-SQL & Queries
Forum to discuss general T-SQL questions and help with queries related to SalesLogix data. View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to T-SQL & Queries | New ThreadView:  Search:  
 Author  Thread: List of accounts accessible by a user
Alex50
Posts: 1
 
List of accounts accessible by a userYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 08 Feb 11 2:48 PM
fiogf49gjkf0d

Anyone know how to link up the account and user tables (and all the intermediary tables) to get a list of records accessible by a single user? 


select  sysdba.ACCOUNT.ACCOUNT
FROM sysdba.ACCOUNT
INNER JOIN sysdba.SECRIGHTS ON (sysdba.SECRIGHTS.ACCESSID = 'XXXX' AND sysdba.ACCOUNT.SECCODEID = sysdba.SECRIGHTS.SECCODEID)



I would appreciate if anyone can confirm that the above is correct.    XXXX would be the USERID from the USERINFO table.


Any help would be appreciated.  Thanks.

[Reply][Quote]
Raul A. Chavez
Posts: 1300
Top 10 forum poster: 1300 posts
 
Re: List of accounts accessible by a userYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 08 Feb 11 5:54 PM
fiogf49gjkf0d

2 ways:


  There is a view already provided by SLX that has security built into it:


  SELECT * FROM ACCOUNT_ WHERE ACCESSID_ = 'TheUserID'


  Or:


  SELECT * FROM ACCOUNT A


  INNER JOIN SECRIGHTS R ON A.SECCODEID = R.SECCODEID


  WHERE R.ACCESSID = 'TheUserID'

[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2024 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 4/24/2024 10:56:10 AM