View Complete Post
How to check user is related to a particular group , if he is assigned to multiple groups
I've got a nested query caml which basically should check 3 things:
The first to bullet points work like a charm, but I can't figure out how to get the last one to work. Here is what I thought should work:
query += "<Where>";
query += "<Eq><Membership Type=\"CurrentUserGroups\">";
query += "<Value Type=\"String\">Name of my specific group</Value>";
query += "</Membership></Eq>";
query += "</Where>";
Somehow it doesn't seem to be the correct approach, is there somebody who can help me out on this? Thanks
WindowsPrincipal wp = new WindowsPrincipal(WindowsIdentity.GetCurrent());
bool result = wp.IsInRole(@"corp\BO_ops");
Defined a user group and a site column of type people/group directing to this group.
Also defined a content type and added the site column to this content type.
When I create a new word document of this content type, word opens displaying my site column ok. But when I enter it, I see that all active directory (AD) entries are displayed. I want it to display only those users I added to the user group I created. Moreover,
users can select any user from AD, which makes defining a user group and a site column meaningless.
This problem is only in creating new documents with Word. If I edit properties of an already existing document in my site, everything is ok: I can select only the users in the group.
I need to create individual account for a big group of people (around 200) from an Excel spreadsheet. What is the best practice? It will take too much time to create account using web form. I think there must be a way to do it. Please advice. I tried to use Stored procedures created by ASP.NET. NOT SURE whether it is a good idea.
Hey! Telerik is coming to Canada. Evan Hutnick, Telerik evangelist, will speak at 6 Canadian user groups.
Check Evan's blog for more info