Update the people picker URL
I have create the view which include the People picker column(name) and single line text column.
I created the default view for the list.
On clicking Name , It is navigating to the Myid portal.
But i need to navigate to the current item display form .
Please help me on this.
Hi,
From your description, my understand is that you want to redirect
People picker column to display form instead of userid portal.
You could accomplish your requirement with SharePoint Designer. Please try these steps below:
1.
Open the view in design model you have created with SharePoint Designer.
2.
Right click the People Picker column, and choose: Format Item as -> Hyperlink to -> Display Form, as the screenshot below.
3.
Open the view in Split model, please replace the code “<xsl:value-of disable-output-escaping="yes" select="$thisNode/@*[name()=current()/@Name]" />” with code “<xsl:value-of select="substring-before(substring-after(substring-after(substring-after(substring-after(substring-after($thisNode/@*[name()=current()/@Name],
'>'),'>'),'>'),'>'),'>'),'<')" disable-output-escaping="no"/>” as the screenshot below.
Best Regards,
Vincent Han
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]
Similar Messages
-
How to populate a field in an Infopath form based on the people picker input - only OOTB approach
Hello,
I have 3 lists : Resource , Project, Contract
In "Contract" list i have created a form with MS Infopath 2010. This form is used to collect data of a new resource joining a project . This form also takes the information about the resource's costs.
Scenario :
Project informations are already present in the "Project" list.
Any new resource who will be joining a project will be added in the "Resource" list at first . This list has its own form to do so. While adding this resource the form asks for the project which should be assigned. This is dealt with.
"Contract" list : In this lists form their is a people picker field where the resource email id(already inserted in "Resource" list earlier) will be typed by me. There is a field which will capture the project name.
Issue in "Contract" list:
When i type the resource email id and click on the people picker icon , the project field in the form should get auto populated with the corresponding project of the existing resource so that i donot have to type the project name again. This project info
should be fetched from "Resource" list only.
Please let me know how i can achieve this by OOTB approach .
Regards,
Gurutry these links:
http://sharepoint.stackexchange.com/questions/103682/autopopulate-form-fields-based-on-selection-in-people-picker-column-using-javasc
http://sharepoint.stackexchange.com/questions/80261/people-picker-not-getting-populated-in-the-sharepoint-site
http://blogs.technet.com/b/anneste/archive/2011/11/02/how-to-create-an-infopath-form-to-auto-populate-data-in-sharepoint-2010.aspx -
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] -
Users show up in UPS, but not the people picker
Hi,
Currently I am having a problem with my SharePoint site. The issue is that users aren't showing up in the people people but DO show up in the UPS manager. I have looked through my error logs and haven't been
able to pinpoint where the errors are. Also, I don't know this is related but there are times where in order to find users I have to type in their domain\username, because I can't find them as Joe Shmoe. Ideas?
-Thanks
EricCan you describe any domain trusts in place, or firewalls in place between your SharePoint servers and the domain the users are a member of?
To me this sounds like a firewall issue (SharePoint doesn't have the proper ports open between it and the DC(s)) or a trust issue, where there is a one-way or selective trust between the domain SharePoint is in and the domain the users reside in.
Trevor Seward
Follow or contact me at...
  
This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs. -
Update the overall pick status of a outbound delivery at header level
Hi Experts
Is there any way to directly update the outbound delivery ( VL02N) status at header level (VBUK-KOSTK) , OverllPickStatus
quick response is appreciated
Thanks
Satishtry MV50AFZZ.
Regards
Peram -
Sp user not resolving in the people picker SharePoint 2010
Hi All,
i have an account domain/bimoffice, this account resolves in all the site collections but only in one site collection is does not so not able to give permission to him
for example
http://acm/sites/gis works !
http://acm/sites/ww - works!
http://acm/sites/op - not works!
how to fix this?so do you have problem only with single account in http://acm/sites/op, or other users are also not resolved?
One more idea: is user domain/bimoffice still active in AD? May be it was active before and used on other site collection, but after that it was disabled and can't be resolved on new site http://acm/sites/op anymore.
Blog - http://sadomovalex.blogspot.com
Dynamic CAML queries via C# - http://camlex.codeplex.com -
What happens in SP2013 when a user gets married and changes their name in AD?
My understanding is that after a full (?) User Profile import and a People crawl (Full/inc?) - their display name in SharePoint will be updated but in SP2013 do the entries in People picker and User Info Lists also get updated or are their manual steps
that have to be taken?
Thanks
JFirst, User Profiles will be updated after the next incremental sync. SP 2013 only does Full User Profile syncs manually. A full sync is not really required.
Second, there are two timer jobs that will sync the user profile with the user lists in each site collection. The "Quick" job only syncs new users, while the "Full" job should sync all user changes. The "Full" job
runs hourly by default.
Third, the people picker should be getting its info from AD, although there is some caching that goes on. So it should pick up the change from AD when the cached information ages out.
Paul Stork SharePoint Server MVP
Principal Architect: Blue Chip Consulting Group
Blog: http://dontpapanic.com/blog
Twitter: Follow @pstork
Please remember to mark your question as "answered" if this solves your problem. -
"People Picker" field not letting update SP linked table in Access
Hello all,
I have linked a SharePoint list to an Access database in order to manipulate some data. This list contains several fields, including a people picker in which its data come from SharePoint.
Once in my Access DB, I need to update some fields of this list, however when I try to change some values from a record that has the people picker populated I get the following error message: "you cannot reference rows created
when you are disconnected from the server because this violates the lookup settings defined for this table". I only get this when I have values on people picker, I can proceed without any problem when I have it set as blank.
So, do you have any idea on how to accomplish an update operation while having a people picker field populated?
Thank you in advance.Hi Pedro,
I recommend to check if the user populated in the RequestBy exits in User Information List in SharePoint site and the choices listed in Access for status field are existed in SharePoint Status column.
Please refer to this thread for more details:
https://social.technet.microsoft.com/Forums/office/en-US/8a7baf3b-5a3a-4631-82f9-b43d992155d1/updating-sharepoint-2010-list-from-access-2007?forum=sharepointgenerallegacy
More reference:
http://blog.incworx.com/blog/elizabeth-pecoras-sharepoint-blog/you-cannot-update-this-field-because-the-value-youre-trying-to-apply-is-not-valid-or-would-break-a-data-integrity-rule-error
Best regards.
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] -
People picker are not displaying all the users from the existing Synchronization Connections
Hello, I need help.
I have two domains, an old domain and a new domain that were are migrating to.
I have 2 connections for Users Synchronizations, one to the old domain and one to the new domain.
Here is what is happening: when I open people picker from any of the web applications only the users that existed in the old domain are showing and not the new users that are been added to the new domain. Basically people picker is displaying old data/users.
What can I do?The People Picker doesn't leverage UPA Sync Connections. Is there a one way or two way trust set up between the domains? If it is one way (where the old trusts the new), then you need to leverage the peoplepicker-searchadforests property: http://technet.microsoft.com/en-us/library/cc263460(v=office.12).aspx.
You also need to make sure your SharePoint servers have port access to the Domain Controllers in the new domain: https://peoplepicker.codeplex.com.
Trevor Seward
Follow or contact me at...
  
