Hot answers tagged user-profile
5
Have you enabled "replicable" on the field properties?
If this isnt enabled, the properties are not propagated to the hidden user list
Edit:
if you look at this post, it seems that not all user profile types are propagated.
Change one of the properties to TEXT just to test if this is the cause of this.
5
You can try this if I understand you correct?
Microsoft.SharePoint.SPContext.Current.Web.CurrentUser.LoginName;
or
HttpContext.Current.User.Identity.Name
and
Microsoft.SharePoint.SPContext.Current.Web.CurrentUser.ID;
hope this helps :)
4
Use some powershell like
$url = "http://sp2010/"
$site = Get-SPSite $url
$context = Get-SPServiceContext $site
$profileManager = New-Object Microsoft.Office.Server.UserProfiles.UserProfileManager($context)
$profiles = $profileManager.GetEnumerator()
while ($profiles.MoveNext()) {
$userProfile = $profiles.Current
$name = $userProfile.DisplayName
...
4
The master page of the mysite is the normal v4.master and doesn't load any user profile. There is a web control in every article page in the mysite that makes sure the profile gets loaded.
<SPSWC:ProfilePropertyLoader id="m_objLoader" LoadFullProfileOfCurrentUser="true" runat="server" />
If you like to get this done in the masterpage you need to add ...
3
You can change the account by running the stsadm -o migrateuser command:
http://support.microsoft.com/kb/953131
This will rename the userid in the UserInfo table in your content databases to the new userid.
If that doesn't work try looking at your user profile service application. Every hour a timer job runs that syncs user information from this service ...
3
Your code set HttpContext.Current = null;, but do not restore it, use try-finally approach:
HttpContext con = null;
try{
con = HttpContext.Current;
......
}
catch(Exception ex){}
finally{
HttpContext.Current = con;
}
And also, this code
SPSite tempSite = new SPSite(SPContext.Current.Site.Url);
leads to memory leaks, why not to use simply
...
3
You also can use the SPUser and SPUserCollection Object to iterate through all user profiles
using Microsoft.SharePoint;
using Microsoft.Office.Server.UserProfiles;
using Microsoft.Office.Server;
using System.Web;
here is the code:
SPSecurity.RunWithElevatedPrivileges(delegate()
{
using (SPSite siteCollection = new ...
3
You will need to load it from the User Profiles and not the SPUser object.
SPServiceContext svcContext = SPServiceContext.GetContext(site);
UserProfileManager profileManager = new UserProfileManager(svcContext);
UserProfile profile = profileManager.GetUserProfile(accountname);
string department = profile["department"].Value;
2
On the same note as Per, because you already have 2 Web Applications for each of "My Sites", after configuring 2 Search SA's you would actually need to use the Service Connections under Manage Web Applications to establish the correct relationship for either the User Profile SA and Search SA (of course each Search SA is targeting apropiate Content Source or ...
2
Regularly it should be 2 different types of "users" - those coming from AD (primary) and external users - for those that do not have/require a license. For the externals you would basically send out invitations they would accept and get access to the SharePoint site.
[Update #1 ] This link actually explains the concepts ...
2
Not really - the User Profile properties aren't stored in a list (which is where Event Receivers are registered) - they're all stored in the User Profile Database which is managed by the User Profile Service Application.
If you want to sync profile changes with an external system, you can write a Timer Job to look up the user profile properties and ...
2
So, by turning off replication, that means it won't update the field anymore. That column and data will still live in the user information list on each site collection. If you truly want it gone, you will need to write some code (.net or powershell) to remove that column in the user information list on each site collection.
2
Did you find a solution to this issue? I'm having the same issues myself. The only difference is that instead of it saying "Workflow failed to get user profile for user: xxx/HAdes" it says "Workflow failed to get user profile for user: HAdes"
I think this may solve my issues but I would rather not rebuild Mysites and UserSync from scratch to run this ...
2
Without the use of AD the only way is to write an application to synchronise them for you.
I would set up a VM with active directory on, to handle this, so you have it there, just for this period, I really hope this is possible for you.
The good news is the code for doing this as an application would be almost identical on 2007/2010 so a windows form ...
2
Marc,
Can you lose the DVWP and just use JQuery for the whole thing? THen you could control the load of the page User Profile Values by hitting the USer Profile Web Service with a JQuery request.
Alternatively can you use an audience on the list so you avoide the call to the User Profile alltogether?
Matthew
2
You need to configure Remote WMI.
http://technet.microsoft.com/en-us/library/ee721049.aspx
if the farm contains multiple servers running SharePoint Server 2010, and two or more servers are running the User Profile service, the timer job responsible for synchronization might fail. This happens when the server that runs the synchronization timer job is not ...
2
If you are having two User profile aervice applications in your farm then you need to create one custom connection group for each Web application in the farm. Then, you can change the each User profile service application to be associated with different Web application. It can be done by changing the service applications that are included in the Default ...
2
Though I agree that having 2 user profile services on a farm is a little nutty, hopefully your site only has 1 associated with it. You can GetContext on a SPSite object, instead of Default, which should get you the UPS associated to that site. If there's 2 associated... well... I'll have to dig in some more. Let me know if this works.
2
User Profile Service application will have it's proxy. This will let you distinguish these two services. Assign each proxy to a different proxy group (one could stay in the default group) and second you could assign to 'MyCustomGroup'. This is how you can create it.
New-SPServiceApplicationProxyGroup –Name MyCustomGroup
Now you can go to Central ...
2
here is the step by step:
Review the import logs, see if it is really getting all the data
from the profiles (and check in AD if the user that has no Org Chart
on his profile if he has a Manager or not, or if he has more/less
data than the other users.)
If there is trouble importing information from AD, you account
connecting to AD might not have access to ...
2
There is no out of the box solution for this thing. Microsoft is offering server based solutions not related to sharepoint at all. Look for Microsoft Lync 2013
http://lync.microsoft.com/en-us/Pages/unified-communications.aspx
If installed and configured the precense of the user will lit up next to the people information of documents or contact webparts. ...
2
Ok, now that we know you're not at any patch level, the resolution to your issue should be apply SP1 + at least June 2011 CU as the June CU solves the migration issue, however, I would recommend Feb 2012 CU instead.
2
You can use the Where cmdlet to filter the users.
$profiles = $profileManager.GetEnumerator() | Where {$_.name -like "IT*"}
Note: This does the filtering after retrieving the full list.
Also
profiles = $profileManager.GetEnumerator() | Where {$_.MultiloginAccounts -like "domainname\adminID*"}
2
It was working fine until I changed the default zone's authentication method to allow FBA in addition to Win Auth (claims).
Instead of changing the default zone, I think you should have extended the web application. If you can't switch things back to how they where, I would consider to restore the web application:
Considerations when restoring a Web ...
1
Using an AD security group to maintain your testers may be of some value. Place testers in AD group, give the group permissions in SP. when testers change, change the group in AD therefore allowing sync between the two areas they need access to. only catch is if the testers need different perms within SharePoint (contribute, full control etc..) in which ...
1
I just tried deleting and recreating the User Profile Service, this time I set the DomainNamesEnables to "true" before setting up and syncing users. Looks like I'm having the same issues though. I can search for people perfectly fine. That all works well. Everything else works. The odd thing is that the workflows worked originally BEFORE I had even got the ...
1
Salman,
If I recall correctly, you cannot use SPUser to directly access extended properties. However, the User Information List (UIL) is just a regular list, almost like any other, so the user data of an SPUser is also exposed as a regular SPListItem object. If you add columns to the UIL you can access the extended properties through the associated ...
1
As James said, you could create a timer job to sync profile changes with the external system. But, to detect the changes in user profile properties, I would suggest you to look into UserProfileChangeCollection because it contains a complete log of changed user profiles.
using (SPSite site = new SPSite("http://server1"))
{
...
1
Assuming you want to have all user links bring users to My Sites, you can start off creating the user control, by the following code on http://blogs.sharepointguys.com/brendon/sharepoint-2007/programming/redirect-to-your-own-mysite-landing-page/ and then in the RedirectIfNecessary(SPListItem user) you can utilize the following code.
if ...
1
Are you utilizing OOTB functionality or custom code on the particular location? We had a custom redirect that forced users to non my sites profile pages, which I had to fix when we started to use my sites.
Also, are the users active users? Or deleted?
This behavior shouldn't occur OOTB.
If the user does not have a mysite account, by default it should ...
Only top voted, non community-wiki answers of a minimum length are eligible
