Skip to content
This repository was archived by the owner on Sep 2, 2025. It is now read-only.

Commit 051b4b6

Browse files
Merge pull request #2188 from splunk/mbechtold-6377-access-token-migration-docs
[6377] Access token UI migration docs
2 parents 63b1c9a + 4b03a73 commit 051b4b6

File tree

1 file changed

+143
-66
lines changed

1 file changed

+143
-66
lines changed

admin/authentication/authentication-tokens/org-tokens.rst

Lines changed: 143 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ Power users who have access to tokens in an organization see a banner, but only
2222
Token expiry
2323
================
2424

25-
Access tokens expire one year after the creation date. For access tokens created prior to February 28, 2022, the expiration date remains 5 years from the creation date. You can rotate a token before it expires using the Splunk Observability Cloud API. For details, see :ref:`access-token-rotate`.
25+
You can view the expiration dates of your tokens through the access token page. To view this page, select :guilabel:`Settings` and select :guilabel:`Access tokens`. By default, access tokens expire 18 years after the creation date. You can rotate a token before it expires. For details, see :ref:`access-token-rotate`.
2626

27-
Every organization admin will receive an email 30 days before a token in their org expires. The email includes a link to Splunk Observability Cloud that displays a list of expiring tokens. You cannot customize the token expiration email.
27+
By default, every organization admin receives an email 30 days before a token in their org expires. The email includes a link to Splunk Observability Cloud that displays a list of expiring tokens. To change the expiration reminder date, see :ref:`create-access-token-date`.
2828

2929
The default access token
3030
===========================
@@ -36,48 +36,60 @@ By default, every organization has one organization-level access token. If you d
3636
Manage access tokens
3737
=======================
3838

39-
To manage your access (org) tokens:
39+
To manage your access (org) tokens, follow these steps:
4040

4141
#. Open the :guilabel:`Settings` menu.
42-
#. Select :menuselection:`Access Tokens`.
43-
#. To find the access token in a large list, start entering its name in the search box. Splunk Observability Cloud returns matching results.
44-
#. To look at the details for an access token, select the expand icon next to the token name.
42+
#. Select :guilabel:`Access Tokens`.
43+
#. Find your token by using the :guilabel:`Status` and :guilabel:`Scope` filters or enter the token name in the search bar.
44+
#. Select the expand icon next to the token name. This displays details about the token.
4545

4646
For information about the access token permissions allowed by the :guilabel:`Authorization Scopes` field value, see the permissions step in :ref:`create-access-token`.
47-
#. If you're an organization administrator, the actions menu (|more| icon) appears to the right side of the token listing. You can select token actions from this menu.
47+
#. (Optional) If you're an organization administrator, the actions menu (|verticaldots|) appears to the right side of the token listing. You can select token actions from this menu.
4848

49-
#. To change the token visibility, follow these steps:
49+
#. See :ref:`change-token-permissions` and :ref:`change-token-expiration` to modify token permissions and token expiration settings, respectively.
5050

51-
#. To display the available permissions, select the right arrow in the :guilabel:`Access Token Permissions` box. The following
52-
permission options appear:
51+
.. _change-token-permissions:
52+
53+
Change token permissions
54+
-------------------------------------
55+
56+
If you're an organization administrator, you can change token permissions for other users and teams.
57+
58+
To change the token permissions, follow these steps:
59+
60+
#. Select the :guilabel:`Access Token Permissions` box. Choose from the following permission options:
5361

5462
* :menuselection:`Only Admins can Read`: Only admin users can view or read the new token. The token isn't visible to other users.
5563
* :menuselection:`Admins and Select Users or Teams can Read`: Admin users and users or teams you select can view or read the new token. The token isn't visible to anyone else.
5664
* :menuselection:`Everyone can Read`: Every user and team in the organization can view and read the token.
57-
#. To add permissions, select the left arrow below :guilabel:`Access Token Permissions`.
58-
#. If you selected :guilabel:`Admins and Select Users or Teams can Read`, select the users or teams to whom you want to give access:
5965

60-
#. Select :guilabel:`Add Team or User`. Splunk Observability Cloud displays a list of teams and users in your organization.
61-
#. To find the team or username in a large list, start entering the name in the search box. Splunk Observability Cloud returns matching results.
62-
Select the user or team.
63-
#. If you need to add more teams or users, select :guilabel:`Add Team or User` again.
66+
#. To add permissions, select the left arrow below :guilabel:`Access Token Permissions`.
67+
#. If you selected :guilabel:`Admins and Select Users or Teams can Read`, select the users or teams to whom you want to give access.
68+
#. To remove a team or user, select the delete icon (:strong:`X`) next to the team or username.
69+
#. To update the token, select :guilabel:`Update`.
6470

