> ## Documentation Index
> Fetch the complete documentation index at: https://docs.leen.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Wiz Instructions

> Instructions on how to generate credentials for Wiz and the required permissions.

For Leen to authenticate with Wiz, we require the following:

1. **Base URL**: API endpoint URL of the format `https://api.<TENANT_DATA_CENTER>.<ENVIRONMENT>`
2. **Client ID**: OAuth2 based Client ID.
3. **Client Secret**: Oauth2 based Client Secret.

### Steps to obtain Wiz Base URL

1. Navigate to your user profile and copy the API Endpoint URL.

### Steps to obtain Client ID and Client Secret:

1. In the Wiz dashboard Navigate to Settings > Service Accounts.
2. Click Add Service Account.
3. Name the new service account, for example: Leen Integration.
4. If you desire, narrow the scope of this service account to specific projects.
5. Select the below permissions and click Add Service Account.

* `read:resources`
* `read:issues`
* `read:vulnerabilities`

6. Copy the Client ID and Client Secret.
   <Warning>Record your client secret somewhere safe. After the credential window is closed, the secret is no longer visible.</Warning>
   <img src="https://mintcdn.com/leen/v5iddL0dhlngJwjt/images/wiz/wiz-service-account.png?fit=max&auto=format&n=v5iddL0dhlngJwjt&q=85&s=b648593ea57a612697c58eb19d8a4507" alt="" width="2764" height="798" data-path="images/wiz/wiz-service-account.png" />
