Is there a way to protect certain NetlifyCMS posts by using Netlify Identity?

I want certain posts (much like the ‘/admin’ that makes NetlifyCMS work) to be only available to logged in users. Is there a way to use Netlify Identity for this use case?

The scenario I am thinking of, an authenticated user to NetlifyCMS creates some posts. They and another group of users should be able to view these posts but the public can’t. All the public will see is a login prompt. The non-admin users would be able to login to get to the protected posts but they would not be able to create posts via NetlifyCMS.

Sure, that is possible using Identity and JWT’s. This blog post shows how to go about it:

Be aware that JWT’s are only available at the enterprise pricing level (cf Netlify Pricing and Plans) before you start experimenting! They won’t work at all on Free/Pro accounts.