1

When I attempt to go to 'https:// -site- /_layouts/15/AppRegNew.aspx' in order to enter OAuth info for my REST based service, I get the message

"Sorry, you don't have access to this page."

where -site- is: sub.company.com/marketing/more/another/ which is the valid URL for the SharePoint site, and I can access this.

The SharePoint Admin says I have full rights to the AppRegNew page. The Admin also gets the same message when she tries to go there. Is there something that needs to be installed to allow this?

Backgroud: I am writing a REST service in Node.js (JavaScript) on a remote server to pull information from a SharePoint site. Note this is not JavaScript inside a browser. My company has their own SharePoint 2013 installed on a server.

I can use REST endpoints to view xml output when I enter it in a browser. However, when I write the code to call the REST service, I get the error back "Access Denied". It is my understanding I need to get an OAuth token via the process documented here: http://spshell.blogspot.com/2015/03/sharepoint-online-o365-oauth.html.

Which is what I am trying to do, but I can't even get to the registration of a new service. Maybe I am going about this the wrong way, if so, could you kindly point me in the correct direction?

1

I had this same issue. I could not get to AppRegNew.aspx even though I was a farm administrator. I would get the same error, Sorry, you don't have access to this page. I could hit the web service endpoints in a web browser but not via javascript.

I finally fixed my issue by doing the following:

  1. Go to Central Admin

  2. Click "Security" on the left hand Navigation.

  3. Click Specify web application user policy enter image description here

  4. Click Add Users on the top left of the content section

  5. Make sure the correct Web Application is selected that you are targetting and All Zones is selected in the "Select the Zone" drop down. Click Next button.

  6. Add your User to the Users Box and select Full Control and Finish button. enter image description here

Hopefully this works for you, it took me forever to get mine working.

  • I am not sure how to get to Central Admin, but the good news is after a week and a half of the IT dept saying I had rights, they did something different (did not tell me what it was), and I'm able to get to the page! Now, I'm having an impossible time trying to use the AppID and AppSecret to authenticate from my service. I follow instructions like: spshell.blogspot.com/2015/03/sharepoint-online-o365-oauth.html but on step #3 after I trust the add-in I get redirected with an error "The Azure Access Control service is unavailable" in the url. Any ideas? Thanks. – PaulPerry Jul 19 '17 at 22:05
  • Sorry I don't know the answer to that one. The error seems to indicate a service isn't running etc. But if you search that error you find a few people talking about certificates not being set up correctly or other security issues. If you figure it out, please post the answer here. – cmartin Jul 20 '17 at 10:58
  • It appears that Central Admin can be accessed this way: "On the server that is running SharePoint Products, click Start, point to Administrative Tools, and then click SharePoint Central Administration." I don't have access to the server. I will mark this as answered, although I was unable to confirm, but in the hopes it will help the next individual in need. Thanks cmartin. – PaulPerry Jul 20 '17 at 16:22

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.