Given a particular user group id, how can we most quickly retrieve the list of users under that user group id?
Please provide sample code and/or example links.
Thanks for any help.
View Complete Post
I understand how to hide a field, but this hides it for everyone. My team want to hide it for the users and show it for our team. The field we want hidden from other users are Assigned to, Due Date, and Due Date, but we want our team to be able to edit these fields; not the other users. Is it any way to do this? Thanks for the help.
Mike
Hi all,
Does anybody knows how to enumerate users in a Sharepoint 2007 group ? I have a particular case where users cannot be displayed in the UI.
The closest I found is Enumusers but it lists users of a site collection or subsite.
Thanks,
Hello every body,
I need to know how I can find which groups of an active directory are managed by a specific user. The idea is to create a WinForm appication where the user enter a name and then, the code chek whicjh group of the AD is managed by the name entered.
Has someone any idea? I jusrt need specification about the Active Directory classes and methods...
Thanks ;-)
Dear All,
I need to get list of users reporting to a particular manager from the Active directory.
In the active directory there is manager property with contains the data in the following way.
CN=Gegore Lid,OU=IT,OU=Sales,OU=XXXXX,OU=XXXX,DC=YYYY,DC=intra
Please help me in building the filter condition.
I am using the following
pUserName="Gegore Lid";
strSearch = "(&(objectClass=user)(objectCategory=user)((Manager cn=" + pUserName + "))";
DirectorySearcher dSearcher = new DirectorySearcher(dEntry, strSearch); //Account properites to load string[] arrPropertiesToLoad = { "displayName", "department", "manager", "sAMAccountName", "EmployeeNumber", "Title" }; dSearcher.PropertiesToLoad.AddRange(arrPropertiesToLoad);
SearchResultCollection sResultColl = dSearcher.FindAll();
the above code is not returning any result.
Please help me in this.
Regards
Prakash
I am have requirement like displaying all the user information reporting to specific manager from Active Directory.
Please help me regarding this.
When i try to List the users from Active directory, i get this exception.
Error while processing.System.Runtime.InteropServices.COMException (0x80072020): An operations error occurred at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail) at System.DirectoryServices.DirectoryEntry.Bind() at System.DirectoryServices.DirectoryEntry.get_AdsObject() at System.DirectoryServices.DirectorySearcher.FindAll(Boolean findMoreThanOne) at System.DirectoryServices.DirectorySearcher.FindAll()
The code i used is :
deSearch.SearchRoot =de;
deSearch.Filter = "(&(objectClass=user) (cn=" + UserName +"))";
SearchResultCollection results = deSearch.FindAll();
But the DirectoyEntry method is getting validated if i use the overloaded method : DirectoryEntry(_path, domainAndUsername, password);
Please advice me.
I'm using a workflow to assign tasks to users.ÃÂ When I try to assign the task to a group (set in the workflow designer), the workflow gives me an error.ÃÂ When I change the assign to property to a single user, the workflow works perfectly.ÃÂ How do I get the workflow to assign the task to the group?ÃÂ Or if that's not possible, can I get it to assign it to more than one user?Kenn
I have a sharepoint list[Managers] with groupby sector column. like below
1)Sector1 a)Dep1 b)Dep2
2)Sector2 a)Dep3
3)Sector3 a)Dep4 b)Dep4 c)Dep4
Each Sector group by column data i want to display in label or panel control.
How to do that ? how to write the logic?
REgards mansoor
Hi,
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.
Regards.
Actually, I set access to some of the WebParts to desired group of SP users. (Web Part edition->Advance->last option on the bottom)
Is there any way to list this access? I'd like to have some kind of list with WebParts and users signed to its.
Hall of Fame Twitter Terms of Service Privacy Policy Contact Us Archives Tell A Friend