Viewing the api doc for particular role in drupal 8

Hello Drupal team,

I want to customize APIs doc permissions in drupal 8 apigee, so I can create roles and define which APIs doc will be visible for that role and what will be hidden from that role.

For instance, I have three roles:

  1. Development team.
  2. Quality Assurance team.
  3. 3rd party.

And there are 5 publicised APIs docs.

So for the Development team can see all APIs docs, QA team can see three of them and 3rd party can see one of that APIs docs.

Is there a way to apply this?

Thank you in advance.

Hi Leena

Please be advised that CERN is upgrading to Drupal 9.

This means that any documentation you have found for Drupal 8 is likely not applicable. Additionally, as Drupal 8 has reached end-of-life, we are unable to offer any support for new websites wanting to run Drupal 8. Indeed, the IT Security Team will likely insist that you run your website as a static website to avoid any security implications running an at-risk content management system.

With that said, are you sure Drupal is actually the right tool for the job? If you just wish to create API documentation, several teams across CERN utilise https://codimd.web.cern.ch/. Of course, if the permissions are necessary and not merely a matter of where you are sharing the content (e.g. do not link someone in A the documentation for B), working with Drupal is likely easier. In that case, I advise you to check the features available through https://www.drupal.org/project/openid_connect which has replaced SimpleSAMLphp.

Thanks!