Skip to main content

AD_4nXd_PJIp7_1L-RuVRN0H9U90uNgu6iXSVd-pWr-FugGvLKUGw2j421IOXKNj_RymfDPx7mlJ0uwmcUL4NiKz0U9Qu7Uq6zEkxC1AL0-fmb8gWj9qhy_i7mz-ufuXb6uYuQtBAs0n8uTx2ZVmwdad4g?key=bB-kPDa084ptvr2I7XOMHQ

Netskope Global Technical Success (GTS)

KB -  How does API V2 work with RBAC V3?

Netskope Cloud Version - 128

 

Objective

Understand how to create the  API's V2 in the new RBAC V3.

 

Prerequisite

RBVAC V3 Enabled

 

The RBAC V3 service is not enabled by default in tenants upon release. It is being rolled out progressively.

 

Context

In this knowledge base article, we'll understand how to create API V2 endpoints and tokens in the new RBAC V3.

 

Do You Know?

 

Netskope has introduced a new Role-Based Access Control (RBAC) model called RBAC V3, designed to provide greater flexibility and granularity in how administrative roles are assigned and managed.

Here are some key highlights:

  • Custom Roles: You can now create roles tailored to specific job functions by selecting from a wide list of permissions grouped by feature.
     
  • Scoped Access: RBAC V3 supports scoped roles, meaning you can assign roles that apply only to specific organizational units (OUs), locations, or user groups.
     
  • Predefined Roles: Netskope provides predefined roles such as Tenant Admin, Security Admin, and Read-Only Admin, which can be assigned as-is or used as templates for custom roles.
     
  • API Support: RBAC V3 works seamlessly with API V2, ensuring that users with scoped permissions only see and act on resources they're authorized for, even when using APIs

How to create API V2 on RBAC V3?

The first significant change in RBAC V3 is that the API v2 section will no longer be used to create endpoints or generate tokens. This section will only contain the API v2 documentation and the endpoints that were created prior to the migration to RBAC V3.

 

**Note:** Please keep in mind that previously created endpoints will not be affected and will continue to function normally until their expiration date. Those existing endpoints cannot be extended or reissued—you can only edit, revoke, or delete the token.

 

With that said, we will now go over how to create new endpoints and obtain the token.

 

AD_4nXe8rcnP9dgE5RRrgDP84dFRjz7EtcFvLDDDnZXZajU6GVLQC4Z3_j-I-NWceqWT-_Un1Pj_fXKtkjfc8Gi5jN7nhJ-erfPpYJUuO952O6uHEps9xVnE26Ndd_JpclS5nsRLPyBNEbjJbduAC53J1a8?key=bB-kPDa084ptvr2I7XOMHQ

We need to navigate to Settings > Administration > Administrators & Roles > Roles and create a New Role.

Note: In RBAC V3, roles define which endpoints we can use. For example, in this case, we are going to create a role that allows a SCIM integration.

AD_4nXdkPx4qt3eP9jo9iyvZRNo73YR_h-EZ4W1Z3UXc_tY6ns_rrALZBzFVrgGKiIPY54xWJ1HnAnxEv619E1xDmgDsU4RFgrkBpvJVzupXi_MWekUHN9QQpz5g05Dx-MHY7_eQwBQMhavl_7nfXlrpN54?key=bB-kPDa084ptvr2I7XOMHQ


 

When creating the role, we add a name—in this case, we’ll call it SCIM API. We also add a description for the role to provide more details about its purpose.

Then, we select the Administration section to display all available administrator permissions.

 

AD_4nXcyDsikBj2Vp5RoqvI87HKZlf8TBeemLG-yPb5CJ5Npnis0Wnpp68nresr51ACc0mYQuWw1vK0drgkvLbkzlWUS2nG1Pe_OxkuDNyIs911C29J-xnFO01Vvs95vopmE7FhIziHLzV0Rcg5I6rUPE-Y?key=bB-kPDa084ptvr2I7XOMHQ

We proceed to mark all unnecessary permissions as None, leaving only Manage Users & Groups enabled for this role.

If you hover over the information icon to the right of the permission, you can see the specific endpoints included under that permission—such as the READ and WRITE endpoints for users and groups, which are the ones we need. Click save.


 

AD_4nXfhLz7bUn1X8be3n7EJzALbGYtmXpQMJllLaWbYuPXChuOtp2YOYwYKi_pkyQSmr2_o6PYUJBKpHzT7HKlycFfte3fAdA_kbofoGW7X7N3q5jZm4Uz9Rjf39c4WwnqLphm8xmiOEqZ2dPDRazh0WCc?key=bB-kPDa084ptvr2I7XOMHQ

 

Now go to the Administrators section and click on Service Account.

 

AD_4nXeTgSMmUJsdQ1nPzImwV3NJKhE989pqxABBPFJvcBL1s6XlmPe1YrLo9Hxz3DjrvdAx7uEk03lN8pDOrHzmix7pEYxks6l5r8ztu7V2KQquKkziDsfy6gKbSEot9MIOciehCmRNaX2Oa-3gTRbpqek?key=bB-kPDa084ptvr2I7XOMHQ

 

Add the Service Account Name, select the role we created earlier, and in this section, you can define the duration of the token, which can be set to hours, days, weeks, or months.

You can also choose to generate the token later.


 

AD_4nXfXKFKKYWAWiyC9pnS1OfhbrpfAojLmNb3ApYWrzFiV-k7qqWxfYcljxef7h_y-CrXFQRfDCBzui9QMML8ZlLWcsCS2tkOCUDnPSFLLgeOnxViJP9WcL0HeexRtQY6MiySC1B8htLFWMpmwolPWwig?key=bB-kPDa084ptvr2I7XOMHQ

After creating the service account, a popup will appear allowing you to copy your token.

AD_4nXdMi147KFMbxKlhM0pRlvQLVTyIXNQjlJzwOTzWIBABe0RVK2SQeRLCXmFOmiEwE0agJRTY-MOSiSz2BE3gH1rdvVRKtdUglcb1Z_3ZJQCdirfKRJ5YTbi4epFVRpiu0NJT47FKAW-hyn5gTYKTiv8?key=bB-kPDa084ptvr2I7XOMHQ


 

We will be able to view our created service account directly in the Administrators section, and we can perform certain actions such as: edit, disable, regenerate, change expiration, or revoke.


 

AD_4nXevLEZu6dDVTX4oZMqkuex-WpTRN3lfPRAEI0TId-E0kLh9Uon49yNMYF9IeW18mV5rlV6h9MgsvgWvMT1wKEA1Z2Z6DBjDA8g07YSgiOffkEcyZ4k3sb89Jpp1vt_jT0tJ0AI269k-2d_GDQ5i2g?key=bB-kPDa084ptvr2I7XOMHQ

Now the service account is created with the assigned role, ready to perform your SCIM integration.

 

IMPORTANT: Netskope Migration from RBACv2 to RBACv3

 

As part of the migration from RBACv2 to RBACv3 currently being implemented across Netskope tenants, we are providing additional reference material.

The following illustrative video offers deeper insights into the use of REST API v2 tokens with RBACv3. This content is meant to serve as complementary information after the migration process has been completed.

 Please refer to the video for further details.

 

Terms and Conditions

  • All documented information undergoes testing and verification to ensure accuracy.
  • In the future, it is possible that the application's functionality may be altered by the vendor. If any such changes are brought to our attention, we will promptly update the documentation to reflect them.

Notes

  • This article is authored by Netskope Global Technical Success (GTS).
  • For any further inquiries related to this article, please contact Netskope GTS by submitting a support case with 'Case Type – How To Questions'.

 

Be the first to reply!