nerdexam
Microsoft

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.

Design and develop advanced Microsoft SharePoint 2013 solutions

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)
  • A
    94% (47)
  • B
    4% (2)
  • C
    2% (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.

AUse the server-side object model.Correct

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.

BUse a Representational State Transfer (REST) based service.

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.

CUse the JavaScript object model.

The JavaScript object model executes in the browser context and cannot directly write to User Profile Service properties such as display names.

DUse the .Net client-side object model.

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

#user profile#display name#server-side object model#object model selection

Community Discussion

No community discussion yet for this question.

Full 70-489 Practice