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?
0
Answers
Blog - rockwithnav.wordpress.com/
Twitter - https://twitter.com/RockwithNav
Facebook - https://facebook.com/rockwithnav/
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.
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.
Blog - rockwithnav.wordpress.com/
Twitter - https://twitter.com/RockwithNav
Facebook - https://facebook.com/rockwithnav/
But how can I see roles and permissions inherited from windows/AD groups? :-)
Blog - rockwithnav.wordpress.com/
Twitter - https://twitter.com/RockwithNav
Facebook - https://facebook.com/rockwithnav/