This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs. -
Set Default Value for People Picker in List Template current user
Hi,
I have field definition in my custom list
<Field ID="{26763808-64BB-4A3C-93A0-ED45AF783D45}" Type="User" Name="RequestedBy" DisplayName="Requested By" Required="FALSE" ></Field>
I need to set default current user in this.
I found few options with javascript.
Thanks in Advance.
Where I can find on set of default commands like Today
HariHi,
Default current user can’t be got in calculated column like Today. I suggest that use SPD Workflow described above or JavaScript. Open NewForm page of the list, then add “pageview=shared&toolpaneview=2”
to the page URL, click Enter to go to edit mode. Then add a Content Editor Web Part to the bottom of NewForm page, copy the code bellow into Source Editor of CEWP.
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript" src="http://come:100/sites/collection1/Shared Documents/jquery.SPServices-0.7.0.js"></script>
<script type="text/javascript">
$(document).ready(function(){
var CurrUser=$().SPServices.SPGetCurrentUser({
fieldName: "Name", debug: false});
$('#ctl00_m_g_dab5800a_09ac_4f35_97f6_9b5496127f68_ctl00_ctl04_ctl02_ctl00_ctl00_ctl04_ctl00_ctl00_UserField_upLevelDiv').html(CurrUser);
</script>
Note:
download jquery.SPServices-0.7.0.js here and upload it to your own site:
http://spservices.codeplex.com/SourceControl/list/changesets, and then replace the route of jquery.SPServices-0.7.0.js above with the route in your site. ctl00_m_g_dab5800a_09ac_4f35_97f6_9b5496127f68_ctl00_ctl04_ctl02_ctl00_ctl00_ctl04_ctl00_ctl00_UserField_upLevelDiv
is the id of the people-picker, please find it in your own NewForm page.
Another method, you can use Event Handler. Here is the example code.
public
override void ItemAdded(SPItemEventProperties properties)
if (properties.ListTitle == "listname")//replace listname with your list.
SPWebcurrentWeb = properties.OpenWeb();
SPUseruser = currentWeb.SiteUsers.GetByID(properties.CurrentUserId);
SPListItemliitem = properties.ListItem;
SPFieldUserValuefieldUser =
newSPFieldUserValue(currentWeb, user.ID, user.LoginName);
liitem["currentuser"] = fieldUser;//replace currentuser with your field name.
liitem.Update();
//base.ItemAdded(properties);
If anything unclear, please feel free to ask.
Thanks.
Emir Liu
TechNet Community Support -
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 JainYou 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 -
ADFS Claims Authentication, Configuring UPA and People Picker
Hi,
I am just trying to get my head around setting up ADFS to authenticate users along with allowing UPA (My Sites) and People Picker to work.
So, my environment is a WFE and an SQL Server offsite and my AD and ADFS 2.0 server onsite. We have configured SharePoint as below and applied the Claims Provider to my Intranet web app and My Sites web app and I can login in with my
account as [email protected] (UPN)
$cert = New-Object System.Security.Cryptography.X509Certificates.X509Certificate2("E:\ADFS_SelfSigned.cer")
New-SPTrustedRootAuthority -Name "ADFS Self Signed” -Certificate $cert
$map1 = New-SPClaimTypeMapping "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/upn" -IncomingClaimTypeDisplayName "Account ID" –SameAsIncoming
$map2 = New-SPClaimTypeMapping -IncomingClaimType "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress" -IncomingClaimTypeDisplayName "EmailAddress" –SameAsIncoming
$map3 = New-SPClaimTypeMapping -IncomingClaimType "http://schemas.microsoft.com/ws/2008/06/identity/claims/role" -IncomingClaimTypeDisplayName "Role" –SameAsIncoming
$realm = “https://intranet.domain.com.au/_trust/”
$signinurl = “https://adfs01.domain.com.au/adfs/ls/”
$ap = New-SPTrustedIdentityTokenIssuer –Name "SAML Provider" -Description "My Custom Identity Provider" –Realm $realm -ImportTrustCertificate $cert -ClaimsMappings $map1,$map2,$map3 –SignInUrl $signinurl -IdentifierClaim $map1.InputClaimType
$uri = new-object System.Uri("https://adfs01.domain.com.au/adfs/ls/")
$ap.ProviderRealms.Add($uri, " https://mysites.domain.com.au/_trust/")
$ap.Update()
iisreset
When trying to configure a new synchronisation connection> Activery Directory Import under the User Profile Service Application, I get an error saying it can't connect to the Domain Controller which would make sense as they are not on the
same domain.
I believe that MS have a sync utility that works with Office365/MS Cloud - is there a similar solution available for my configuration?AD import still uses LDAP/ADSI... ADFS cannot be used DIRECTLY as a sync source, since it is NOT a QUERYABLE technology. It is an AUTHENTICATION technology. UPS syncs to a QUERYABLE data source like LDAP/ADSI, and maps one of the properties to the ADFS login
(most people choose email or UPN, though I tend to recommend SID for various reasons).
Also, since people picker displays a SEARCH window, and since ADFS is not a QUERYABLE technology, the people picker (by default) ASSUMES that whatever you type in will be VALID. You can SEARCH the UPS, but if you type an email address or something of that
nature, it is NOT going to SEARCH your directory! To address this, you need to install a custom Identity Provider... one is available on CodePlex, which performs an LDAP search against the domain controller... if that's not an option, you need a custom coded
solution.
Scott Brickey
MCTS, MCPD, MCITP
www.sbrickey.com
Strategic Data Systems - for all your SharePoint needs -
How to update a People and group field using a sandbox solution
Hi,
I am creating a sandbox solution for office 365 and creating a custom form using visual web part, which will allow users to enter data in a custom list.
And that list also have a user field. I am able to get SharePoint user field on the form (using javascript) which is searching for the user and get a value (working fine).
Issue: But I am not able to save the user value. Because to save user value I require web, UserID and login name, to construct SPFieldUserValue object or string in "111;#TestUser" format. Moreover that user should be present in
SiteUserInfoList.
I tried web.EnsureUser() but did not work under sanbox solution.
Can you please provide any pointer or workaround to the problem? I may be missing something here.
Thanks,
HimanshuHi,
According to your description, my understanding is that you want to update the people and group field in Sandbox solution.
In the sandbox solution, you can still use the web.EnsureUser() function to get the user information, see the thread below:
EnsureUser in sandboxed solution
In additional, there is a demo with your similiar requirement for your reference:
Using the People Picker Control in Sandbox Solutions / Office 365
Thanks
Best Regards,
Jerry Guo
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] -
Sharepoint 2013 Setting people picker with Jquery not working in IE8
In a SharePoint 2013 list with a people picker column labeled Name the following code works great in IE9 and IE10, however in IE8 the script shows an undefined is null or not an object error message at spPeoplePicker.AddUnresolvedUserFromEditor(true);
FYI using jquery min 1.10.2
Any ideas on how to resolve the issue?
<script type="text/javascript">
$(document).ready(function () {
var userid = _spPageContextInfo.userId;
//alert(userid)
function GetCurrentUser() {
var requestUri = _spPageContextInfo.webAbsoluteUrl + "/_api/web/getuserbyid(" + userid + ")";
var requestHeaders = { "accept" : "application/json;odata=verbose" };
$.ajax({
url : requestUri,
contentType : "application/json;odata=verbose",
headers : requestHeaders,
success : onSuccess,
error : onError
function onSuccess(data, request){
var userName = data.d.Title;
//set following "field" as column to set in people picker
SetUserFieldValue("Name",userName);
function onError(error) {
//alert(error);
function SetUserFieldValue(fieldName, userName) {
var controlName = fieldName;
var peoplePickerDiv = $("[id$='ClientPeoplePicker'][title='" + controlName + "']");
var peoplePickerEditor = peoplePickerDiv.find("[title='" + controlName + "']");
var spPeoplePicker = SPClientPeoplePicker.SPClientPeoplePickerDict[peoplePickerDiv[0].id];
//comment out this field if edit form needs to be read only
peoplePickerEditor.val(userName);
//comment out this field if edit form needs to be read only
spPeoplePicker.AddUnresolvedUserFromEditor(true);
//disable the field
spPeoplePicker.SetEnabledState(false);
//hide the delete/remove use image from the people picker
$('.sp-peoplepicker-delImage').css('display','none');
GetCurrentUser();
</script>Hi David,
Below is the complete code I have used to load the current user to the people picker in SharePoint 2013.
$(document).ready(function(){
SP.SOD.executeFunc('sp.js', 'SP.ClientContext', LoadCurrentUser);
function LoadCurrentUser() {
var context = SP.ClientContext.get_current();
var siteColl = context.get_site();
var web = siteColl.get_rootWeb();
this._currentUser = web.get_currentUser();
context.load(this._currentUser);
context.executeQueryAsync(Function.createDelegate(this, SetPickersToCurrentUser), Function.createDelegate(this, LoadUserfailed));
function LoadUserfailed() {
alert('failed');
function SetPickersToCurrentUser()
var loginName = this._currentUser.get_title();
SetPeoplePicker('Order Team', loginName);
function SetPeoplePicker(fieldName, userAccountName) {
var peoplePickerDiv = $("[id$='ClientPeoplePicker'][title='" + fieldName + "']");
var peoplePickerEditor = peoplePickerDiv.find("[title='" + fieldName + "']");
var spPeoplePicker = SPClientPeoplePicker.SPClientPeoplePickerDict[peoplePickerDiv[0].id];
peoplePickerEditor.val(userAccountName);
spPeoplePicker.AddUnresolvedUserFromEditor(true);
Let me know if you have any questions. I will help you out!
-Praveen.
ASP.NET and SharePoint developer
Blog: http://praveenbattula.blogspot.com
Please click "Propose As Answer" if a post solves your problem or "Vote As Helpful" if a post has been useful to you. -
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
VinnyNo 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
Maybe you are looking for
-
HT3819 I have movies but no TV shows on my shared iTunes
I can see movies from all passwords used for my iTunes. My family members share one computer. The Share is my user ID. I can watch my movies but no TV shows apear on my iPad. Since I only have this set up to watch a specific TV show it is been kind o
-
SharePoint 2013 RTM and WIndows Server Core 2012
Hi, I've got a simple question I couldn't find the answer on the net. Is SharePoint 2013 officially supported (supported, not just working almost fine) by Microsoft if installed on a Windows 2012 Server Core? Does it depend on the roles of the farm?
-
HI, My upgrade from 3.1 to 4.0 has been going smoothly up to now. It stopped in phase REQ_BBWPCRM now asking me to perform the actions in the chapter 'Follow-up activities for the Middleware' in the documentation 'Upgrade Guide - CRM 5.0'. No mention
-
Hi All, I created an XREF table using XREF commandline utility. Table was successfully created and columns were also successfully added. But I am getting the following error while using populateXRefRow function in assign activity in BPEL. I have XREF
-
[Solved] Document can't be opened.
Had just set the number of columns in a document incorrectly on my ios 7 iPad with latest Pages version, was hitting command-Z on my bluetooth keyboard to undo, when Pages froze, then crashed, then "Document can't be opened." on either iPad or iPhone