(SharePoint) Retrieving User Profile Properties

This isn't going to tell you or give you code examples.

This post is to give you the one piece of information that seems to be lacking in most posts on the subject. The following functions all have this issue.

 

Review: /en-us/sharepoint/dev/general-development/how-to-retrieve-user-profile-properties-by-using-the-javascript-object-model-in

There is an unknown requirement not detailed here or elsewhere.

You must have the "My Site Host" setup and you must have the URL to the "My Site Host" setup in UPS (User Profile Service). Else these functions will not work.

Hope this helps someone not waste time.