Forums

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

How can I add logged in user

M By October 2, 2020

This is my get api call that returns me the current logged in user

AJS.$.ajax({
url: "/rest/auth/latest/session",
type: 'GET',
contentType: 'application/json',
async: true,
success: function(data) {
user = data.name;

}
});

 I tried AJS.params.loggedInUser.How can I do that?

0 answers

Suggest an answer

Log in or Sign up to answer