Restricted Documentation

Not applicable

@Anil Sagar

I have a swagger json and i created a new smart docs model and uploaded the swagger json .

So the documentation is ready . I can see this documentation even without logging in into developer portal .

Can i restrict the documentation based on a logged in user ?

0 2 142
2 REPLIES 2

Hello @Arpit Sharma

One approach is to

1) login to Dev Portal as an administrator

2) click People > Permissions

3) Uncheck the box "View published content" for the anonymous user

3136-screen-shot-2016-07-08-at-75323-pm.png

4) Save your settings

When you logout of Dev Portal your screen should look similar to the one below. The anonymous user will not be able to view the APIs.

3137-screen-shot-2016-07-08-at-75421-pm.png

If you login then you can see the other menu items.

3138-screen-shot-2016-07-08-at-75814-pm.png

@swilliams , Approach mentioned in below answer will not work, It will revoke access to all the pages in developer portal including blogs / faqs / forums / static pages access to anonymous users. @Arpit Sharma , See the article here by @Chris Novak that exactly explains how to do same using content access module.