.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

add multiple users to sproleassingment

Posted By:      Posted Date: September 20, 2010    Points: 0   Category :SharePoint

Hi there,

I try to set reading permissions on a list item to sproleassignment for multiple users. But it onyl works for one, as I can see from the permissions which are set afterwards... any ideas?

 Here is my code

 //Auslesen der aktuellen Userdaten
            SPListItem newestItem = workflowProperties.Item;
            //users = Liste der Personen, die Leserechte bekommen
            String[] users = findeVertreter();

            SPList list = currentWeb.Lists["Standardseiten Betreuer"];

            SPListItemCollection itemColl = list.Items;
            SPListItem listItem = itemColl[itemColl.Count - 1];

            //Vererbung aussetzen


View Complete Post

More Related Resource Links

how to write a stored proc to prevent multiple users in uploading the reports at a time? plsss help



I wanted to know how to prevent more than one user from uploading the report at a time .I am new to .net ,plss help with the code that would be great.Details are below:

This is a Windos based app written in c# . When User A  clicks Upload option on  one server  from the menu  to upload the files  and at the same time when User B clicks Upload option on different server , User B should be alerted a message saying "User A's uploading is in progress,pls wait" . How to achieve this, plsss help with the code.. I am thinking this logic should be kept in a stored proc, How do I write that proc? plss help


Thanks in advance!

help for autheniticating users in multiple subdomains

Hi All,I have a main website say www.main.com which is developed in asp.net. We have used forms authetications here.Now the thing is I have a no of subdomains on the same server say domain1.main.com, domain2.main.com, domain3.main.com etc.I had put some functionality there. What i want is when i redirect my users to the subdomains user has to log in again. what are the method where i can preserve the users state in my subdomains also.Thanks

Cannot create email alerts for multiple users

Hello, I created an email alert for a document in a library. In the "Send Alerts To" box, I added multiple user names separated by semicolons and saved the alert. However, when I open the alert again, only my user name appears and the additional user names are gone. Why is this happening and how do I fix this problem?  Thank you in advance.

multiple instances of report manager VS multiple users

Hello, I want multiple users to access same report or different reports through report manager for a report server. Will the scenario of opening multiple windows of report manager on same machine and execute reports from all windows simultaneously mean same as multiple users accessing the reports at the same time? If not, then how should I generate the scenario of multiple users? Regards.

Can multiple users connect simulateously to an offline cube created by SSAS 2008?


We have created an offline cube on a network drive from SSAS 2008 and users are able to successfully access this serially using the Excel 2003 cube add-in or Excel 2007, in concert with version 10 driver, but when a user is already connected, the second attempt to connect will get the message :

Connection to <filename> server, <dbname> database, <cubename> cube failed.  OLAP Server error: The following system error occurred:  The process cannot access the file because it is being used by another process. ., File system error: An error occurred while opening the '<filename>' local cube file.

This is regardless of whether users connect specifying read-only and we have found it impossible to connect to a cube if the file has the read-only attribute set.

Is there any way to solve this without users taking copies onto their workstations?



Multiple users & arrays?


On my website, the user can enter in information in multiple textboxes and click an "Add" button, which then adds the information to an array as 1 project. When they click a "Finish" button, it takes them to a Review page and reviews all of the seperate projects they have submitted.

When we tested this website out, at one point I got to the review page and saw information that I never submitted. I'm assuming it was submitted by the other person who was testing the page at the same time I was testing the page. 

My question is, if multiple users are on my page at the same time submitting information, is it possible for the information to be added to someone else's array ? Can somebody's information overlap another person's information?

Here's my array:

Option Strict On
Imports System.IO
Imports Microsoft.VisualBasic

Public Class clsBarn
    Structure Barn
        Dim BarnNo As String
        Dim FlockNo As String
        Dim Birds As Integer
        Dim WkMortF As Integer
        Dim WkMortM As Integer
        Dim BirdsAdded As Integer
        Dim AvgHighTemp As Integer
        Dim AvgLowTemp As Integer
        Dim BodyWeight As Decimal
        Dim BirdsUniAmt As Decimal
        Dim GalWtr As Integer
        Dim LightHours As D

How to Bulk load multiple users into aspnetdb


Hi there,

I'm using VWD 2010 asp.net 4.0 and SQL Server 2008 Express

I created a website that uses security with aspnetdb configuration

now I have hundred users that need to access this website

And I don't want manually insert them one by one

Is there any way (T SQL Stored Proc or ASP.NET VB code) to automated this bulk insert?


Oded Dror 

Adding multiple users to a document library column by web service


I'm attempting to create some VB code to call a SharePoint Web Service to add a document and associated metadata to a document library. I can successfully add metadata to a text column but I'm having some problems getting multiple entries into a column which is specified to take multiple users (and does so when they are added manually) although I can get a single user in using the following snippet.

Dim info2 As MySharePoint.FieldInformation = New MySharePoint.FieldInformation()
info2.DisplayName = "Authors"
info2.InternalName = "Authors"
info2.Type = MySharePoint.FieldType.User
info2.Value = "1"

I'm hoping that someone will be able to advise me of the approach or syntax necessary to add multiple users to this Authors column e.g. Users 1 and 74. I note that

info2.Value = "1,74" or info2.Value = "1;74"

don't appear to work.

How do I allow multiple users to desing the same InfoPath 2010 form? Preferably using SP 2010 to ho


We have several users who need permissions to edit a template and publish that template to the forms library.

The primary designer creates the template and uploads to a doc library.  Admin staff from all divisions need to be able to flesh out the template and publish for all users.

