Sorry for late reply. We had to roll over that feature to the next sprint of our project. First link tells me about limitations and that I can get management API token to update logged in users details. This is possible, right?
If so, can you please guide me into depth of it as to where am I making mistake?
This is only partially correct. You can update the current user’s user_metadata, which is an object that is specifically designed for the user to have control over.
You cannot update things like email, password, and other parts of the user’s profile with management API tokens for SPAs.
With that said, we still don’t recommend requesting them in SPAs. You should do this from your backend.
One last question: Currently, we have a backend API to update user profile data and to create new users. Everything is working fine but Management API is taking too long to respond. It is taking 4-5 seconds to get response.
Could you please let us know anyway to optimise it or if we are doing anything wrong?
hi @dan.woda, we are using Get Users, update user and create user end point. We’re using the Java Client to connect to the Auth0 Management API.
First, we generate a management Api token which takes around 1-3 seconds and then call the above APIs which take average response time of 3-4 seconds each.
We’re not able to find any reason.
PS - We hardly have 10-15 users and we don’t even retrieve all of them at once(apply a filter on user_metadata field)