Access token scopes
Scopes are a part of the OAuth 2 framework and allow you to expand or restrict the access granted by the Cognite Data Fusion (CDF) groups a user or app is a member of.
Except for the IDENTITY
scope, scopes don't grant access beyond the access granted by the group memberships. Instead, scopes act as filters for the capabilities in the groups. The access granted by scopes is additive, and if there are many scopes in an access token, the access granted is the union of the access granted by each scope.
The scope parameter value is a list of space-delimited, case-sensitive strings defined by the Identity provider (IdP). For example, to request the user_impersonation
scope in the my_cluster
cluster, add scope='https://my_cluster.cognitedata.com/user_impersonation
in the request to your IdPs token endpoint.
The scopes defined by CDF:
DATA.VIEW
The data view scope grants read-only access to data in CDF, for example, to view files, time series, RAW, and other CDF resources.