70-489 · Question #45
You need to ensure that employees can change their display name. Which object model should you use?
The correct answer is A. Use the server-side object model. Only the server-side object model exposes the full User Profile Service API needed to write user profile properties like display names in SharePoint.
Question
You need to ensure that employees can change their display name. Which object model should you use?
Options
- AUse the server-side object model.
- BUse a Representational State Transfer (REST) based service.
- CUse the JavaScript object model.
- DUse the .Net client-side object model.
How the community answered
(50 responses)- A94% (47)
- B4% (2)
- C2% (1)
Why each option
Only the server-side object model exposes the full User Profile Service API needed to write user profile properties like display names in SharePoint.
The server-side object model provides the UserProfileManager class in the Microsoft.Office.Server.UserProfiles namespace, which grants full read/write access to User Profile Service properties including display names. Client-side and REST approaches do not expose complete write access to core identity profile properties in all SharePoint versions.
REST-based services for SharePoint user profiles support limited write operations and do not reliably support updating core identity properties like display names across all SharePoint versions.
The JavaScript object model executes in the browser context and cannot directly write to User Profile Service properties such as display names.
The .NET client-side object model does not include APIs for modifying User Profile Service properties and cannot update display names stored in the profile store.
Concept tested: SharePoint server-side object model for user profiles
Source: https://learn.microsoft.com/en-us/sharepoint/dev/general-development/user-profile-service-application-social-and-collaboration-features-in-sharepoint
Topics
Community Discussion
No community discussion yet for this question.