Permission sets of the current user

frankmortensen
Member Posts: 42
In a Dynamics NAV 2018 - is it possible to find/lookup the permission sets of the current user (user SID) logged in, using C/AL?
If it is possible - I am assuming that one or more virtual table(s) is to be filtered in order to search or find these permission set entries - but wich tables and how should it be filtered?
If it is possible - I am assuming that one or more virtual table(s) is to be filtered in order to search or find these permission set entries - but wich tables and how should it be filtered?
0
Answers
-
Do you mean you wish to what Roles and Permission has been assigned to that User ID?Thanks
Blog - rockwithnav.wordpress.com/
Twitter - https://twitter.com/RockwithNav
Facebook - https://facebook.com/rockwithnav/0 -
@RockWithNAV Sort of ...
I mean what roles and permission does the current user (session) have.
This can be roles/permissions assigned directly to the user ID (in Users and user groups). And it can be roles/permissions from AD/windows groups.0 -
@frankmortensen
Use these 2 tables
User
Access Control
You will get the USER information from the User table and then take User Security ID, filter Table Access control on User Security ID and then you will have all the Roles assigned to that user.Thanks
Blog - rockwithnav.wordpress.com/
Twitter - https://twitter.com/RockwithNav
Facebook - https://facebook.com/rockwithnav/0 -
Thanks.
But how can I see roles and permissions inherited from windows/AD groups? :-)0 -
BC will only display what BC have for the specific user, for AD you may either need to take dotnet variable and write some piece of code or else use powerscript.Thanks
Blog - rockwithnav.wordpress.com/
Twitter - https://twitter.com/RockwithNav
Facebook - https://facebook.com/rockwithnav/0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions