Quantcast
Channel: Microsoft Dynamics 365 Community
Viewing all articles
Browse latest Browse all 60373

Security Views For Use In SmartList Designer: User Access

$
0
0

Microsoft Dynamics GPThe first of the security SQL views I am posting in this series shows all of the users and the companies to which they have been granted access.

CREATE VIEW [dbo].[uv_PI_UserAccessAndGranted] ASSELECT
	['User Master'].USERID AS'User ID',['User Master'].USERNAME AS'Username',['User Master'].USRCLASS AS'User Class',ISNULL(['Class Master'].DSCRIPTN,'')AS'User Class Description',ISNULL(['Company Master'].INTERID,'')AS'Intercompany ID',ISNULL(['Company Master'].CMPNYNAM,'')AS'Company Name'FROM
	SY01400 AS ['User Master']LEFT JOIN
	SY40400 AS ['Class Master']ON ['Class Master'].USRCLASS = ['User Master'].USRCLASSLEFT JOIN
	SY60100 AS ['User-Company Access']ON ['User-Company Access'].USERID = ['User Master'].USERIDLEFT JOIN
	SY01500 AS ['Company Master']ON ['Company Master'].CMPANYID = ['User-Company Access'].CMPANYIDGO

GRANT SELECT ON uv_PI_UserAccessAndGranted TO DYNGRPGO

Click to show/hide the Security Views For Use In SmartList Designer Series Index

Security Views For Use In SmartList Designer
User Access

Viewing all articles
Browse latest Browse all 60373

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>