I have an integration that uses a web service. As part of this I need to determine if the user is part of an AD group.
I thought I could do this using the 'Windows Group Member' virtual table as this works perfectly querying it with a codeunit in the classic client. When using on the RTC or via a web service this virtual table is empty so this approach will not work.
I have found a piece of standard MS code in Codeunit 8705 but I can't get that to work either. Any suggestion on how to achieve this [-o<
Answers
http://stackoverflow.com/questions/2188954/see-if-user-is-part-of-active-directory-group-in-c-asp-net
Pargesoft
you might try out the virtual table "User SID", this contains all SIDs of the groups the user belogs to. And the SID of the user itself. But it only contains the SIDs for the user who has logged on. The table is documented on MSDN under "Special NAV Tables". Works beautifully here.
with best regards
Jens
The USER SID table work great until I tried to use a web service. The C# approach works great but is an overhead to install an additional component. (This installation is not R2). Finally cracked this one by using the extended strored procedures in SQL server with a ADO connection.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.