65-
.. note::
71+
.. _change-token-expiration:
6672

67-
You might see the following message in the middle of the dialog:
73+
Change token expiration date and expiration alerts
74+
-------------------------------------------------------
6875

69-
You are currently giving permissions to a team with Restrict Access deactivated. This means any user can join this team and is able to access this Access Token.
76+
To change the token expiration date and expiration alerts, follow these steps:
7077

71-
This message means that all users are able to join the team and then view or read the access token.
78+
#. In the token actions menu (|verticaldots|), select :guilabel:`Expiration date`.
79+
#. In the :guilabel:`Expiration date` box, select a new expiration date for the token.
80+
#. To change the visibility of the expiration alert, select from the following options:
7281

73-
#. To remove a team or user, select the delete icon (:strong:`X`) next to the team or username.
74-
#. To update the token, select :guilabel:`Update`.
82+
* :menuselection:`Admins and users or teams with token permissions can receive alert`: Admins and anyone with token permissions receive an alert when the token is close to expiring.
83+
* :menuselection:`Only admins can receive alert`: Only admins receive an alert when the token is close to expiring.
7584

85+
#. Configure the type of alert that your recipients receive.
86+
#. Change the time at which recipients receive an alert. For example, a value of ``7d`` means recipients receive an alert 7 days before the token expires.
87+
#. Select :guilabel:`Update`.
7688

77-
View and copy access tokens
78-
==============================
89+
View and copy access token secrets
90+
====================================
7991

80-
To view the value of an access token, select the token name and then select :guilabel:`Show Token`.
92+
To view the token secret, select the token name and then select :guilabel:`Show Token`.
8193

8294
To copy the token value, select :guilabel:`Copy`. You don't need to be an administrator to view or copy an access token.
8395

@@ -87,53 +99,77 @@ To copy the token value, select :guilabel:`Copy`. You don't need to be an admini
8799
Create an access token
88100
==========================
89101

102+
To get started with creating an access token, follow these steps:
103+
104+
#. Open the Splunk Observability Cloud main menu.
105+
#. Select :menuselection:`Settings` and select :menuselection:`Access Tokens`.
106+
#. Select :guilabel:`New Token`.
107+
108+
Next, complete each step in the access token creation guided setup:
109+
110+
* :ref:`create-access-token-name`.
111+
* :ref:`create-access-token-permissions`.
112+
* :ref:`create-access-token-date`.
113+
90114
.. note::
91115

92-
To do the following tasks, you must be an organization administrator.
116+
You must be an organization administrator to create access tokens.
93117

94-
To create an access token:
118+
.. _create-access-token-name:
119+
120+
Name the token and select the authorization scope
121+
-------------------------------------------------------------------------
122+
123+
To get started with creating the token, enter a name and scope for the token. Complete the following steps:
95124

96-
#. Open the Splunk Observability Cloud main menu.
97-
#. Select :menuselection:`Settings` and select :menuselection:`Access Tokens`.
98-
#. Select :guilabel:`New Token`. If your organization has a long list of access tokens, you might need to scroll down to the bottom of the list to access this button.
99125
#. Enter a unique token name. If you enter a token name that is already in use, even if the token is inactive, Splunk Observability Cloud doesn't accept the name.
100-
#. Select an authorization scope for the token from 1 of the following values:
101-
102-
.. note:: Assign only 1 authorization scope to each token. Applying both the :strong:`API` and :strong:`Ingest` authorization scopes to the same token might raise a security concern.
126+
#. Select an authorization scope. See the following table for information about the authorization scopes:
127+
128+
.. list-table::
129+
:header-rows: 1
130+
131+
* - Authorization scope
132+
- Description
133+
* - RUM token
134+
- Use this scope to authenticate with RUM ingest endpoints. These endpoints use the following base URL: ``https://rum-ingest.<REALM>.signalfx.com/v1/rum``.
135+
* - Ingest token
136+
- Use this scope to authenticate with data ingestion endpoints and when using the Splunk Distribution of OpenTelemetry Collector. These endpoints use the following base URLs:
137+
138+
* POST :code:`https://ingest.<REALM>.signalfx.com/v2/datapoint`
139+
* POST :code:`https://ingest.<REALM>.signalfx.com/v2/datapoint/otlp`
140+
* POST :code:`https://ingest.<REALM>.signalfx.com/v2/event`
141+
* POST :code:`https://ingest.<REALM>.signalfx.com/v1/trace`
103142

