moss

get users by group in sharepoint

你。 提交于 2019-12-03 07:12:27
can anyone show me how to get the users within a certain group using sharepoint? so i have a list that contains users and or groups. i want to retrieve all users in that list. is there a way to differentiate between whether the list item is a group or user. if its a group, i need to get all the users within that group. im using c#, and im trying to do thins by making it a console application. im new to sharepoint and im really jumping into the deep end of the pool here, any help would be highly appreciated. cheers.. The first thing you need to know is that when you have a list with a User /

SharePoint error: “Cannot import Web Part”

谁说我不能喝 提交于 2019-12-03 06:05:11
I have a web part that I've developed, and if I manually install the web part it is fine. However when I have packaged the web part following the instructions on this web site as a guide: http://www.theartofsharepoint.com/2007/05/how-to-build-solution-pack-wsp.html I get this error in the log files: 09/23/2008 14:13:03.67 w3wp.exe (0x1B5C) 0x1534 Windows SharePoint Services Web Parts 8l4d Monitorable Error importing WebPart. Cannot import Project Filter. 09/23/2008 14:13:03.67 w3wp.exe (0x1B5C) 0x1534 Windows SharePoint Services Web Parts 89ku High Failed to add webpart http%253A%252F

Auto number column in SharePoint list

爷,独闯天下 提交于 2019-12-03 05:36:23
问题 In a SharePoint list I want an auto number column that as I add to the list gets incremented. How best can I go about this? 回答1: Sharepoint Lists automatically have an column with "ID" which auto increments. You simply need to select this column from the "modify view" screen to view it. 回答2: You can't add a new unique auto-generated ID to a SharePoint list, but there already is one there! If you edit the "All Items" view you will see a list of columns that do not have the display option

Get username from SharePoint User field in List

谁都会走 提交于 2019-12-03 03:59:33
I have a custom sharepoint workflow that I'm developing in Visual Studio. The workflow is running against a document library which has a custom content type connected to it. The content type includes a user lookup field ("owner"). I'm trying to have my workflow assign a task to the "owner" lookup field. However, I've only been able to get the display name for the user, not the account username. Can anyone help? Kusek Refer to this Article on how to get the User Details from the Field. public static SPUser GetSPUser(SPListItem item, string key) { SPFieldUser field = item.Fields[key] as

Accessing all SiteCollections on a SharePoint Server with WebService

≡放荡痞女 提交于 2019-12-02 05:03:11
I have a bit of challenge. Knowing only the basic URL for the sharepoint installation, can I get a list of the site collections that have been created using only the basic web services that are installed? Using the Webs web service or the SiteData web service I've been able to get information on the default site collection that's at the base URL ( http://MySharePointServer/ ). I can also get a full list of sites below the site collection and a description of the site collection itself but I can't seem to get any info on the other site collections under the same web application. Any help would

Permission for a SharePoint document using MOSS web services

北城余情 提交于 2019-12-02 02:16:04
问题 We have a need to retrieve user groups which have read permissions for a document. We know the URL of the document. The following Permissions service provides the groups which has access, but it expects either a site URL or a list URL. We have a document URL. Is there any other service which provides permissions of a document. Or alternatively, is there a way to find out the list provided we know the document URL. Permissions Service - http://<server-url>/_vti_bin/permissions.asmx Thanks! 回答1

How do I determine the disk size of a SharePoint list?

别说谁变了你拦得住时间么 提交于 2019-12-01 19:28:17
I have a list with roughly 5500 items, and I would like to find out the size on disk. Is there some way I can do this? I don't mind running a query in the database, if necessary. ICodeForCoffee If you enable a site quota, an option under site settings appears called Storage Space Allocation . When you go to set a quota in the Central Administration, the page will tell you what the current storage used is so you can have an idea before there. Once you get to the Storage Space Allocation report, you can see the total size of a library. Unfortunately, you can't get this report without turning on

SharePoint - An unexpected error has occurred

被刻印的时光 ゝ 提交于 2019-12-01 09:15:41
In SharePoint I am getting the following when I go to my new web part page: Error An unexpected error has occurred. Web Parts Maintenance Page: If you have permission, you can use this page to temporarily close Web Parts or remove personal settings. For more information, contact your site administrator. Troubleshoot issues with Windows SharePoint Services. I have tried the following to get a more useful error message: In web.config I have: <SafeMode MaxControls="200" CallStack="true" DirectFileDependencies="10" TotalFileDependencies="50" AllowPageLevelTrace="true"> and <customErrors mode=“Off“

SharePoint - An unexpected error has occurred

こ雲淡風輕ζ 提交于 2019-12-01 06:22:18
问题 In SharePoint I am getting the following when I go to my new web part page: Error An unexpected error has occurred. Web Parts Maintenance Page: If you have permission, you can use this page to temporarily close Web Parts or remove personal settings. For more information, contact your site administrator. Troubleshoot issues with Windows SharePoint Services. I have tried the following to get a more useful error message: In web.config I have: <SafeMode MaxControls="200" CallStack="true"

SharePoint: How to add an attachment to a list item programatically?

情到浓时终转凉″ 提交于 2019-12-01 03:17:43
问题 I have the following code: SPList list = web.Lists[this.ListName]; SPListItem item = list.Items.Add(); now what I want to do is: FileInfo[] attachments = attachmentDirectory.GetFiles(); foreach (FileInfo attachment in attachments) { // Add the attachment from file system to the list item... } How do I convert a normal file to a byte array? 回答1: foreach (FileInfo attachment in attachments) { FileStream fs = new FileStream(attachment.FullName , FileMode.Open,FileAccess.Read); // Create a byte