The first requirement is that the person has view access to the Space, if that checks out, then just enter the username and press "Add" - it should add it, regardless of the suggestions.
Suggestions are unreliable in Confluence and the same question is asked quite often, best I can say is that a full re-index should push the indexes and the suggestions should start returning the user then.
Mhm I just realized that "Add" won't work without suggestions in page restrictions. So that would require DOM manipulation or http form post replication.
I've demoed this locally just to pass the time, but I don't recommend doing this since since it's kinda fiddly - the optimal approach would be to run a full Confluence re-index and then verifying if the user comes up in suggestions.
/rest/api/user?username=<username I want to add>
-- first getting the "userKey" value for the user
Then sending a POST like so:
curl 'https://<confluencebaseurl>/pages/setcontentpermissions.action' \
-u <myuser>:<mypassword> \
-H 'content-type: application/x-www-form-urlencoded; charset=UTF-8' \
-H 'X-Atlassian-Token: no-check' \
--data 'editPermissionsUserList=<userkey I want to add to edit permission>&contentId=<pageId I want to modify>'
This appears to append the user to the list.
For all intents and purposes, it's just a demo I tried if I could bypass suggestions locally, I still think you should do a re-index to confirm if it gets resolved.
Calling all collaborators! Appy Hours on the Atlassian Community is a monthly event where 4 Partner and app vendor presenters go head-to-head with 5-minute demos for the title of Best App Demo. I...