--- title: "Obtain a Personal Access Token" slug: "obtain-a-personal-access-token" updated: 2026-10-23T02:58:31Z published: 2026-10-23T02:58:31Z canonical: "docs.crossworkassurance.cisco.com/obtain-a-personal-access-token" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.crossworkassurance.cisco.com/llms.txt > Use this file to discover all available pages before exploring further. # Obtain a Personal Access Token Use personal access tokens to authenticate service users for machine-to-machine interactions. To create a personal access token: 1. Sign in to the Identity and Access Management web application in Crosswork Assurance. If DNS is available, access the web application at `https://auth.<deployment URL>`. If DNS is unavailable, use the IP address of the Crosswork Assurance deployment tenant and `port 3443`. ``` https://:3443 // For deployments without DNS https://auth. // For deployments with DNS ``` 2. Set the organization to the Crosswork Assurance tenant. Use the organization drop-down list (upper-left) to find your specific tenant name. ![](https://cdn.document360.io/01d1de5e-a375-4fbc-aa82-666ac04c2113/Images/Documentation/image-V612VS1W.png?sv=2026-02-06&spr=https&st=2026-11-30T23%3A40%3A03Z&se=2026-12-01T00%3A40%3A03Z&sr=b&sp=r&sig=GcTS5Z5pHnCAL%2BbA6J1kmWoBDmtnTT9v2p22eCgI9YQ%3D) **Note:** The name `pca` may have been used for the tenant during installation, or a different name may have been chosen by the installer. 3. Create a service user. 1. Choose **Users** > **Service Users**. 2. Click **+ New**. ![](https://cdn.document360.io/01d1de5e-a375-4fbc-aa82-666ac04c2113/Images/Documentation/image-8X7FVWAA.png?sv=2026-02-06&spr=https&st=2026-11-30T23%3A40%3A03Z&se=2026-12-01T00%3A40%3A03Z&sr=b&sp=r&sig=gdkWeZTZyn6H9gVyy28CK4dMNDmyDo6fA9MoEwn0DS4%3D) 3. Enter the required fields. - In **User Name**, we recommend to use the `<username>@<tenant_name>` format. For example, `integrationUser@pca`. - In the **Access Token Type** drop-down list, select **Bearer**. 4. Click **Create**. 4. Assign the an appropriate role to the service user. For more details on roles, see [User Management](/25-7/docs/user-management#user-roles). 1. In the left-side navigation, choose **Authorizations** and then click **+ New**. ![](https://cdn.document360.io/01d1de5e-a375-4fbc-aa82-666ac04c2113/Images/Documentation/image-B31OD4O3.png?sv=2026-02-06&spr=https&st=2026-11-30T23%3A40%3A03Z&se=2026-12-01T00%3A40%3A03Z&sr=b&sp=r&sig=sBtS5ISZYIaw9MssYdOCfiglJiRIBoU1DwNECDAavNI%3D) 2. In **Search for a project**, choose **Analytics** and then click **Continue**. ![](https://cdn.document360.io/01d1de5e-a375-4fbc-aa82-666ac04c2113/Images/Documentation/image-MH5AO2KH.png?sv=2026-02-06&spr=https&st=2026-11-30T23%3A40%3A03Z&se=2026-12-01T00%3A40%3A03Z&sr=b&sp=r&sig=7DD5Q%2Ft33D0Qx%2FbV%2Flvz6oAVEnvLfm13N8Ny%2Bq20zN8%3D) 3. Select the checkbox for your desired role. Take note of the following mapping of Role names in the Identity and Access Management backend service vs in the Analytics UI: | Analytics Role Name | IAM Role Name | | --- | --- | | Admin | tenant-admin | | User | tenant-user | | Contributor | tenant-contributor | | Portal | tenant-portal | ![](https://cdn.document360.io/01d1de5e-a375-4fbc-aa82-666ac04c2113/Images/Documentation/image-3C7GSE0L.png?sv=2026-02-06&spr=https&st=2026-11-30T23%3A40%3A03Z&se=2026-12-01T00%3A40%3A03Z&sr=b&sp=r&sig=9SsxJLrkTcpHZWHeRq2a%2BHbt7%2FEmk%2Fgo%2FFpRtFA8LkM%3D) 4. Click **Save**. 5. Generate a new personal access token with an appropriate expiration date. 1. In the left-side navigation, choose **Personal Access Tokens** and then click **+ New**. 2. Select an expiration date, and then click **Add**. The personal access token appears. **Note:** You must regenerate the token and update it before it expires. Use an expiration date that aligns with your organization’s processes. ![](https://cdn.document360.io/01d1de5e-a375-4fbc-aa82-666ac04c2113/Images/Documentation/image-L04BWO02.png?sv=2026-02-06&spr=https&st=2026-11-30T23%3A40%3A03Z&se=2026-12-01T00%3A40%3A03Z&sr=b&sp=r&sig=h%2F2p1S4JaDedCv65mb61ICja1bfUIsXIfS0DnaTr%2BxU%3D) 6. Copy and securely store this personal access token to the machine that requires it as you will not be able to retrieve it again. **© 2026 Cisco and/or its affiliates. All rights reserved.** For more information about trademarks, please visit: [Cisco trademarks](https://www.cisco.com/c/en/us/about/legal/trademarks.html)[](https://www.cisco.com/c/en/us/about/legal/trademarks.html) For more information about legal terms, please visit: [Cisco legal terms](https://www.cisco.com/c/en/us/about/legal/terms-conditions.html)