1

request query using JSOM for project server (ps.js) another user

I need request a query using another user, no my current user this is possible? I'm using JSOM with ps.js for project server 2013

Using CSOM (c#) I need only change my credentials in my context, like this

var c = new NetworkCredentials(user, pass);
context.Credentials = c;

but, on JSOM I don't see anything with this.

1 Answer 1

4

You can not impersonate or elevate using JSOM, instead you would need to call a CSOM service that can do the impersonation, fetches the information and then returns it.

1
  • Hi Robert, thanks for your answer. I solved my problem using CSOM.
    – flvrm92
    Commented May 25, 2017 at 17:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.