Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Doc Library / List Get User Info help

Status
Not open for further replies.

jnava121

Programmer
Oct 6, 2006
6
US
Hi I'm trying to list in a table the userinfo / permissions of users allowed access to a specific document library.


Now I already know how to get the site info of all users.

kind of like this:

SPSite mySite = new SPSite
SPWeb myWeb = mySite.OpenWeb
SPUserCollection users = myWeb.AllUsers;

Foreach(SpUser in users)

User.Name etc....


This code is pretty straightforward but could not find anything specific in the SDK to help get the specific permissions for the Doc Library or a List.

Any help would be appreciated....



 
This is SharePoint 2003 not 2007 ... so it's the old stuff.
 
nevermind i figured it out....


use the code above and get the SPpermission perm from the List and

If (perm.Member.ID == user.ID)

{

display User.Name etc...

}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top