Hi,
I am trying to create a Confluence Page using REST API and mention some existing users. Do do this I am using this macro:
<ac:link>
<ri:user ri:userkey="123456789"/>
</ac:link>
It works perfectly, but I can only get my userkey. To get others I need to ask each one particularly or query database for which I don't have access.
I tried something like this:
<ac:link>
<ri:user ri:user="user"/>
</ac:link>
but I got:
{"statusCode":500,"data":{"authorized":false,"valid":true,"errors":[],"successful":false},"message":"java.lang.RuntimeException: com.atlassian.confluence.content.render.xhtml.XhtmlException: com.atlassian.confluence.content.render.xhtml.XhtmlException: Missing required attribute: {http://atlassian.com/resource/identifier}username"}
500
Is there a way to mention a Confluence user using Rest API with only the user name (not user-key)?
Thanks.