104-
- :strong:`RUM Token`: Select this authorization scope to use the token to authenticate with RUM ingest endpoints. These endpoints use the following base URL: :code:`https://rum-ingest.<REALM>.signalfx.com/v1/rum`.
105-
106-
.. caution::
107-
RUM displays the RUM token in URIs that are visible in a browser. To preserve security, you can't assign the :strong:`Ingest` or :strong:`API` authorization scope to a RUM token.
143+
For information about these endpoints, see :new-page:`Sending data points <https://dev.splunk.com/observability/docs/datamodel/ingest/>`.
144+
* - API token
145+
- Use this scope to authenticate with Splunk Observability Cloud API endpoints. These endpoints use the following base URLs:
108146

109-
- :strong:`Ingest Token`: Select this authorization scope to use the token to authenticate with data ingestion endpoints. These endpoints use the following base URLs:
147+
* :code:`https://api.<REALM>.signalfx.com`
148+
* :code:`wss://stream.<REALM>.signalfx.com`
110149

111-
- POST :code:`https://ingest.<REALM>.signalfx.com/v2/datapoint`
112-
- POST :code:`https://ingest.<REALM>.signalfx.com/v2/datapoint/otlp`
113-
- POST :code:`https://ingest.<REALM>.signalfx.com/v2/event`
114-
- POST :code:`https://ingest.<REALM>.signalfx.com/v1/trace`
150+
When you create an access token with API authentication scope, select at least one Splunk Observability Cloud role to associate with the token. You can select from ``power``, ``usage``, or ``read_only``. To learn more about Splunk Observability Cloud roles, see :ref:`roles-and-capabilities`.
115151

116-
For information about these endpoints, see :new-page:`Sending data points <https://dev.splunk.com/observability/docs/datamodel/ingest/>`.
152+
For information about these endpoints, see :new-page:`Summary of Splunk Observability Cloud API Endpoints <https://dev.splunk.com/observability/docs/apibasics/api_list/>`.
117153

118-
.. note:: Use the ingest autorization scope for the Splunk Distribution of the OpenTelemetry Collector. See :ref:`otel-intro`.
119-
- :strong:`API Token`: Select this authorization scope to use the token to authenticate with Splunk Observability Cloud endpoints. Example use cases are Terraform, programmatic usage of the API for business objects, and so on. These endpoints use the following base URLs:
120-
121-
- :code:`https://api.<REALM>.signalfx.com`
122-
- :code:`wss://stream.<REALM>.signalfx.com`
154+
#. (Optional) Add a description for the token.
155+
#. Select :guilabel:`Next` to continue to the next step.
123156

124-
When you create an access token with API authentication scope, select at least one Splunk Observability Cloud role to associate with the token. You can select from ``power``, ``usage``, or ``read_only``. To learn more about Splunk Observability Cloud roles, see :ref:`roles-and-capabilities`.
157+
.. _create-access-token-permissions:
125158

126-
For information about these endpoints, see :new-page:`Summary of Splunk Observability Cloud API Endpoints <https://dev.splunk.com/observability/docs/apibasics/api_list/>`.
159+
Determine who can view and use the token
160+
--------------------------------------------------------
127161

128-
#. Edit the visibility permissions:
162+
Next, configure token permissions so your organization's users and teams can use the token. Complete the following steps:
129163

130-
#. To display the available permissions, select the right arrow in the :guilabel:`Access Token Permissions` box. The following
131-
permission options appear:
164+
#. Edit the visibility permissions. To display the available permissions, select the :guilabel:`Access Token Permissions` box. The following
165+
permission options appear:
132166

133167
* :menuselection:`Only Admins can Read`: Only admin users can view or read the new token. The token isn't visible to other users.
134168
* :menuselection:`Admins and Select Users or Teams can Read`: Admin users and users or teams you select can view or read the new token. The token isn't visible to anyone else.
135169
* :menuselection:`Everyone can Read`: Every user and team in the organization can view and read the token.
136-
#. To add permissions, select the arrow below :guilabel:`Access Token Permissions`.
170+
171+
To add permissions, select the arrow below :guilabel:`Access Token Permissions`.
172+
137173
#. If you selected :guilabel:`Admins and Select Users or Teams can Read`, select the users or teams to whom you want to give access:
138174

139175
#. Select :guilabel:`Add Team or User`. Splunk Observability Cloud displays a list of teams and users in your organization.
@@ -150,21 +186,54 @@ To create an access token:
150186
This message means that all users are able to join the team and then view or read the access token.
151187

152188
#. To remove a team or user, select the delete icon (:strong:`X`) next to the team or username.
153-
#. To create the new token, select :guilabel:`Create`.
154189

