# Changing local user's name

**URL:** <https://devforum.zoom.us/t/changing-local-users-name/44765>\
**Category:** iOS\
**Created:** [March 3, 2021, 3:38pm UTC](https://devforum.zoom.us/t/changing-local-users-name/44765 "2021-03-03T15:38:52Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![brians](https://avatars.discourse-cdn.com/v4/letter/b/c6cbf5/32.png) [@brians](https://devforum.zoom.us/u/brians)\
**Post date:** [March 3, 2021, 3:38pm UTC](https://devforum.zoom.us/t/changing-local-users-name/44765/1 "2021-03-03T15:38:52Z")

</div>

I think there is a bug in changing the user’s name. I’m using this:

```
    if let z = ZoomInstantSDK.shareInstance(),
       let s = z.getSession(),
       let me = s.getMySelf() {

          let result = z.getUserHelper().changeName("mynewname", with:me)
          print("result is \(result)")
    }

```

This works fine if the user is the host, but for any other user it fails. (result = false)

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [March 3, 2021, 9:20pm UTC](https://devforum.zoom.us/t/changing-local-users-name/44765/2 "2021-03-03T21:20:59Z")

</div>

Hey @brians,

Thanks for using the dev forum! It is nice to see you again 🙂

As strange as this is, I believe this is intended behavior. To change a participant’s name (even your own) you have to be a host.

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![brians](https://avatars.discourse-cdn.com/v4/letter/b/c6cbf5/32.png) [@brians](https://devforum.zoom.us/u/brians)\
**Post date:** [March 4, 2021, 8:41am UTC](https://devforum.zoom.us/t/changing-local-users-name/44765/3 "2021-03-04T08:41:27Z")

</div>

Thanks Michael!

The docs may be incorrect then:

> A participant in the session has the privilege to view their own information as well as the information of other users, and change their own display name. ([https://marketplace.zoom.us/docs/sdk/custom/ios/essential/manage-user-information](https://marketplace.zoom.us/docs/sdk/custom/ios/essential/manage-user-information))

Too bad if that’s the case: we are basically packing a bunch of metadata into the user name as JSON so it includes various state information each users’s session – the idea was to relay state changes via this JSON to each user.

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [March 4, 2021, 8:19pm UTC](https://devforum.zoom.us/t/changing-local-users-name/44765/4 "2021-03-04T20:19:07Z")

</div>

Hey @brians

Ah, I see. Let me follow up with this to see if the docs or the SDK is wrong. Stay tuned 🙂

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [March 8, 2021, 7:23pm UTC](https://devforum.zoom.us/t/changing-local-users-name/44765/5 "2021-03-08T19:23:41Z")

</div>

Hey @brians,

Just confirmed with the team, the docs are incorrect. This behavior is by design currently.  
We will get the docs updated.

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [April 8, 2021, 5:24am UTC](https://devforum.zoom.us/t/changing-local-users-name/44765/6 "2021-04-08T05:24:37Z")

</div>

Closed on April 8, 2021, 5:24am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
