Get user's Assigned Role through Query in D365fo x++

Get the user's Assigned Role through Query in D365fo x++ 

Run Script in SSMS as AXDB: 

select SecurityRole.NAME,NETWORKALIAS,*

from userinfo

join SecurityUserRole

on SecurityUserRole.USER_ = userinfo.ID

join SecurityRole

on SecurityRole.RecId = SecurityUserRole.SecurityRole

 where id like '%junaid%'



Comments

Popular posts from this blog

D365FO – AX – X++ –Refresh, Reread, Research, and ExecuteQuery

Create Inventory Journal through Code in D365FO X++

SalesLine Reservation in D365fo x++