Using Office 365 (SharePoint Online) I have stumbled into an annoying thing. Some parts of the JavaScript CSOM does not seem to be accessible when your browse the site anonymously. If Firstly I tried to add a list item to a list, I got a 500 (Internal Server Error) response from Client.svc.

And now I'm trying to use the status message (SP.UI.Status) but it is undefined. I've tried some of the SOD methods, like excuteFunc, without any luck.

Remind that all above works perfectly when logged and thus not being anonymously.

And I really don't know how to troubleshoot this issue.

How do I get the SP.UI.Status anonymously available and working?

  • Do you have a Ribbon when anonymous, or have you hidden it for anon users?
    – James Love
    Commented Oct 29, 2013 at 8:49
  • It's hidden, probably by "default". I'm using the Starter Master Page by Randy Drisgill, startermasterpages.codeplex.com.
    – Tim
    Commented Oct 29, 2013 at 14:31
  • Try showing it in anonymous to see if it works (what a user can do is restricted) - most of SP.UI is loaded via the ribbon stuff.
    – James Love
    Commented Oct 29, 2013 at 15:26
  • If it does work, then you can manually pull in the .js files that the ribbon loads to get your functionality back.
    – James Love
    Commented Oct 29, 2013 at 15:26
  • I figured it out without implicating the ribbon. Anyhow, thank you!
    – Tim
    Commented Nov 5, 2013 at 9:52

1 Answer 1


I have tried some more and got it working, I must have used the executeFunc falsely. Using the executeFunc as below makes SP.UI.Status available.

SP.SOD.executeFunc('sp.js', 'SP.UI.Status', statusLoaded); // Worked!

To me its a bit strange probably because of the naming conventions which are confusing. My intuitive try was something like this;

SP.SOD.executeFunc('sp.ui.js', 'SP.UI.Status', statusLoaded); // Did not work

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.