Hey there,
maybe I’m searching wrong, but I couldn’t get a valid answer regarding the following topic since yet.
The current REST entry point for the user picker currently supports the (deprecated) user key as a valid input in the query parameter. With the upcoming GDPR changed, this key will be removed and replaced through the account id, which is already defined in the response of this entry point.
while being able to search for all the stuff (name, mail address, and userkey), I’m unable to search for an existing account id. For preselecting user picker fields, it would be cool, if the entry point could support the account id as valid input for the query parameter.
I assume you’re referring to Find users for picker REST API. Upon checking, I can use account ID as input to query query parameter like this /rest/api/3/user/picker?query=557058:945942a9-387e-4676-85a9-7925ca0487c9.
Per a recent update from Jira, you will no longer be able to update fields based on name. Account ID must be used. This change broke many of my scripts.
If you are looking to do this programmatically, you will need to perform a get based on name. I suggest creating a function (that is what I did) for grabbing account ID based on name.
Just replace the markers: DOMAIN and USERNAMEHERE with your domain and username you are searching for, it should return an object with the attribute “accountId” that you want.