Identity and Access Management
This document is an overview of security-relevant information that applies to Intelligent Selling Services for SAP Commerce Cloud.
Default Users
Intelligent Selling Services tenant is delivered with a standard user.
Upon the process of tenant provisioning, a technical user with the Admin role is created automatically for the customer, that is the tenant owner. The technical user is able to perform any action within a project and is supposed to help the customer prepare and configure the system for use.
User Authorization
In order to start using Intelligent Selling Services, a user must be invited to a project and authorized.
User authorization requires issuing an access token for the user. Token generation for a user takes place upon logging in.
Integration into Single Sign-On Environments
You can access Intelligent Selling Services with Single Sign-On.
Intelligent Selling Services supports the Single Sign-On (SSO) mechanisms provided by Identity Authentication service. Therefore, the security recommendations and guidelines for user administration and authentication as described in the service documentation also apply to Intelligent Selling Services.
Users are authenticated on the basis of an account created in http://accounts.sap.com
. When a new user is invited to the system but does not have an account yet, the identity provider requests the user to register a new account.
Multi-Factor Authentication
Multi-Factor Authentication (MFA) is not enabled by default. If users want to use MFA when logging in to Intelligent Selling Services, they need to edit their profile settings on http://accounts.sap.com
by configuring MFA accordingly and turning on the Always provide second factor when authenticating option.
Roles to Scopes Relation
Intelligent Selling Services allows you to restrict access to certain system functionalities by assigning roles. Roles are directly mapped to scopes.
The access to various parts of Intelligent Selling Services relies on scopes, that is permissions to act in the system, granted directly to a user. The system groups these permissions in default sets called roles. This means that you do not grant the right to perform particular actions, but only assign the user to the roles pre-defined in the system.
User Roles
Every user role translates into a number of scopes that allow a user use a greater or narrower funtionality of the system. The users are assigned roles that determine the scope of their authorities. The currently available user roles are:-
Admin
-
Developer
-
Business User
User Administration
Intelligent Selling Services allows you to manage users and restrict their access to certain functionalities by assigning roles.
Adding Users
You can invite new users, as well as manage or delete the existing ones through a dedicated user interface accessible in Intelligent Selling Services. To learn more about user management and the available tool, see Account Management.
-
Admin: You have access to all functions of the system, you can manage the project, you can see and manage users, as well as invite new ones.
-
Developer: You can access all business applications, as well as development tools. However, you have no access to administration tools.
-
Business User: You can only use business applications. You have no access to consumer-related data.
Editing User Roles
Even if you invite a user with a particular role assigned, you can later change the scope of their authority. To learn more about editing user roles, see Edit a User.
Deleting Users
You can delete a user using the Account Management interface.
When an Admin user deletes a user from Intelligent Selling Services using Account Management, the user's data can still be available in Identity Authentication service for one month. However, right after the deletion, the user is not able to access the project again.
When a user with a public account is no longer assigned to any tenant in Intelligent Selling Services and any other application in SAP, the system may automatically delete such user from the SAP Cloud Platform Identity Authentication Service. To read more, see this section of the service documentation.
Client Administration
For the purpose of integrating Intelligent Selling Services with external systems, such as SAP Commerce Cloud, you can create and manage clients.
Create an Access Token
An access token is required to use Intelligent Selling Services. You can generate the OAuth 2.0 token manually for a client.
Prerequisites
To generate an access token, you need a client secret. To find out how to obtain the client secret, see Create a Client.
Procedure
curl -X POST \
'https://{tenant}-{site}.api.eu.context.cloud.sap/uaa/oauth/token' \
-H 'Content-Type: application/x-www-form-urlencoded' \
-d 'client_id={clientId}&grant_type=client_credentials&client_secret={clientSecret}'
curl -X POST \
'https://{tenant}-{site}.api.us.context.cloud.sap/uaa/oauth/token' \
-H 'Content-Type: application/x-www-form-urlencoded' \
-d 'client_id={clientId}&grant_type=client_credentials&client_secret={clientSecret}'
-
URI Parameters
-
{tenant}: Provide the name of your tenant.
-
{site}: Provide your site identifier.
-
-
Payload
-
{clientId}: Provide the client ID. You can verify it in Clients and Extensions.
-
{tenant}.some-client-id: No site specific client or legacy client.
-
{tenant}-{site}-some-client-id: Site specific client.
-
-
{clientSecret}: Provide the client secret.
The {clientSecret} contains special characters. Make sure they are properly URL-encoded.
-
Sample POST Request with Real Data
curl -X POST \ 'https://mycomicshop-main.api.eu.context.cloud.sap/uaa/oauth/token' \ -H 'Content-Type: application/x-www-form-urlencoded' \ -d 'client_id=mycomicsshop.main-flower-client&grant_type=client_credentials&client_secret=Cp)%40%60HT7_56x068QC-_t%27%5E2Y_'
curl -X POST \ 'https://mycomicshop-main.api.us.context.cloud.sap/uaa/oauth/token' \ -H 'Content-Type: application/x-www-form-urlencoded' \ -d 'client_id=mycomicsshop.main-flower-client&grant_type=client_credentials&client_secret=Cp)%40%60HT7_56x068QC-_t%27%5E2Y_'
Response
-
The bearer access token
-
The expiration time of the token
-
The scope assigned to the client within the particular tenant
{
"access_token": "eyJhbGciOiJSUzI1NiIsImprdSI6Imh0dHBzOi8vaHlwZXJkZXYuYXBpLnN0YWdlLmNvbnRleHQuY2xvdWQuc2FwL3Rva2VuX2tleXMiLCJraWQiOiJ0ZW5hbnRBY3RpdmVLZXkiLCJ0eXAiOiJKV1QifQ.eyJqdGkiOiI2ZTc1ZWNmYjUzNTg0YjA4OTNkOTY4Mjc1NGYzNDgzMCIsInN1YiI6Imh5cGVyZGV2LmVsZWN0cm9uaWNzLWZvb2JhciIsImF1dGhvcml0aWVzIjpbImh5YnJpcy50ZW5hbnQ9aHlwZXJkZXYiLCJjZHMucm9sZXMuY3VzdG9tZXJlYyIsImh5YnJpcy5zaXRlPWVsZWN0cm9uaWNzIl0sInNjb3BlIjpbImh5YnJpcy50ZW5hbnQ9aHlwZXJkZXYiLCJjZHMucm9sZXMuY3VzdG9tZXJlYyIsImh5YnJpcy5zaXRlPWVsZWN0cm9uaWNzIl0sImNsaWVudF9pZCI6Imh5cGVyZGV2LmVsZWN0cm9uaWNzLWZvb2JhciIsImNpZCI6Imh5cGVyZGV2LmVsZWN0cm9uaWNzLWZvb2JhciIsImF6cCI6Imh5cGVyZGV2LmVsZWN0cm9uaWNzLWZvb2JhciIsImdyYW50X3R5cGUiOiJjbGllbnRfY3JlZGVudGlhbHMiLCJyZXZfc2lnIjoiMWJmNGNiMDEiLCJpYXQiOjE2MzM2MTQwNjIsImV4cCI6MTYzMzYxNDk2MiwiaXNzIjoiaHR0cHM6Ly9oeXBlcmRldi5hcGkuYi5zdGFnZS5jb250ZXh0LmNsb3VkLnNhcC91YWEvb2F1dGgvdG9rZW4iLCJ6aWQiOiJoeXBlcmRldiIsImF1ZCI6WyJjZHMucm9sZXMiLCJoeWJyaXMiLCJoeXBlcmRldi5lbGVjdHJvbmljcy1mb29iYXIiXX0.fzReS0fxUc0OYzcmnGK9sLirq0rGCJp71M4DiG24sd-9OXpWYj6in39qBpOjmDEny6JnfwGcUkz5B9it-XKQe54jugiP6OBDvErrvxzvU_GiRVCZKZ5cI6x_O5xC402Eg1K-U6mLmqcsiEm-2Jn7nQEQUKjcES--I6R-p3lpq7GmTljUtLzi1A7T3T4xkWzPR8vOiVe2gyvmScsTZUC6TwHNn0f7SNWm4BNDzpH9GuqvQivppBbekA39lAJX51-7vRLu_gD6dpfF2TzCXHK0pprVYs_obojzPy_m-XGFMaq_Pveu5rDk6zeSgqg7htUmACnFOXzeTqQ4NvPrMWYnzg",
"token_type": "bearer",
"expires_in": 899,
"scope": "hybris.tenant=mycomicsshop.main-flower-client cds.roles.customerec hybris.site=main",
"jti": "6e75ecfb53584b0893d9682754f34830"
}