Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

how to post comment using confluence rest api with jwt act as user

wengang.wan
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 8, 2019

jwt like this

{
    "iss": "xxxxx",
    "iat": 1300819370,
    "exp": 1300819380,
    "qsh": "8063ff4ca1e41df7bc90c8ab6d0f6207d491cf6dad7c66ea797b4614b71922e9",
    "sub": "mia",
    "context": {
        "user": {
            "accountId": "5ad84a85b783d22b5dae9c34",
            "userKey": "mia",
            "username": "mkrystof",
            "displayName": "Mia Krystof"
        }
    }
}
comment has added success, but the comment of user is not zhe jwt's user,it is app user. how can i comment as a normal user?

1 answer

0 votes
Stephen Sifers
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 13, 2019

Hello Wengang and welcome to the Community!

To understand more about what you’re wanting to accomplish, we need to ask for a bit more clarification on what you’re attempting to do.

Are you wanting to comment on a page within Confluence on behalf of another user while using the REST API? If so, which endpoint are you attempting to use?

We look forward to hearing back so we may assist within finding a solution for you.

Regards,
Stephen Sifers

wengang.wan
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 13, 2019

thanks,I have solved this problem.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events