Get the author display name

From this: https://developer.atlassian.com/cloud/confluence/jsapi/user/

we should only use user.atlassianAccountId which returns a long ID but what if I want to display the user’s displayname?

I just want to capture who is editing the document to create some history table in my macro

@shao.tat, use the REST API GET /wiki/rest/api/user/current.