Finding the currently logged in JSD user with AP.user.getCurrentUser fails

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

This works for me

1 Like