0

What is requirements to access the _spPageContextInfo object from a blank .aspx page or .html in SharePoint Online?

I have a document library with a blank aspx-page and in that page I would like to access userId and some url's

So basically the online version of this previous question

1

Did you try to use the same code from the other question you mentioned?

You can use the REST api(or JSOM) to get the user id and pretty much anything you are looking for.

/_api/Web/CurrentUser?$select=Id

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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