Restrict group to edit users in people picke in infopath

hi
I have a document with people picker I want to restrict group A to pick or edit the users in existing document and groupB able to edit the users in people picker how is it possible to make it in InfoPath.

Hello,
This would be easy to do with groups that can access specific sections of the form and then use SharePoint or AD groups to govern access, but unfortunately it does not work in InfoPath. 
One alternative possibility is to set up a list in SharePoint and enter the names of the smaller group of people into that list (Person field).
The InfoPath form has a data connection to that list. The form has one section with a people picker and another section with a calculated field that shows the value of the people picker. 
When opening the InfoPath form, check if the current user exists in the list and hide the section they should not see.
cheers, teylyn

Similar Messages

  • Load User to People picker in infopath form

    Hi,
    I am having an issue with populating user name to people picker in infopath form.
    Based on some rules when an ID matches with the ID in list i am populating some fields to the form to make the user work easy. But i have a single line text field with all the user names when i populate the user it shows error that it cannot be found. I
    know directly copying the user name to people picker doesn't work but tried querying before copying and tried couple of things. Nothin works is there any way to achieve this.
    Thanks in advance.

    Hi Cameron,
    My data feed in to the form comes from a list. When a certain criteria is met the form should load the values from the list and one such field is user name from list to people picker in infopath form. But the user name column type in list a single line text
    box not a people picker. So while copying the data how do i feed the username to people picker on to the form.

  • Add Users from people picker field to sharepoint group

    Hi,
    I have created infopath form and added people picker control and then created data connection to add users to sharepoint group.
    Used UserGroup webservice and "AddUserToGroup" operation. If I select single user in people picker and click submit button, web service data connection adding user to sharepoint group without any issue but it's not working for multiple users.If
    I select multiple users in people picker, web service adding only first user to sharepoint groups. In our company we do not prefer custom coding.
    Can anybody help me out to resolve this issue?
    Any help or suggestions would be appreciated.
    Thank you,
    AA.

    You ll be able to achieve this by placing people picker in repeating table control in the form, below url may help you. 
    http://infopath.wordpress.com/2013/04/02/people-picker-email-addresses-repeating-tables-infopath-2010/
    Sivabalan

  • How to set group name as default value in People Picker in Infopath 2010

    How to set group name (shareoint Groupname)  as default value in People Picker in Infopath 2010

    Under the Developer tab in Infopath you can manage Loading Events, unfortunetly i dont have Visual Studio on this PC so i cant laborate, but i believe it's rather simple to figure out.
    Edit: Found a easier way, through Data > Default Values.

  • Cannot remove deleted user from people picker - SharePoint Foundation 2010

    So I think I've read all the people picker articles here and I can't find a solution so I thought I'd start a new thread. Here is the issue:
    A user was deleted from Active Directory and removed from SharePoint Foundation 2010. The user was still showing in the People Picker within the site collection, so we have performed a few things to try and get rid of this user.
    User is deleted from AD
    User is deleted from SharePoint Site Collection
    Have tried stsadm -o deleteuser
    Have removed all mention of this user from UserInfo table
    User does NOT show in
    https://<SiteCollectionURL/_layouts/people.aspx?MembershipGroupId=0
    Cannot find any mention of this user anywhere.
    Ran a full crawl as we read on a forum somewhere that it might help.
    If I try and add the user back to SharePoint I get "The user does not exist or is not unique"
    If I try "stsadm -o deleteuser -userlogin DOMAIN\USER -url https://<sitecollectionurl>" I get "The user does not exist or is not unique"
    I am not sure what else I can try now. Can anyone help?
    Thanks,
    Vinny
    Vinny

    No other domain trusts that this user could be in.
    Just so everyone can stop with the warnings, we do NOT regularly delete users from the UserInfo table and fully are aware of the problems behind it, which is why it is so rarely done. But at times, you have to do what you have to do to help a customer, you
    know? This one user is the only one that was removed from the UserInfo table, but there are a few other users that are also deleted (from SharePoint, not manually from UserInfo) that are still showing as well. This one user included.
    There MUST be another place that the people picker gets it's information from. ALL of the user's old information still shows in the people picker (username, email address, display name), and yet none of that information exists anywhere other than in the
    People Picker. Mailbox is gone from Exchange, User deleted from SharePoint, User deleted from Active Directory. Is there no cache someone could point me towards that People Picker might store information in.
    Vinny

  • Disable People Picker In Infopath Form on Chrome

    Hi,
    we have a sharepoint custom list ,where we customized it with infopath designer
    In this form ,we have a button ,which makes a call to the list,and pulls out the details about user Manager if available and some additional details
    Always the Manager People picker value is a read only field.and we have a Nintex workflow running post submitting the form.
    The Button is simple "GetManagerDetails",which makes a call to the lists web service and gets the data.
    WE have disabled this  manager people picker control in Infopath by setting a formatting rule and 1=1 ,which runs everytime.
    This works perfectly fine in IE,However in chrome its not working as expected,the manager control is getting enabled.
    So we have written a javascrpt to disable it ,which is working fine on load of the form using jquery.
    When the user clicks on the button ,its sending a POST request and after that these control is getting enabled again.
    If we run the function to disable ,from the console window.the control is getting disabled.But to invoke this function post the click event ,
    I tried several options as below
    Window.load() which is working only on form load
    using PageRequestManager,and calling add_endrequest() is also not working
    setTimeout () in Javascript is not working either.
    Is there any way we can execute after that postback,I tried to attach callbacks in jquery which is not working either.
    Please help if anybody has any other ideas.

    Hi Sophie,
    According to your description, my understanding is that you want to send InfoPath form to  the individual  selected in the people picker via email. 
    I am afraid you cannot. Due to the limitation of connecting InfoPath forms  to a SharePoint Online web service, you cannot get the individual's email address and then cannot send email to him.
    http://support.microsoft.com/kb/2674193
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • Set default value for people picker only when user checks a checkbox (Sharepoint 2010)

    The javescript in below link works for me.
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/2b130f64-3db2-484a-9a53-ccbe18d2c5de/set-default-value-for-people-picker-in-list-template-current-user?forum=sharepointgenerallegacy
    However, I'd like to set default user for people picker only when user checks a checkbox. 
    I am new to  development. Could you please help me on this requirement ?
    Thank you very much. 

    Hello,
    Use this link to to validate checkbox value, if true then set the person or group value (i.e. as posted in your link).
    http://geekswithblogs.net/haniamr/archive/2011/03/10/validate-that-a-checkbox-is-checked-using-javascript.aspx
    Hope it could help
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • Infopath 2010: How To Seperate Multiple Users Selected In People Picker With A Semicolon

    I've seen several posts on this forum about getting multiple user values in a people picker in Infopath to show up in a Sharepoint List.  Obviously, they merge which isn't all that useful if you want to use that data for a workflow. I followed
    Clayton Cobb's suggestion, and took a look at this blog which uses a
    no code solution, which is what i need. Everything for this blog works for me, but I do not need to use the UserProfile web service.
    I'm coming up just short though. I can successful select multiple users in my people picker, and as I do that, the text box populates itself separated by semicolons, but the same AccountId is repeated (of the 1st person selected in the people picker) instead
    of the unique value of each user.
    Here is my current result, with data fields shown
    Here is the result I would like to see. This way the text box gets upload into Sharepoint so I can use it in other places.
    Can someone please help me?  I'm very close.  Here is my function on the text box:
    eval(eval(Person, 'concat(/my:myFields/my:PersonTraveling/pc:Person/pc:AccountId, "; ")'), "..")
    XPath (advanced):
    xdMath:Eval(xdMath:Eval(/my:myFields/my:PersonTraveling/pc:Person, 'concat(/my:myFields/my:PersonTraveling/pc:Person/pc:AccountId, "; ")'), "..")

    Hi methitical,
    Please change your XPath (advanced) to
    xdMath:Eval(xdMath:Eval(/my:myFields/my:PersonTraveling/pc:Person, 'concat(pc:AccountId, "; ")'), "..")
    to make it work.
    Thanks & Regards,
    Emir
    Emir Liu
    TechNet Community Support

  • I have a problem how can I solve it I want give permissions to groupA to edit the people picker and I want to restrict groupB to edit the people picker what is the solution boss.. in InfoPath form is it possible..

     i have  a problem how can I solve it I want give permissions to groupA to edit the people picker and I want to restrict groupB to edit the people picker what is the solution boss.. in InfoPath form is it possible..

    Hi,
    To hide/disable controls based on user group in an InfoPath form, a solution is that we can call User Profile Service to check the group of current user, then hide/disable
    specific controls by setting some rules in form.
    Here is a demo with steps in details would be helpful to you:
    http://blog.symprogress.com/2011/05/infopath-list-form-hidedisable-fields-based-on-sharepoint-group-membership/
    More information about checking if a user is a member in a SharePoint group within web InfoPath 2010 forms:
    http://www.hishamqaddomi.ca/spg/index.php/sharepoint-2010/infopath-2010/65-checking-if-a-user-is-a-member-in-a-sharepoint-group-within-web-infopath-2010-forms
    Thanks 
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Restricting People Picker of "Person or Group" column to Site Groups only

    Hi,
    I am working on SharePoint Online 2013 and I have created a column - DocOwner with "Person or Group" type in document library. In the site collection there are 4 groups lets say - A,B,C,D. When user creates a new item (document set), in newform.aspx,
    I want to restrict the people picker of "Docowner" column to only Site groups, as currently it is showing all users who are there in SharePoint online.
    I read this article - http://office.microsoft.com/en-in/sharepoint-server-help/site-column-types-and-options-HA010302196.aspx#_Toc277149829.........where they are saying that we can limit the people picker to site users only.
    How this can be achieved using OOTB in SharePoint 2013 Online ? 
    Vipul Jain

    You can create a workflow to execute CSOM which will verify group membership details and update it to choice column 
    http://stackoverflow.com/questions/23432665/sharepoint-online-csom-associated-site-groups-associatedmembergroup-associatedow
    http://sundarnarasiman.net/?p=497
    namespace GetUsersInGroupCSOM
    class Program
    static void Main(string[] args)
    //Replace it with the url of your tenant or your site-collection
    string SiteUrl = "https://yoursite.sharepoint.com";
    System.Uri oUri = new System.Uri(SiteUrl);
    using (ClientContext oClientContext = new ClientContext(SiteUrl))
    //Replace it with your user id for SharePoint Online
    string UserName = "[email protected]";
    //Replace it with your password
    string Password = "yourpassword";
    //Create a SecureString object from password string, needed for SharePointOnlineCredentials class
    SecureString SecurePassword = GetSecureString(Password);
    oClientContext.Credentials = new SharePointOnlineCredentials(UserName, SecurePassword);
    //Load the site-collection groups using CSOM
    oClientContext.Load(oClientContext.Web.SiteGroups);
    oClientContext.ExecuteQuery();
    GroupCollection oSiteCollectionGroups= oClientContext.Web.SiteGroups;
    Console.WriteLine("List of groups in the site collection");
    Console.WriteLine("-------------------------------------");
    foreach (Group oGroup in oSiteCollectionGroups)
    Console.WriteLine(oGroup.Title);
    Console.WriteLine("\n");
    //Load the users collection in the Group 1
    oClientContext.Load(oSiteCollectionGroups[1].Users);
    oClientContext.ExecuteQuery();
    Console.WriteLine("List of users in the first group of site-collection");
    Console.WriteLine("-------------------------------------");
    foreach(User oUser in oSiteCollectionGroups[1].Users)
    Console.WriteLine(oUser.Title);
    Console.WriteLine("\n");
    Console.ReadLine();
    private static SecureString GetSecureString(String Password)
    SecureString oSecurePassword = new SecureString();
    foreach (Char c in Password.ToCharArray())
    oSecurePassword.AppendChar(c);
    return oSecurePassword;
    http://the-north.com/sharepoint/post/Update-Choice-Field-using-CSOM-%28Client-side-Object-Model%29
    using (ClientContext
    ctx = new ClientContext("http://MyServer/MySite"))
    Field genericField = ctx.Web.Lists.GetById(listID).Fields.GetById(fieldGuid);
    FieldChoice fldChoice = ctx.CastTo<FieldChoice>(genericField);
                    ctx.Load(genericField);
                    fldChoice.Choices = “MyChoice1;MyChoice2;MyChoice3”.Split(";".ToCharArray());
                    fldChoice.Update();
                    ctx.ExecuteQuery();               
    If this helped you resolve your issue, please mark it Answered

  • How to save users added to list using people picker to sharepoint Group

    Hi
                I have created List with some people picker columns and now when I save a list,the data is saved to list as well as the users in particular column will be added to particular sharepoint
    group. Is there any sharepoint out of box solution for this or I need to do it programmatically. Kindly provide me any procedures or solutions as you know.
      1) how to bind the particular sharepoint group to the particular column
      2) How to add users to the particular sharepoint group
    Thanks
    Razvi444

    Hi Razvi444,
    There is no out of the box way to achieve this.You need to write a custom event receiver ,inside event receiver
    event,  you
    can check column (people picker value) and add it to desired group if that user not exist already.
    Thanks

  • Restricting  Access for SQ01 User Group

    Hi ,
    Please let me how to Restrict  Access for a   User Group  to only some of  the specific users?
    Thank you
    Edited by: Vibhor Arora on Apr 12, 2010 7:29 AM

    Hi,
    Can you please clarify what exactly you want to know, your request can be interpreted in a few different ways.
    If you are concerned that people have access to all user groups, then you need to remove access to S_QUERY activity 02 and I think activity 23.  They will lose access to all user groups that they are not assigned to via SQ03.

  • SharePoint 2013 July 2014 CU - People Picker fields empty in Edit forms

    After applying the July 2014 CU for SharePoint server, I discovered that Person or Group (People Picker) fields are not populated with server values in list item Edit forms.  However, the field values can be viewed in list views
    and in Display forms.  I examined the client side code and determined that field data is not being returned from the server for Edit forms. 
    In a test environment, I uninstalled SharePoint 2013, reinstalled SP 2013 with SP1 and the issue went away.  I then applied the May 2014, June 2014, and July 2014 CUs.  The issue did not exist after applying the May and June CUs.  It
    did exist after applying the July 2014 CU.

    There is a workaround for this issue.  It's a little convoluted, but hey, it's SharePoint.  First, you must have a list that has at least one entry in it.
     To begin with, you must first
    have a list with at least one item in the list.
    Next you edit the item with a role that has at least Design privilege, but don't save your changes.
    Instead you Edit the page so you can then edit that web part.  You can edit the page by clicking on the cog icon and selecting Edit Page
    Edit the web part itself
    Under “Miscellaneous” section on the just exposed web part window, select "Server Render (Server Render)" in the drop down labeled “CSR Render Mode
    Click on “Apply” button within the web part
    Save
    I was told also the Sept CU would fix the issue but it is under review and to wait until the first of October.  Incidentally we found that if you put the entire list into Quick Edit mode, the issue does
    not appear.
    I hope this helps someone.

  • People Picker/Edit Web Parts/More not working in IE11

    So, we just installed IE11 in our company and found the following issues with SharePoint 2010:
    People Picker not working
    At Search site, when you type in string(s) and hit Enter, nothing happens (you must click the search button)
    Cannot edit web parts on Wiki Page
    After doing some exhaustive homework (and installing Sep 2014 CU to see they were fixed), the only 2 solutions are:
    Run in compatibility Mode
    Fix the below tag in the Master Page and People Picker headers (14 hive)
    meta http-equiv="X-UA-Compatible" content="IE=8"
    So, I just want to know if others have encountered this and what they did to resolve (compatibility mode or change the tags or other).
    I have a ticket open with Microsoft, we installed Sept 2014 CU, and are still having these 3 issues.
    Godspeed,
    Herschel

    Hi,
    Thanks for posting your issue,
    We know that IE11 has compatibility issues. Kindly follow below mentioned steps to solve this issue
    1. Installed all the latest Update for IE 11
    2. Add the site in compatibility Mode (Tools> Compatibility view settings> type site name> add)
    3. Add the site in trusted sites and set the security Zone level to low ( IE> Internet Options> Security> trusted sites> sites>add your site there> ok> custom level> select low> reset> ok)
    Also, browse the below mentioned URLs for more details to fix this issue.
    http://www.proactivespeaks.com/2013/09/12/fixing-sharepoint-compatibility-issues-with-internet-explorer-ie-9-and-ie-10/
    http://saiabhilash.blogspot.in/2012/12/people-picker-to-add-users-to.html
    http://sinclairinat0r.com/2014/02/25/sharepoint-2010-people-picker-and-workflow-compatibility-fixes-for-ie10ie11/
    I hope this is helpful to you, mark it as Helpful.
    If this works, Please mark it as Answered.
    Regards,
    Dharmendra Singh (MCPD-EA | MCTS)
    Blog : http://sharepoint-community.net/profile/DharmendraSingh

  • How to add the current user to a people picker using javascript coding in document library

    Hi Everyone,
    This is my scenario,
    I have a document library,for this if any user uploads a document,there we have three content types(Ex:content1,content2,content3)
    if the uploaded user is from content 1(here we have four columns name,assigned to ,status,published to) after uploading the document the document has to be updated.so when the document is updated by the user then automatically the published filed people
    picker has to be filled up with the current user name this is done by using java script object model programming.
    i am stuck with this can anyone help me..............
    thanks in advance
    Ramu

    Hi,
    I understand that you want to set a people picker field value automatically to current user. You can use these ECMA scripts on your EditForm.aspx page. Edit the page in SharePoint designer and add the code before a </asp:Content> tag.
     <script type="text/javascript">
    var context = null;
     var web = null;
     var currentUser = null;
    ExecuteOrDelayUntilScriptLoaded(GetUserLoginName, "sp.js");
    function GetUserLoginName() {
    context = new SP.ClientContext.get_current();
     web = context.get_web();
     this._currentUser = web.get_currentUser();
     context.load(this._currentUser);
     context.executeQueryAsync(Function.createDelegate(this, this.onSuccessMethod),
    Function.createDelegate(this, this.onFailureMethod));
     function onSuccessMethod(sender, args) {
     var today = new Date();
     alert('Name:' + this._currentUser.get_title() + '\n Login:' + this._currentUser.get_loginName()); document.getElementById('ctl00_m_g_9b4b3950_80d8_4e6e_b2fa_241b727d83d4_ctl00_ctl02_ctl00_ctl02_ctl00_ctl00_ctl04_ctl00_ctl00_ctl04_ctl00_ctl00_UserField_upLevelDiv').innerHTML=this._currentUser.get_title();//you
    need to change the ID here to you people picker field ID. You can get the id for this field with the help of IE developer tool.
     function onFaiureMethod(sender, args) {
     alert('request failed' + args.get_message() + '\n' + args.get_stackTrace());
     </script>
    For more information, please refer to this site:
    Get current user’s LoginName Ecmascript Sharepoint 2010:
    http://www.learningsharepoint.com/2011/05/18/get-current-users-loginname-ecmascript-sharepoint-2010/
    Thanks,
    Entan Ming
    Entan Ming
    TechNet Community Support

Maybe you are looking for

  • Need Help HP DM3 (DM3-1130us) Laptop will not power on. No power at all except for light on a/c jack

    Hello, I need some help. I have a HP DM3-1130us Laptop that will not power on at all. the only thing that happens when I plug it in is the power jack lights up. When the power button is used absolutely nothing happens. No power, no fans, no leds, no

  • New payment term configuration in FI

    MM Gurus We need a payment term configuration in FI as follows. Invoice date plus No.of grace days plus end of month (that means we have make payment on the last day of month where the last grace day falls in that particular month) Thanks Vijay

  • Regarding 0calday

    hi every one see my requirement in query is to show the date format in this way              "JAN2006 instead of "200601" have anyone faced this problem,if so please tell me how to do , thanks in advance.

  • My ipad is desactivated how can I activated it?

    To many bad passwords and i can't get in my ipad

  • Camera Quality Is Grainy!

    Well I just got the new itouch and the camera quality is very grainy. Both for the pictures and video. I don't know what's going on, but I know this is not HD quality. Can someone shine some light on this, cause I'm very disappointed and upset. Messa