As of April 12th, you must go to Progress SupportLink to create new support cases or to access existing cases. Please, bookmark the SupportLink URL and use the new portal to contact the support team.
which isn't true since I can clearly see the user in the Kinvey console. I can update the data before I set the ID and Username, but just not after. Is there another way to update a users username and password?
You can use an update method to reset the password, instead, call the `resetPassword(...)` method on the user object. This requires the user to have an email registered, and will send a password change email to their address.
Check this out for the blocking method: http://devcenter.kinvey.com/android/reference/api/java/reference/com/kinvey/java/User.html#resetPasswordBlocking(java.lang.String)
and the async one: http://devcenter.kinvey.com/android/reference/api/reference/com/kinvey/android/AbstractAsyncUser.html#resetPassword(java.lang.String, com.kinvey.android.callback.KinveyUserManagementCallback)
As for updating the _id field, is there another solution for the problem? The _id field shouldn't really be changing one an entity has been created, it is an internal identifier that is meant to be final throughout the lifetime of the entity. What do you need to update the id for?
And updating the Username, you should just be able to do a put with the new value in the `username`field. I think this isn't working because the _id is new as well, and to create a new user (with a new id), you would have to use the login method.
Another less than ideal solution is to create a completely new user with the new _id. and then remove the old user. Note this will require a logout and re-login on the client side.
E
Ebrahim Behbahani
said
over 9 years ago
I apologize. Here is what I get when using get:
request
GET https://baas.kinvey.com/user/kid_VVohczrlXM/111111 HTTP/1.1
"description": "This user does not exist for this app backend",
"debug": ""
}
This error seems a bit odd though. It is saying that there is no user with that ID, but that should be good since I am trying to switch the users ID to that value.
E
Edward
said
over 9 years ago
if you go here: https://console.kinvey.com/addons/users there is a column on the far left `_id` -- the request that fails is trying to do a PUT to a user with the _id of `111111`-- so that `_id` field is what I'm referring too.
As for the API console test-- do a GET and a PUT on the user collection, not an appdata one-- Click on `user` on the left first, and make sure that the url looks like this : /user/kid_1234/111111
E
Ebrahim Behbahani
said
over 9 years ago
Hey Ed,
We login the user via Facebook. Which ID are you referring to? The one I am trying to change the users ID to?
After I add the /11111, this is what I get with 'get':
GET https://baas.kinvey.com/appdata/kid_VVohczrlXM/111111 HTTP/1.1
How did you authenticate this request? When you login with the client, are you using the master secret, the app secret, or a user's credentials?
Can you also try doing a retrieve user request with that id?
Go here: https://console.kinvey.com/addons/api-console
and then on the left side of the screen click on 'Users", and add a `/111111` to the end of the URL in the edit text next to `GET` at the top of the screen. Also, after adding the `/111111`, try changing GET to PUT. The api console uses the master secret for all requests, so if you cannot put or get there something else might going on that is not related to credentials.
E
Ebrahim Behbahani
said
over 9 years ago
Here is the full error:
Jan 07, 2014 9:23:51 PM com.google.api.client.http.HttpRequest execute
CONFIG: -------------- REQUEST --------------
PUT https://baas.kinvey.com/user/kid_VVohczrlXM/111111
Accept-Encoding: gzip
Authorization:
Content-Type: application/json; charset=UTF-8
User-Agent: android-kinvey-http/2.6.11
x-kinvey-api-version: 3
x-kinvey-device-information: JAVA/1.7.0_45
Content-Type: application/json; charset=UTF-8
Content-Length: 8673
Jan 07, 2014 9:23:51 PM com.google.api.client.http.HttpRequest execute
Jan 07, 2014 9:23:52 PM com.google.api.client.util.LoggingByteArrayOutputStream close
CONFIG: Total: 97 bytes
Jan 07, 2014 9:23:52 PM com.google.api.client.util.LoggingByteArrayOutputStream close
CONFIG: {"error":"UserNotFound","description":"This user does not exist for this app backend","debug":""}
E
Edward
said
over 9 years ago
Hey, I'm going to need some more information to figure out what the problem might be.
Have you had a chance to get debug logging working? It's slightly involved so let me know if you have any issues. I ended up having to hardcode the path to the project in the vm args.
Ebrahim Behbahani
com.kinvey.java.core.KinveyJsonResponseException: UserNotFound
This user does not exist for this app backend
which isn't true since I can clearly see the user in the Kinvey console. I can update the data before I set the ID and Username, but just not after. Is there another way to update a users username and password?