Tag Info

New answers tagged

0

There is a typo in SOAP message (newData variable). Bellow is valid SOAP message for ModifyUserPropertyByAccountName operation: var msg = "<soap:Envelope xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:xsd='http://www.w3.org/2001/XMLSchema' ...


1

The SOAP web services have been deprecated. Even if you did get it working there will come a point when it won't and Microsoft will no longer support it. I am sure you have seen the articles that describe your options from JavaScript: http://msdn.microsoft.com/en-us/library/office/jj920104(v=office.15).aspx This is a great reference for common tasks: ...


0

An easier approach is to allow the user to update the property and just hide the value from their edit page. Then you don't need RWEP. Just a thought.


0

Follow this steps got to Library Permission by default, library inherits permissions from parent. Just click on Stop Inheriting permissions. after that, Delete the users or groups which you don't want. Add the users or groups that you want library to be accessible. and save. library will than have unique permissions


1

Run with Elevated privileges runs the Code in System Account/App pool account. So you will have to make sure that App pool account has "Manage Profile Permission" rights to the User Profile Service. Follow below steps: Go to Central Admin-->Choose Application Management --> Manage Service Applications--> Select the User Profile Service Application (do not ...


0

as robert noted! You have two options! either use impersonation that uses an account part of the administrator group or add the web application app pool account to the administrator group! SharePoint -access to path is denied EDIT looks like the bug is still there is 2013! lol, seems like event tho its a system account it doesnt mean it has access as your ...


0

No, RunWithElevatedPrivileges as you use it will impersonate the Application Pool account! So you need to make sure that the account running your web application app pool has administative rights to your UPS


0

If you need to remove permissions programmatically you should first break inheritance: list.BreakRoleInheritance(true); After that you can for example remove all role assignments for list or library and it does not effect for higher levels: SPRoleAssignmentCollection roleAssignmentCollection = list.RoleAssignments; for (int i = ...


2

You need to go to Document Library Ribbon -> Under Library -> Library Settings -> Permissions for this document library OR simply Document Library Ribbon -> Under Library -> Library Permissions By default the document library will be inheriting permissions from Site, you need to click "Stop Inheriting permissions" ribbon button to stop that.. Than you ...


0

You should not have to get the current user. Calling GetUserProfile(bool) will get the user profile of the current user, and optionally create the user profile if it does not exist. The user should have permission to update their own profile, so it is very bad practice to use RunWithElevatedPriveledges. You should only need the Service Context for the ...


1

I just faced a very similar situation with a custom membership provider using claims in SP2013. After a lot of research and POC's, I could not get the Display Name in the people picker and the login name to be decoupled (basically, show a Display Name and generate the auth claims with a username or unique ID). Hopefully someone may chime in with a way to ...


0

An other solution would be to override the edit profile page and add your code to the save button. I've found it here To do it, you'll have to create an other page and redirect the edit page.


1

When working with the User Profile Service you will find that uninitialized values are not sent via REST. Your code has to account for the fact that the user may "opt out" and not populate a value. In your code determine if the value is present and if not, determine the default, in your case "false". I like to believe that this is an "optimization". :)


1

In both SharePoint 2010 and 2013 the "Tab" that you refer too is just a pointer to a page. You can delete the page, but that does not prevent someone who knows what they are doing from using search to find user profiles. If that is what you want you need to omit the user profile crawl in the search service application. Find the content source start address ...


0

If you delete the profiles you will loose the data stored in the profiles, but not the personal sites. Rather than delete the profiles, I would begin by recreating the connection. Then run a full import and troubleshoot the import with the MIISClient. If that does not work you can then try more drastic approaches.


0

It can be done using the UserProfile web service and/or SPServices, see here for an example. Bulk updates are also possible. I have tested both options successfully in SharePoint Online.


4

You cannot change any properties in the User Profiles via client OM code (neither .NET nor via JavaScript) with the exception of the user's profile picture. MSDN - Work with user profiles in SharePoint 2013 Not all functionality that you find in the Microsoft.Office.Server.UserProfiles assembly is available from client APIs. For example, you have ...


2

Can you describe WHY you want info in the User Info List? Generally you sync with the User Profile Service and leave the User Info List alone. I think you don't understand the architecture. There are many great guides on the topic, the best by far is Spence Harbar's: http://www.harbar.net/articles/sp2010ups.aspx It says 2010 but applies to 2013 as well. ...


1

Choice JS or Server OM depends on you. For example if you think that in the future you will need the same code in SP Online, in that case is better write the code in JS. The main object for that is PeopleManager. This is an example of JS code: var personProperties; // Ensure that the SP.UserProfiles.js file is loaded before the custom code runs. ...


0

User entry is only added in the User Information List when the user logs into the site. What you can do is to read the user from the AD and then call SPWeb.EnsureUser. This will add an entry in the User Info List for the user even though user has not actually logged into the site.


0

My example from project, correctly works with users and groups. public Principal ResolvePrincipal(string name) { if (String.IsNullOrEmpty(name)) throw new ArgumentException("Principal name is empty"); Principal result = null; var info = Utility.ResolvePrincipal(Context, Context.Web, name, PrincipalType.All, ...



Top 50 recent answers are included