Session variables are accessible to multiple users?


I have an asp.net website in which users can submit reports. Another tester and I tested this page at the same time and when I went to review the information I submitted, it displayed information that I didn't submit. It displayed the info submitted from the other user.

I use session variables for these values. I don't understand how this happened?

What can I do so each user can individually submit their information without overlapping some one else's information? The plan is for multiple users to be able to use this page to submit their weekly layer reports.

The first example of code is how I add the session variables from the textboxes.

If Session("BarnNo") = Nothing Then
                                'add session variables
                                    Session.Add("FName", FNameTextbox.Text)
                                    Session.Add("LName", LNameTextbox.Text)
                                    Session.Add("WkEnd", Calendar1.SelectedDate.ToShortDateString())
                                    Session.Add("DisplayDate", Calendar1.SelectedDate.ToLongDateString)

                                    Session.Add("BarnNo", BarnNumberTextbox.Text)
                                    Session.Add("FlockNo", FlockNoTextbox.Tex

Custom Form Field in Collect Data Action doesnot capture multiple users.


I have a situation where the department head dynamically assigns the reviewers depending on the document that is uploaded. To capture the reviewers I added a Collect Data Action and a "Reviewers" form field, with type "Person/Group" and checked the following properties

1. Allow selection od People and Groups, 2. Choose from all users and more importantly 3. Allow multiple users

Although I am able to enter multiple users in the form, I am able to retrieve only the first user I entered and the rest just.. disappear!

SharePoint Designer workflow task - problem with multiple users selector in InfoPath form




I have got an issue with InfoPath form generated for my SharePoint Designer workflow task. There is a multiple users selector that requests users from a task assignee. The problem is that only the first user entered got saved.


I am using SharePoint 2010 Standard Server (release). Steps to reproduce are the following:

Multiple users system design question.



I am designing a web application that will allow users to accept jobs.  Once accepted, the job is locked until completed or released my an admin. 

I have researched this pretty heavily, everything seems to suggest this.  While I think this might be part of the solution, I am still wondering how to reflect the change on the screen. 

The solution we have come up with is to do polling with ajax, but the case we come back to is even if we check ever second...there can be ( and this is very likely ) that two or more users will click the same job at the same time.

Maybe this is as easy as this:

if( job.isLocked() ) {

    // Notify the user, and refresh grid.
    WarningLabel.Text = "Job is taken!!!!";


Our users use IE7 if this matters.  If anybody can give me a confirmation if this is the 'right' way to go about this, or propose other options I would greatly appreicate it.

Need to turn on/enable multiple files upload for some users



I have some users not being able to upload multiple files to a SharePoint folder.

Details: In the upload sub-menu I have

  1. Upload Document
  2. Upload Multiple Documents

However, the other users only have option 1 "Upload Document" but they cannot even see "Upload Multiple Documents"

What should I do? I am open to suggestions. If you need additional questions please let me know.


Sharepoint issues with multiple users on 1 pc


We have many users who share pcs. If they only need access to Sharepoint they select the 'sign in as a different user' option within Sharepoint , checkout documents as normal but when they save and clsoe the option to checkin does not come up automatically. When they try to check the document in manually they get the message ' This document was checked out to your local drafts folder but the local copy could not be found or is on a different computer. Upload the local changes or discard your checkout to continue editing.'

This happens on most pcs (mostly using Office 2007 or 2010) and I've seen error message in other areas of these forums. Have tried changing the destination for the drafts folder and have checked that all users have read and write permissions but to no avail. I assume something's being controlled by the profile of the user logged on to the pc but don't know where to go next. Help please!!

Authenticating users across multiple farm applications - Reverse Proxy?



Here's the scenario - a customer has multiple SharePoint applications, all using Windows authentication, co-existing in a single farm. Domain accounts were created in the self-contained SharePoint domain for thousands of external users across lots of different outside companies.

URL names for the applications are in the format:


i.e. they are all in the same internet facing domain.

These external users access different applications in the farm (there are links in each app to the apps), and need to logon multiple times - once for each app. The customer would like to implement a solution that allows them to keep the apps separate, but allow the users to login once. Since the applications were developed by different companies, and to keep things simple, a solution that is transparent the various applications would be preferable.

Additionally, when these external users change their passwords or access documents via Word, Excel, there are often access issues and lots of additional password prompts, causing an administrative nightmare. User accounts number in the tens of thousands, so support requests pile up fast.

I've seen people discussing similar (but not identical scenarios) where the solution involved a "secure reverse proxy" (Such as Micros

Send Email to multiple users


Hi everyone

I have a problem with a workflow.

I use MOSS 2007 RTM
I have a custom sharepoint list with several columns where one (lets call it MailRecipients) are of the type 'Person or Group' with the property 'Allow multiple selections' set to 'yes' - this works fine, and I can create items, select multiple users from AD and so on.

Then i create a workflow using Sharepoint Designer 2007 and uses the action 'Send mail'.
I then want to send a mail to all the people selected in the column 'MailRecipients', but this column isn't present when I try to selected the column for the 'To' field in my workflow.
When I disable the proptery 'Allow multiple selections', there are no problem using the column in the To field in the Workflow

How will I be able to use the People or Group column (with 'Allow multiple selections' enabled) as a 'To' value in a workflow 'Send Email' action.?
I've tried making my own Custom Workflow action but have serious problems with this. Keep trying though!

Hope anyone have more experience with this part of MOSS 2007


Søren Bjerre, DK


ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend