AP.request('/rest/api/2/myself')
.then(data => {
current_user = JSON.parse(data.body);
})
This works for me
AP.request('/rest/api/2/myself')
.then(data => {
current_user = JSON.parse(data.body);
})
This works for me