How to limit access to npm registry by scope

Hi everybody,
I am currently evaluating the nexus pro X features. I am looking for a possibility to limit the users access to a group by npm scope.
Is there a chance to implement my feature?

Thanks in advance.

Hi Ronny,
Yes, you can use Content Selectors to achieve that, for example you could create a content selector like format == "npm" and path =^ "/@my-scope/". to match everything within @my-scope.

Do be careful with content selectors as over-using them can cause performance issues. If it makes sense in your case, you might consider using separate repositories so that you can use repository-level permissions.

Thank you for you help. That worked for me!

1 Like