Hi @kang ,
welcome to the Atlassian community!
Sometimes it happened also for me. If the users come from AD, you can try to setup again the AD integration on the User Directory side and disable the current one.
Hope this helps,
Fabio
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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.