This repository was archived by the owner on Jan 18, 2021. It is now read-only.
This repository was archived by the owner on Jan 18, 2021. It is now read-only.
sprLib.user(options).profile() using "post" ? #30
Closed
Description
Hello,
I run below query but I saw it is a "POST" action and I got error:
"error":{"code":"-2130575251, Microsoft.SharePoint.SPException","message":{"lang":"en-US","value":"The security validation for this page is invalid and might be corrupted. Please use your web browser's Back button to try your operation again."}}}
I tried to add the digest token but it did not work.
I used this API before but I used the "GET" Method and it worked for me.
//////////////////////////////
sprLib.user({
baseUrl: 'https://xxxx.sharepoint.com/teams/StrategyandPOA',
email: 'gui-zhong.qin@xxx.com',
}).profile().then(function (objUser) {
console.log(objUser)
});