Auth0 Home Blog Docs

iOS update user metadata

user-metadata
ios

#1

I am trying to use the iOS SDK to update user metadata. I can authenticate, get credentials, and get a profile. But when I try to update the user metadata I get a 401 error (Invalid Token). I am following the example from here: https://auth0.com/docs/quickstart/native/ios-swift/03-user-sessions#update-the-user-profile

Is this supported in newer accounts?


#2

Hi @andrew.fitzpatrick,

This is because for updating user information you need to interact with the management API, and the Auth0 Management APIv2 token is required to call the Auth0 Management API.

Learn more about how to get a Management APIv2 Token here

Hope this helps!