image for site

Set user identity in Zendesk for iOS

Learn how to set user identity in Zendesk for iOS using Swift or Objective-C.

What is the code to set user identity in Zendesk for iOS?

To set user identity in Zendesk for iOS, you can use either Swift or Objective-C.

In Swift, create an anonymous identity with the user's name and email, then set it usingZendesk.instance?.setIdentity(identity). In Objective-C, initialize aZDKObjCAnonymousobject with the user's name and email, and set it with[[ZDKZendesk instance] setIdentity:userIdentity]. This will replace the default 'Mobile App User' name with the specified details.


More related questions

Why are all my end-users labeled as 'Mobile App User' in Zendesk?

If your end-users are all labeled as 'Mobile App User', it's because they originate from your SDK integration. This is the default name assigned to users coming through the SDK. To personalize these user names, your developers need to set the…

How can I change the default 'Mobile App User' name in Zendesk?

To change the default 'Mobile App User' name, developers need to set the identity for users in the SDK. This involves adding user details like name or email using the SDK's identity creation methods. For iOS, you can use Swift or Objective-C code,…

How do I set user identity in Zendesk for Android?

To set user identity in Zendesk for Android, use theAnonymousIdentity.Builder. Create an identity with the user's name and email using the builder pattern, then set it withZendeskConfig.INSTANCE.setIdentity(identity). This allows you to…

What should I know about updating anonymous identities in Zendesk SDKs?

When updating anonymous identities in Zendesk SDKs, it's important to understand their lifecycle. Anonymous identities are temporary and can be updated with new information like name or email. However, it's crucial to review the article on how…

Interested indeflectingover 70% of your Zendesk support tickets?

Our AI customer support agent is here to help. Trained on all your help docs, installed directly into your Zendesk account, it can be used to automate customer replies for tickets or live chat. Learn more below.
Zendesk logo

Zendesk Support Tickets

Receive new tickets by email or a support form? This integration is for you.
My AskAI integrated within Zendesk to deflect support tickets
Learn about our Zendesk ticket integration
Zendesk logo

Zendesk Messaging (live chat)

Using Zendesk's Messaging widget on your site for live chat? This integration is for you.
My AskAI integrated within Zendesk to deflect customer support live chat conversations
Learn about our Zendesk Messaging integration

Join1,000+ companies reducing their support costs and freeing up support agents for more important work

Vestd company logo — Customer of My AskAI's AI customer support agents
Genesis company logo — Customer of My AskAI's AI customer support agents
Zinc company logo — Customer of My AskAI's AI customer support agents
Customer.io company logo — Customer of My AskAI's AI customer support agents
Zeffy company logo — Customer of My AskAI's AI customer support agents
NHS company logo — Customer of My AskAI's AI customer support agents
Kontakt.io company logo — Customer of My AskAI's AI customer support agents

Reduce support costs.Spend more time on customer success.

Our AI customer support agents are already used by 👇
Companies using AI assistants on their websites