POST
request at the
/security/role-mappings
endpoint to create this kind of role
mapping.
Before you begin
- You have configured your application in the Azure portal and and enabled SSO from Talend Cloud Management Console. For further information, see https://help.talend.com/r/en-US/Cloud/sso-single-sign-on-config/configuring-sso-with-azure-active-directory.
- You have defined roles on your SSO platform, as explained in https://learn.microsoft.com/en-us/azure/active-directory/roles/custom-create from the Azure documentation.
- You have added the CustomerRoles attribute to User Attributes & Claims as explained in https://help.talend.com/r/en-US/Cloud/sso-single-sign-on-config/configuring-azure-ad-single-sign-on.
- The user or service account to be used to issue the API request must have the
TMC_SSO_MANAGEMENT
permission. -
Generate access tokens:
- For users, generate a personal access token by following Generating a Personal Access Token.
- For service accounts, generate a service access token by following Generating a service account token.
Once generated, a service account token expires after 30 minutes. If it expires, generate a new token using the POST method at the endpoint
https://api.<env>.cloud.talend.com/security/oauth/token
. For more information about generating a token, see Generating a service account token.
About this task
Developer
and Administrator
. Note that these roles are
for demonstration purposes only.Procedure
Example
method: POST
endpoint: https://api.<env>.cloud.talend.com/security/role-mappings
headers: {
"Content-Type": "application/json",
"Authorization": "Bearer <your_personal_access_token_or_service_account_token>"
}
payload: {
[
{
"name":"Developer",
"roles":[
"API Tester",
"API Designer"
]
},
{
"name":"Administrator",
"roles":[
"Operator"
]
}
]
}
Regarding the Talend Cloud roles, you can access the predefined list of roles, add new roles, manage role permissions, and assign roles to users in in Talend Cloud Management Console. For further information, see Managing Roles.
Results
Developer
role automatically obtains the
API Tester and API Designer role of
Talend Cloud.Note that for any given user, the roles assigned via this role mapping override those assigned via Just-in-time user provisioning, a classic user identity provisioning option provided in Talend Cloud Management Console.