php-jira-rest-client icon indicating copy to clipboard operation
php-jira-rest-client copied to clipboard

Specified user does not exist or you do not have required permissions

Open skione opened this issue 4 years ago • 1 comments

This is if GDPR strict mode is enabled and for Cloud implementations it is. You need to replace using the username with accountId. I tested it with addUserToGroup and it worked.

Changed line 101 in Group/GroupService.php

from: $data = json_encode(['name' => $userName]);

to: $data = json_encode(['accountId' => $userName]);

However for any implementations the access username or name and have strict mode enabled this code doesn't work beyond authentication.

skione avatar Oct 26 '20 17:10 skione

hi @skione

thanks you your information.

i will be to rewrite this library for JIRA Cloud, and i don't forget your great suggestion at that time.

lesstif avatar Oct 30 '20 05:10 lesstif