Hi just building a script to pull out an accountID and then use that to remove the user from a group, I'm no coder so ended up using toString for the response and then substring to get out the accountID, I'm happy with that so long as the accountID's are always 25 chars long?
Thanks in advance
Matt
No, the Atlassian Id is not always 25 characters, it can be up to 128 characters. You should use the find users rest end point to get the Atlassian Id instead of relying on substrings.
Hi Mikael,
I'm using:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yeah, the search will return the full information, but you should be able to get the account Id by looking for the value of accountId. If you use substring look for the value between "accountId: " and , "accountType". If you are using smart values in an automation you should be able to find it using {{webResponse.body.accountId}} if you are using a web request to get the user.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.