Windows Group Member / Active Directory Groups

AntHillMob
Member Posts: 79
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<
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<
0
Answers
-
I haven't required this in Navision but in C# there are lots of post explaining how to obtain the AD group a user belongs to as:
http://stackoverflow.com/questions/2188954/see-if-user-is-part-of-active-directory-group-in-c-asp-netUfuk Asci
Pargesoft0 -
Hi AntHillMob,
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
Jens0 -
Thanks for the replys.
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.0 -
If the installation is SP1 and not R2, it is just about implementing platform hotfixes to have the R2 instead SP1 with all the possibility to use DotNet...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