Skip to main content

I'm trying to build a SmartObject method that gets the current user's groups in AD, and compares them to a list of groups in SharePoint to see if the user's group exists in the SharePoint list (kind of a role-based security thing using a SharePoint list to track groups for each role).


The SmartObject method I've created successfully uses GetGroupsByUser in Active Directory Service2 and a Get List on my SP list via SharePoint Service V2, however when I try to link the Group Name that comes back from AD with the group name returned by SharePoint, I get the following error:


'Incorrect syntax near the keyword 'as'.


Any ideas on how to get around this?  Or perhaps another approach to checking if a user's role exists in a SP list?

Be the first to reply!

Reply