question

max avatar image
max asked

Change User display name via Server API / Cloud Script

I would like to apply some logic to setting the player display name. Therefore I'm using my own field in player read only data for the player name and I'm setting it via Cloud Script.

For additional convenience in the Game Manager, I'd like to also set the default PlayFab Display Name (even though I never display that in the game, only the one from read only data).

It seems like the "UpdateUserTitleDisplayName" - function is only available in the Client and the Admin API, but not the Server API.

How can I change the player name via Server API?

CloudScript
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

brendan avatar image
brendan answered

At the moment, you're right - it's Client and Admin only (Client, to let the player change it from the game, and Admin, to let you build player management tools as needed). We simply hadn't been asked about having it in the Server API to date - I'll open a work item to get that added.

10 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Daniel avatar image Daniel commented ·

Hi there, it's been a while. How about now? :) Is there any way I could change display name from server?

1 Like 1 ·
Andy avatar image Andy ♦♦ Daniel commented ·

As part of our work to move toward the newer entity APIs, you will get the ability to update Display Names via Cloud Script. I can't provide a concrete timeline, but it's work that's currently in progress.

0 Likes 0 ·
rainerlonau avatar image rainerlonau Andy ♦♦ commented ·

Is it possible now to update the display name via Cloudscript?

Thanks

0 Likes 0 ·
Chris Moore avatar image Chris Moore commented ·

Almost 2 years since an update on this. Anything to share?

1 Like 1 ·
brendan avatar image brendan Chris Moore commented ·

Because there's no such thing as a trivial change (all code changes require ether a full testing suite, or an update to any tests to validate behavior, as well as a code review), all work must be scheduled based on priority. Those priorities are driven by the strategic needs of the platform plus the feedback we have from developers. For developer requests, the priority is principally a factor of how many developers we've heard the request from. Since we've had very few requests for this to date, it isn't work we've been able to schedule. If you haven't already, I would recommend hitting "like" on the feature request for this: https://community.playfab.com/idea/37301/change-user-display-name-via-server-api-cloud-scri-1.html

1 Like 1 ·
max avatar image max commented ·

Cool, thanks. Could you post here again, so I get a notification and can start using it? ;)

0 Likes 0 ·
brendan avatar image brendan max commented ·

Yes, we add the forum post link to the internal tracking for each work item, so that we can easily post back to the thread when there's an update.

2 Likes 2 ·
max avatar image max brendan commented ·

Awesome :)

0 Likes 0 ·
Wladyslaw Jewloszewicz avatar image Wladyslaw Jewloszewicz commented ·

2 more years have passed, is it already possible to change the display name through cloud script?

0 Likes 0 ·
Tamer Nasser avatar image Tamer Nasser commented ·

I think its forgotten in the bottom of your backlog so here I am asking about it if its possible to be added

0 Likes 0 ·
Nazariy Tymkiv avatar image
Nazariy Tymkiv answered

OMG, still waiting for changing nickname in cloud script for 6 years now

1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Koray Birand avatar image Koray Birand commented ·

Yeah, still waiting.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.