Contents
User properties and user profile properties provide information about SharePoint users, such as display name, email, title, and other business and personal information. In client-side APIs, you access these properties from the PersonProperties object and its UserProfileProperties property.
To add, edit, or delete an audience or an audience rule, go to the Manage Audiences page: Sign in to https://admin.microsoft.com as a global or SharePoint admin. In the left pane, under Admin centers, select SharePoint. In the left pane, select User profiles. Under People, select Manage Audiences.
What are the properties of the user profile?
The UserProfileProperties property contains all user profile properties, but the PersonProperties object contains commonly used properties (such as AccountName , DisplayName , and Email ) that are easier to access.
How are user profiles managed in Microsoft 365?
In Microsoft 365, identity is managed by Azure Active Directory. For info about this, see Understanding Microsoft 365 identity and Azure Active Directory. SharePoint receives this profile information as described in About user profile synchronization.
Instead you will have to use the user information list to get this information. This will require two requets: one to get the current user’s id, the second to get the user’s info that you want. Since you’re doing this from an app, you might have to make some changes (not sure if the app web will contain the User Info List).
How to get current user properties in JSOM?
Use SP.UserProfiles.PeopleManager.getMyProperties to load user properties for the current user in JSOM, for example:
How to get user information from Sp Foundation?
SP Foundation does not include the User Profile Service, as @Aveenav noted. Therefore you probably do not have access to the REST endpoints for that service. Instead you will have to use the user information list to get this information.