190+
#. Select :guilabel:`Next` to continue to the final step.
191+
192+
.. _create-access-token-date:
193+
194+
Configure an expiration date
195+
-----------------------------------------------
196+
197+
To finish creating the token, select an expiration date for the token.
198+
199+
#. In the :guilabel:`Expiration date` box, select a date at which the token will expire. The date can't be over 5 years from the token creation date.
200+
#. In the :guilabel:`Expiration alert` box, select from one of the following options:
201+
202+
* :menuselection:`Only admins can receive alert`: Only admins receive an alert when the token is close to its expiration date.
203+
* :menuselection:`Admins and users or teams with token permissions can receive alert`: Admins and any users with token permissions receive an alert when the token is close to its expiration date.
204+
205+
#. (Optional) Set a time for when Splunk Observability Cloud sends an expiration alert. For example, a value of 7 days means Splunk Observability Cloud will send an alert 7 days before the token expires.
206+
#. Select :guilabel:`Create` to finish creating the new token.
155207

156208
.. _access-token-rotate:
157209

158210
Rotate an access token
159211
==============================
160212

161-
You can rotate an access token using the Splunk Observability Cloud API. This creates a new secret for the token and deactivates the token's previous secret. Optionally, you can provide a grace period before the previous token secret expires.
213+
You can rotate an access token using the access token menu or the Splunk Observability Cloud API. This creates a new secret for the token and deactivates the token's previous secret. Optionally, you can provide a grace period before the previous token secret expires.
162214

163215
You can't rotate tokens after they expire. If you don't rotate a token before it expires, you must create a new token to replace it.
164216

165217
.. note:: You must be a Splunk Observability Cloud admin to rotate a token.
166218

167-
To rotate an access token, use the ``POST /token/{name}/rotate`` endpoint in the Splunk Observability Cloud API. An API call to rotate a token looks like this:
219+
Rotate access tokens using the token menu
220+
-------------------------------------------------------------------
221+
222+
To rotate a token using the access token menu, follow these steps:
223+
224+
#. In Splunk Observability Cloud, select :guilabel:`Settings`.
225+
#. Select :guilabel:`Access tokens`.
226+
#. In the access tokens menu, select the token you want to rotate.
227+
#. Select :guilabel:`Rotate token`.
228+
#. Enter an expiration date for the new token secret, and optionally, a grace period for the current token secret.
229+
#. Select :guilabel:`Rotate`.
230+
231+
After you're finished rotating the token, update any of your OpenTelemetry Collector configurations with the new token secret before the grace period ends.
232+
233+
Rotate access tokens using the Splunk Observability Cloud API
234+
-------------------------------------------------------------------
235+
236+
To rotate an access token with the API, use the ``POST /token/{name}/rotate`` endpoint in the Splunk Observability Cloud API. An API call to rotate a token looks like this:
168237

169238
.. code-block:: bash
170239
@@ -197,11 +266,11 @@ Rename an access token
197266

198267
To rename a token:
199268

200-
#. Select :menuselection:`Edit Token` from the token's actions menu (|more|).
269+
#. Select :menuselection:`Edit Token` from the token's actions menu (|verticaldots|).
201270
#. Enter a new name for the token.
202271
#. Select :guilabel:`OK`.
203272

204-
Renaming a token does not affect the value of the token.
273+
Renaming a token does not affect the token's secret.
205274

206275
.. note::
207276

@@ -214,11 +283,19 @@ Deactivate or activate an access token
214283

215284
You can't delete tokens. You can only deactivate them.
216285

217-
To deactivate a token, select :menuselection:`Disable` from the token's actions menu (|more| icon).
218-
The line that displays the token has a shaded background, which indicates that the
219-
token is inactive. The UI displays deactivated tokens at the end of the tokens list,
220-
after the activated tokens.
286+
To deactivate a token, select :menuselection:`Deactivate` from the token's actions menu (|verticaldots|).
287+
288+
To activate a deactivated token, select :menuselection:`Activate` from the deactivated token's actions menu (|verticaldots|).
289+
290+
You can search for activated or deactivated tokens using the :guilabel:`Status` filter in the access tokens page.
291+
292+
Manage token limits
293+
=========================================
294+
295+
To change limits for your access tokens, including host and container limits, follow these steps:
296+
297+
#. Select the token that you want to edit. This opens the token detail page.
298+
#. Select the token actions menu (|verticaldots|), and select :guilabel:`Manage limits`.
299+
#. In the :guilabel:`Manage limits` menu, add the new token limits.
221300

222-
To activate a deactivated token, select :menuselection:`Enable` from the deactivated
223-
token's actions menu (|more| icon). The line that displays the token has a light background,
224-
which indicates that the token is inactive.
301+
To learn more about token limits, see :ref:`admin-manage-usage`.

0 commit comments

Comments
 (0)