Working on the User Profile and Mysite web

I just trying to get few information from a user (like if the mysite web exits) and working with that. The main problem is understand if the user has a mysite web and delete it if exists but to do that the only possible way seems using CSOM. Also I should
create a Powershell script for that. Did anyone never do that?
If a post answers your question, please click "Mark As Answer" on that post and "Vote as Helpful"
salvatoredifaziosharepoint.blogspot.com
Twitter: @Salvodif
MVP SharePoint Server

Hi Salvo Di Fazio,
PeopleManager.GetMyProperties method returns a type of UserProfiles.PersonProperties, that represents the user profile properties.
PersonProperties contains a PersonalUrl property, that is the absolute URL of the user’s personal site.
We can use this property to check the user’s personal site, check whether it exists.
Following is an example about how to get user’s profile using CSOM:
How to: Retrieve user profile properties by using the JavaScript object model in SharePoint 2013:
http://msdn.microsoft.com/en-us/library/office/jj920104.aspx
Thanks,
Qiao Wei
TechNet Community Support

Similar Messages

  • Need urgent help on how to compare the user profile and process form attributes

    Hi All,
    We have a requirement  where after editing the  user profile attributes we have to compare the currently modified user  profile attributes and the existing     
    process form attributes and based on the differences we have to update the  process form accordingly.
    We have around 80 attributes so we cannot follow the procedure where
    we update the lookup process_triggers
    and add the "change attribute" task
    and "update attribute" taskin the process definition
    because it creates aroung 160 tasks in process definition. So we are doing it by writing a custom code. Is there any other simple way to do it or any API"s which can help us.
    Need very quick help.Thanks in advance.
    Regards,
    Geetha

    Check MOS: 1595938.1
    -Bikash

  • ITunes 12.1.2.7 works for one user profile and not another on the same PC

    When using iTunes 12.1.2.27 with my user profile in Windows 7, it will run for about a minute before I get the message that iTunes has crashed and that Windows is searching for a solution.  It never finds one, and the problem persists.  I've tried doing a restart of the computer and uninstalling and reinstalling iTunes.  Nothing works.
    However, my wife has a separate user profile on the same computer.  The same installation of iTunes that crashes with me works as it should when she uses it with her profile.  What's going on, and how do I fix it? 

    See Fix unexpected quits or launch issues in iTunes for Windows - Apple Support.
    tt2

  • Palm Treo 700p How do I delete the User Profile and retain the data?

    I want to sync my palm to my computer under a new profile.  I don't want to loose the data.  How do I delete or change the 700p profile so when I sync it thinks it is a different 700p?
    Thanks in advance
    JT
    Post relates to: Treo 700p (Verizon)

    In Palm Desktop, click the drop-down list of Hotsync IDs and select Edit Users.  Never done it myself, but if all you want to do is change your Hotsync ID's name, that should do it.
    smkranz
    I am a volunteer, and not an HP employee.
    Palm OS ∙ webOS ∙ Android

  • SESSION_PER_USER limit of the user profile and memory Oracle 11g

    Hi,
    I am new to oracle 11g.
    My applications are facing some problem hosted over oracle 11g and this issue appearing because of there is not sufficient sessions available.
    Here is current setting
    CPU count                    2
    Parallel Thred per CPU               2
    Resource Manager CPU allocation     2
    Shared mamory address          0
    Memory MAX target               6GB
    Memory Target               6GB
    Total Size of DB               75
    Used Size of DB               55
    Sessions -MAX               555
    Processes-MAX               500
    We want following settings
    Total Size of DB               75
    Used Size of DB               55
    Sessions -MAX               1200
    Processes-MAX               800
    Here is my qurey
    Is there any relationship between memory allocated to database and Sessions -MAX & Processes-MAX or CPU allocated .
    and whats best setting we can get for Sessions -MAX & Processes-MAX for given configuration of CPU and memory ?
    Thanks
    Edited by: user13714831 on Jul 22, 2011 12:54 PM

    limit number of session per user using wired dot1x is not available in 1.3

  • Resource assignment WMS- Defining user profiles and equipment profile

    Can anyone please let me know how I can define the user profiles and equipment profiles in SAP WMS We have a decentralized WMS that we are implementiing . Can any one please let me know how I can define the user profiles and aalso the equipemtn profiles. Ability to skip tasks and task groups.
    Thanks

    Yes - this was the first set of information the OP dumped from his system. About line 5 of the post.
    But I do wonder whether the 9.2.0.6 (not latest patch) makes a difference? Or perhaps the connect time is being used as part of a composite limit.

  • Assign User Profiles and Web Interface Transactions to Users

    Hi EM Gurus,
    Has anyone worked with not standard scenarios in SCEM?
    They are working well but I can't access them on interface web.
    In selection page (search page after logon), where choose tracking scenarios, only standard scenarios appear although I have assigned both scenarios to the user and made same configuration; Assigned and Defined Web Interface Transactions, Configured Fields for User Profiles, Defined User Profiles, Assigned User Profiles and Web Interface Transactions to Users.
    But only Standard Scenarios appear as choice of tracking scenarios that are displayed to the user as a dropdown box on the selection screen after logging on to the Web interface.
    Has anyone accessed not standard scenarios on interface web??
    Help, please!
    Thanks a lot.
    Rodrigo Freitas

    Hello Rodrigo,
    if you have assigned the scenarios to your user in transaction /SAPTRX/UCUSER you must go to the admin page and reload the profile manager.
    /admin in the URL of the WCL instead /ehsearch.
    Afterwards you should see them also in the drop-down box.
    Best regards,
    Steffen

  • Upgrade of our 10.4.11 laptop to 10.5 is accomplished and we now need to upgrade Quicktime and iTunes; however, the user name and password is now not working after the upgrade to 10.5.

    Object is to sync address and calendar between laptop with Max OS 10.4.11 and iPhone. Upgrade of our 10.4.11 laptop to 10.5 is accomplished and we now need to upgrade Quicktime and iTunes; however, the user name and password for the laptop is now not working after the upgrade to 10.5., though it was working prior to the upgrade, for file sharing.

    @ BDAqua > I tried your suggestion but no luck. holding opt+command just gave me a blue screen and it rebotted, pushing the disk out of the drive. Yes, the macbook has 1 gb of ram. I realize that the min req. call for 2 gb of ram so i've got an order in for another dimm to put into the machine. Thanks for your suggestions.
    @ a_brody > Yes. The machine was plugged into a power source. The disk promts you to do that and i recall aspect this form other installs. Thanks for the reminder tho! ( btw your second post is like greek to me man!) 
    @ Kuncklesmac > You're right about Snow Leopard being an upgrade from Leopard. I'm aware of this. And yes previously i've been told by Apple that I needed the Box Set (not the family pack.  i am using the family pack for OS Snow Leopard) to upgrade my 10.4.11 mac - they never mentioned adding ram but i figured that out on my own and an apple specialist recommended it when i purchased Snow Leopard and confirmed that I coul duse the Snow Leopard to upgarde from Tiger (10.4.11). I've also read extensively (as i said above) that it isn't necessary (always) to buy the box set. Several 10.4.11 users report having upgraded using the Snow Leopard upgrade disk only (not the Box Set) without trouble on intel macs (also see the apple link i posted). So i'm just ondering how they did it and i cannot. 
    Thanks fo rall yor help!

  • Why would you allow firefox to update computer web-browsers if you have an idea that it will no longer work after the update? And why would you not include instructions for, how to fix the problem? Help Please! Can I go back to the old one?

    Why would you allow firefox to update computer web-browsers if you have an idea that it will no longer work after the update? And why would you not include instructions for, how to fix the problem? Help Please! Can I go back to the old one?
    Ron Bell
    [email protected]

    Mozilla, like many other software companies, thoroughly test their software before releasing it to the public and I'm sure that no problem you are having is intentional.
    I do not work for Mozilla but I do have experience of releasing software for public usage.
    Firefox has no way of knowing what other software is already on your computer and with millions of combinations it isn't always possible to test for every scenario.
    You can go back to the old version of Firefox but that won't always solve your problem.
    The web site below tells you how:
    https://support.mozilla.com/en-US/kb/Installing%20a%20previous%20version%20of%20Firefox

  • I have this message when i try to log onto my home pc "The User Profile Service, service failed the logon. User profile cannot be loaded." can I recover my music and photos from iCloud from another user account?

    I get this message when i try to log onto my home pc account "The user Profile Service, service failed the lofon. User profile cannot be loaded" can I recover my data from another/new user account from my iCloud account??

    "Jesse.soto1" wrote in message news:1e164fdf-7370-45c0-9bc7-3b58278121c3...
    Good Afternoon Everyone,
    I am not technologically savvy as a result I'm having trouble understanding previous posts on "The user profile service service failed to logon user profile cannot be loaded." Lingo on domain reset etc, not sure that this pertains to solving my  issue
    ... I cant even get pass the sign in page let alone make changes. I am having this issue with my Dell Studio XPS 1340 with Windows 7 Home Premium. If anyone can provide their two cents I would greatly appreciate.
    Very Respectfully,
    Jesse
    Home Premium cannot logon to a Domain, nor can it be set to try it.
    when you get the logon window, try hitting the three-finger salute )Ctrl+Alt+Del) twice – it may bring up the old-style login window – enter your credentials there.
    Noel Paton | Nil Carborundum Illegitemi |
    CrashFixPC | The Three-toed Sloth

  • Unable to see Active Directory Groups in the User Profile Database after Profile Import

    ***Major Update - I have finally been able to get the direct attention of the folks responsible for the User Profile Service on the SharePoint Product Team.  Long story short, they have reproduced the error and identified as an actual mistake
    that needs to be fixed, so it is now officially in the bug pipeline and will be fixed.  The current estimate is some time in the summer.  They will keep me updated with timeframes, which I am allowed to share as time goes on.
    SharePoint Server 2010 Enterprise RTM. W2K8R2 w/multi-server setup:
    AD/DNS
    SQL 2008
    WFE
    APP
    Claims Mode Web App only using Windows Integrated Auth
    So, this was never a problem in 2007, and I didn't even realize it was a problem in 2010 until I started to build a solution that utilized my blog article:
    InfoPath - User Roles in Browser-Enabled Forms Using AD Groups.  I went to utilize the same web method of the same web service, but I noticed that no data was showing up at all.  Typically,
    the GetUserMembership/GetCommonMembership methods return the specified user's memberships: AD Security Groups, AD Distribution Lists, and SharePoint Sites (not SharePoint Groups, though).
    My user profile sync is working.  All AD users are pulled in with the proper profile data.
    "Users and Groups" is selected in the Synchronization Entities section of my Sync Settings.
    Security groups are working for permissions and audience targeting.  Confirmed my users are affected properly by the use of Security Groups.
    My query to the GetUserMemberships web method (and GetCommonMemberships) is running (not failing), but it's not returning anything even though my user is in some Security Groups and has explicit membership to multiple sites.
    The GetUserProfileByName method of the same UserProfileService.asmx web service
    returns all the regular profile data like expected, so the web service works and my profile database is populated
    Basically, I'm not seeing my AD groups or any membership data populated in the profile database.  I did use MIISCLIENT.exe to see what I could find, and here is what I saw:
    Using the Metaverse Search, I searched for the "person" type and saw all of the users in my profile sync connection (single OU)
    Using the same tool, I searched for the "group" type and saw nothing, but the message said 4 items were retrieved
    I realized that the only column showing was displayName, and they were blank, so I added other columns to be sure
    objectGUID, objectType, distinguishedName all showed values, and I could now see all the Security Groups from the OU where I'm doing my profile sync
    My "person" objects all have displayNames showing but none of the groups do.  In SharePoint, the GetUserMemberships method relies on displayName and accountName, but neither are coming through the profile import
    So, it does seem like the groups are coming in with the profile import, but I can't see them.  I also can't verify that the groups are being associated with my users in the profile database, because doing a query to the membership methods returns nothing...not
    even blank rows.
    ***Edit:  New information!  Regular AD Distribution Lists _do_ work properly.  I just never bothered testing them until folks on my blog notified me.  DLs come through the profile sync, are visible in the profile database, and show up
    when using the GetUserMemberships method.
    ***Edit: Ok, now we're getting somewhere.  I checked my last profile sync with the MIISCLIENT, and this is what I found:
    Here are the properties of my Distribution List:
    Here are the properties of my Security Group:
    Notice that the groupType value of the DL is a normal integer (2), but the groupType value of the SG is some crazy negative number.  Both types are still lacking DisplayNames for some reason, but when I retrieve the DL via GetUserMemberships, it DOES
    show the proper DisplayName despite nothing showing in the MIISCLIENT.
    SharePoint Architect || Microsoft MVP ||
    My Blog

    Hello Clayton,
    I have same problem with SP 2010 and now I am testing SP 2013 and seems that the problem still.aa
    Probably I have some configuration problem, but all seems work, except this.
    SharePoint 2013 has no improvements on this. Until seeing this thread, I thought it was an issue within my farm configuration or AD Service account for User Profile Sync. And I've dug far and wide for any other possible settings which would prevent users
    from populating in the site people-picker. This might be flagged as off-topic, but I'll beg differ. How can I expect SharePoint to retrieve AD Users and Groups for accuracy in the sites which rely on this server??? Frustrating. I've spent hours and days on
    this! I have 3 SP2013 farms with multiple clients (different OU's/containers and security groups). Testing in a separate QA DEV farm with the same config. NO luck yet!
    This is where I'm at with it (posted this as a question recently on SharePoint Stack Exchange):
    "Help.... Please.... Users from AD groups are not populating in the site people picker. I've set up a SharePoint 2013 site collection permissions group with only AD groups in it, no users added directly. Whether or not I give this SharePoint group permissions
    to the site content, I still get none of the AD users showing up in the people picker. I have done the iisreset after adding the groups.
    I've checked all of the people picker properties in stsadm to be sure there are no constraints in effect on the web app or site collections.  User profiles are synching and I've tried both AD import and User Profile Sync.  The AD groups are security
    groups, though not email-enabled.  The AD service account has all the special permissions. My web app is claims based. My app pool runs with Network Service account.  No policies in place to restrict users, checked CA and the site collection settings.
    What am I missing? I've read in multiple places that this is a supported/working config. So why can't I get these users to populate in people picker for things like Assigned To in a tasks list, or attendees of an event? "
    There is some pretty good insight here, but no real hope:
    User profile
    synchronization: importing users and security groups in SharePoint 2010
    Other Properties that I checked, before realizing this was an issue with the Profile Import...
    stsadm -o getproperty -pn siteuseraccountdirectorypath -url https://URL
    stsadm -o getproperty -propertyname peoplepicker-activedirectorysearchtimeout -url https://URL
    stsadm -o getproperty -propertyname peoplepicker-distributionlistsearchdomains -url https://URL
    stsadm -o getproperty -propertyname peoplepicker-nowindowsaccountsfornonwindowsauthenticationmode -url https://URL
    stsadm -o getproperty -propertyname peoplepicker-onlysearchwithinsitecollection -url https://URL
    stsadm -o getproperty -propertyname peoplepicker-searchadcustomfilter -url https://URL
    stsadm -o getproperty -propertyname peoplepicker-searchadcustomquery -url https://URL
    stsadm -o getproperty -propertyname peoplepicker-searchadforests -url https://URL
    stsadm -o getproperty -propertyname peoplepicker-serviceaccountdirectorypaths -url https://URL
    Hope we find a better answer, as it IS very misleading. User Profile Import specifies Users, or Users and Groups. Nothing is said about Containers or Distribution Groups, worse yet there lacks any clear disclosure about how "Groups" will not
    actually import if they are a Global Security Group and the users contained within them exclusively will NOT be included in your profiles,
    nor in any compiled Audiences. Which was another BIG bummer!
    I'm hoping to see future improvements on the Group imports.

  • UPRE to replicate User Profiles and Managed Metadata to High Availability backup farm

    I'm working on a HA project, and have been tasked with replicating our User Profiles and Metadata to a newly created farm. I'll call the current production farm FarmA and the new HA farm FarmB. I've installed SharePoint2010AdministrationToolkit on FarmB,
    and used SPDiag to generate my first report on FarmB.
    We're not using MySites.
    I'm looking at
    http://technet.microsoft.com/en-us/library/jj891109(v=office.15).aspx and have some questions. Anything I do on FarmA will be done thought a Change Control, and I want to be able to answer questions intelligently.
    Does SharePoint2010AdministrationToolkit and UPRE have to be installed on FarmA and FarmB?
    Does enabling DTC create any security concern? Or performance hit? I haven't done this before.
    Any documented risks with using the replicator?
    Are scheduled replications typically 1 weekly full with nightly incrementals?
    Anything the replication won't copy over to FarmB? Like Synchronization Connections, or additional/custom fields?
    How are GUIDs handled?
    Sorry to pack 6 questions into one post ;)
    Thanks,
    Scott

    To answer the first question this is what MS says: The User Profile Replication Engine can be installed on any computer that has access to the source User Profile service application and destination User Profile service application. However, we recommend
    that you install the User Profile Replication Engine on a computer that is part of the source farm or on a computer that is connected to the subnet of the source domain. The User Profile Replication Engine uses the SharePoint Server 2010 User Profile and User
    Profile Change Log to read and write data between user profile stores. http://technet.microsoft.com/en-us/library/cc663011(v=office.15).aspx And to answer 4th question its true but full sync will only be required initially and only when there is org changes
    most of the time its incremental. To my knowledge FULL replication will bring all the details but not sure though.

  • Missing user profiles in mysites

    I have a question about missing user profiles in our Mysites. We have an SP2013 environment with a number of site collections and sub-sites and occasionally, we are finding that some users are missing their profile. If we click on their user name, in a link
    on a page or library, we are directed to a plain page with some very basic information, not our typical user profile page that looks more like SP2013 styling.
    Even though the profiles are missing, I find that it is easier to add them from PowerShell, through a script, than to go into the central admin and add them manually, however this brings up a question:
    Is there a quick and easy way to determine if a user has a profile?
    Currently, I run a script that cycles through each user of each group of each web of each site collection, and checks to see whether that account has a profile. The problem here is that this is a very time-consuming process and many accounts get checked
    more than twice if they exist in multiple groups. If the user does not have a profile, I create one.
    Is there a faster way to determine if a user has a valid profile, rather than running a check on each user every time? With thousands of users, this script will take a long time to run and create a higher than desired load on our server.

    In SharePoint 2003 and MOSS 2007 the user profile was created the first time a user accessed the site, but with 2010 that does
    not seem to be the case. It either needs to be created through synchronization, programmatically using the API or PowerShell, or it can be created when the user clicks the profile or mysite the first time
    If you want to auto-provision the MySites for a the missing users in your case you will need to do this with custom code as
    you said you are writing a power shell script more ever it is one time activity so that is good way as well.  You would iterate through the list of users and call either the API, web services, or stsadm if this is a command line script, to create the
    site collections.
    http://technet.microsoft.com/en-us/library/gg188041.aspx#noSync
    https://social.technet.microsoft.com/Forums/en-US/9f266cf6-0990-46e8-9004-bbbc8fe5e0e0/automatic-feature-activation-on-selfservice-site-creation?forum=sharepointdevelopmentlegacy
    Please get back if you have some specific issue related to migration, we would be happy to assist you.
    Krishana Kumar http://www.mosstechnet-kk.com
    Please mark the replies and Proposed as answer if they help and solve your issue

  • Search User Profiles without MySites

    We upgraded from 2007 to 2010 last year. In 2010 we did not set up a MySite web app or top level site collection. We did set up the User Profile Service and the profiles are syncing data from AD correctly. I have two issues that I would like help resolving.
    First, I would like to set up a search where we can search for people and get their profile information. I want to use this like a company directory. I don't want to use the site collection user list, I want the profile information instead because the site
    collection user list does not contain all of our users. If I don't have MySite, what do I set the crawl to?  Where are the profiles stored?
    Second, in a site collection, when we click on the name of the user under "created by" or "modified by", we get a page not found.  I'm not sure if that is supposed to link to the profile (which I think is person.aspx) or the site
    collection user (userdisp.aspx). 
    Are both of these issues caused by not having a MySite application set up?  Is there anyway to have and use profiles without having them in the MySite app and site collection?  I would like users to be able to modify their profile and we'd like
    to search them.  I'd also like those links under created/modified by to link to something.  I've read about 50 articles and books and can't find a definitive answer on needing/not needing MySite. Any help is much appreciated.
    Milissa Hartwell

    I was able to resolve my crawl issue. I set up a separate content type (not sure if a separate one was needed, but that's how I did it). The crawl was set for sps3://[myservername].  Once the crawl was complete, I was able to search for people in my
    search center.
    My userdisp and person.aspx are still not coming up.  When I click on a user in the site collection, I'm expecting to see their info in the userdisp.aspx page but I still get a page not found.  And after I search for people, if I hover over
    their name, the URL shows
    http://[myserver]/my/person.aspx?accountname=[accountname] but I also get a page not found.
    Does anyone know how to get userdisp and/or person.aspx to render?  I looked in my 14 hive on the server and the userdisp.aspx page does exist so I'm not sure why it won't come up at least.
    Also still wondering if users need a mySite to edit their Profile.
    Milissa Hartwell

  • How do I prevent "The user profile service service failed the log on" error messages?

    I work for an organization with approximately 60 staff members across ~80 Windows 7 Professional PCs. Users log in with Active Directory accounts.
    Approximately once per month, a random user will get an error message while attempting to log into their machine that says "The user profile service service failed the log on."  The solution to resolve this issue is here: http://support.microsoft.com/kb/947215?ppud=4&wa=wsignin1.0.
    The problem is that I want to PREVENT this issue from happening, as it is incredibly inconvenient for the user. I had one staff member board a 5-hour plane trip expecting to do work, and once she got in the air she logged in and
    received the error message and was unable to use her computer for the trip. I've had others locked out of their computer with deadlines to get things done, while I am at home off the clock. Editing the registry is not an easy fix, and so it's not something
    I can just post instructions for in a knowledgebase article.
    Does anyone know how to prevent this issue from occurring? I believe that it has something to do with a network-based startup script, or a service trying to connect to our file server, or the computer trying to connect to our ad server. All of these
    are blocked by firewalls (unless the user is off-site), and I suspect that the services may be timing out, causing the user profile service service failed the logon error message, but I can't seem to eliminate it, after nearly a year of trying.
    90% of the time this problem occurs when the user is off-site, but it has happened while the user is in the office too. Once the user gets this error message, the only way to resolve the problem is to log into their computer as a localadministrator account
    and perform the method #1 fix in the knowledgebase article.
    Thanks

    Have you checked the logged files in event viewer around the time when problem occurred?
    Is there any suspicious events like error or warning related to this issue.
    Try run Active Directory Best Practice Analyzer:
    http://technet.microsoft.com/en-us/library/dd759260.aspx

Maybe you are looking for

  • FIle path between iTunes and music files broken

    Somehow I've managed to lose the file path connecting my songs on an external hard drive with iTunes. I've checked the advanced aoptions to make sure that iTunes is pointing to F: (instead of C:) but no dice. Obviously I can go through and reconnect

  • Rollovers and layers

    I am trying to make a complicated rollover web image that started off as an Illustrator file, exported to Photoshop, and now open in Fireworks. The idea is to create rollover slices where the image states change simply by making various layers visibl

  • Transport managment, source system changed in import

    Hi all, i faced with the need to change the source system in transport management. I mean, dev source system to assign a different test system source. now is the following: InfoPackage ZPAK_4MSK400H4M9FGMEKV9ZGDSN4M, source system LGDCLNT300 changed

  • Skype keeps saying failed

    I try calling my boyfriend while we're both online and it keep saying failed doesn't show that were trying to call each other.

  • Cannot startX on Oracle database template

    Hello, I've downloaded Oracle Database 11.1.0.6 for x86_64 (64 bit) with Oracle Linux 5.2 and successfully imported it to Oracle VM But I cannot start X windows using startx, it showed that some drivers are not installed Please advice me on this case