Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
We set OIDC authentication with azure in SaaS, as default we authenticate as "sub" it's exposing inside the claim sub "UserId", which cause for duplicate license use, the customer have unified license.
since we authenticate with OnPREM environment as "name" claim attribute with SAML, we aimed to have both authenticate as "name".
we tried to create alternate claim an "name" for the mapped sub with no success, it seems that "sub" claim of OIDC can't have filled with other claim such as "name".
we need advise how to do so, the article above didn't elaborate much
hope someone can advise
Thanks
Eyal
"internalClaims" is post processed claimed by Qlik Cloud, which in your case is "Antonb@xxxx.co.il" "claimsFromIdp" is raw claims from IdP, so it looks you've overwritten the sub correctly, there's nothing wrong with how the product behaves here.
However if you're trying to match user names on your on-premise Qlik Sense environment, the "sub" claim should not only contain the username but also the domain.
Basically what you see in Qlik Client Client Managed (on-premise) in the "Users" screen you have "User Directory" and "User Id", both of those elements should be in "sub"(IdP subject) when in Qlik Cloud.
Example:
User Directory: DOMAIN
User Id: User1
You're expected to have the below in Qlik Cloud to avoid duplicate licenses
sub: DOMAIN\\User1
If your user ID in Client managed is already Antonb@xxx.co.il, then the easiest way is to add your domain name in the "Realm" field in the Identity Provider configuration in Qlik Cloud.
Best regards,
Hello @eyal
You should be able to use a different claim by just specifying it in the "sub" field in the Identity provider configuration in the Qlik Cloud console.
When you log in with the user that has the issue, what do you see when you open
https://tenantname.eu.qlikcloud.com/api/v1/diagnose-claims ? Do you see the claim you've specified listed in the ClaimsFromIdP section?
https://community.qlik.com/t5/Official-Support-Articles/Qlik-Cloud-How-to-see-if-claims-for-USER-and...
Hi @Damien_V
You can see below in "internalClaims" the "sub": "Antonb@xxxx.co.il" (which seems correct) but in "claimsFromIdp" "sub": "GepTdu327M8MPBU245LQQbxLrv2iV8dG_olVNlFKg1k" (Difference from internalClaims ) it cause for duplicate license use.
we aimed that both authenticate sub will set as "Antonb@xxx.co.il"
*************************************************************************************************************
"subType": "user",
"internalClaims": {
"sub": "Antonb@xxx.co.il",
"tenantId": "_ZZHqcIecaTxwRb-ySwGxvk0mruRv0um",
"subType": "user",
"userId": "657eade8b90b36084ff3e157",
"encodedPermissions": "data:application/vnd.qlik.permissions;base64,AQBL/////9//////+/8P/+//v/3////Piigef4gH////Af///d/h///////////////////////////////9//////////Cv////e/AD/////////ff/////2/////////v/x/////////44",
"level": "admin",
"name": "Anton Borkovski",
"email": "Antonb@xxx.co.il",
"email_verified": true,
"userTag": "1707985253",
"sid": "HnBeuCvaJqTwRK0D7BUrsPlMai0xaWzGh4bdfo3zQDY=",
"jti": "bJDFbRyStM-EqF83VhBBQ_UGnj5ABlTl",
"iat": 1707985256,
"exp": 1707985556,
"aud": "qlik.api.internal",
"iss": "qlik.api.internal"
},
"claimSource": "id-token",
"claimsFromIdp": {
"aud": "f9726de1-bb96-41da-8bce-5def1876ca28",
"iss": "https://login.microsoftonline.com/9c70d10e-03a6-4f14-b491-e6319ca91ae7/v2.0",
"iat": 1707984912,
"nbf": 1707984912,
"exp": 1707988812,
"aio": "AWQAm/8VAAAALO2pHjBI5W6Nk5fU93lPyHQT0nrLSBqTQjGA8D//NiZsTjF8wj33E2IDWgfhkIy3ntCzcrnMKWyqOR+1VnX70EJAOaTiIUeuedCZCLvSx1b0oSOxvnbm4dRIF2Z9DlI4",
"email": "Antonb@xxx.co.il",
"family_name": "Borkovski",
"given_name": "Anton",
"name": "Anton Borkovski",
"nonce": "Ts6a6E3cFXrezXGcrA1yNAyD85hvCIoCA_TQPg-pGBs",
"oid": "0a7202d0-eb59-4c25-a5d6-de350136e20d",
"preferred_username": "Antonb@xxx.co.il",
"rh": "0.AQoADtFwnKYDFE-0keYxnKka5-FtcvmWu9pBi85d7xh2yigKABQ.",
"sub": "GepTdu327M8MPBU245LQQbxLrv2iV8dG_olVNlFKg1k",
"tid": "9c70d10e-03a6-4f14-b491-e6319ca91ae7",
"upn": "Antonb@xxx.co.il",
"uti": "HE5qvXexkU-Ni0YkUg-4AQ",
"ver": "2.0"
},
"extraClaims": {},
"mappedClaims": {
"sub": "Antonb@xxx.co.il",
"name": "Anton Borkovski",
"email": "Antonb@xxx.co.il",
"email_verified": true
}
}
"internalClaims" is post processed claimed by Qlik Cloud, which in your case is "Antonb@xxxx.co.il" "claimsFromIdp" is raw claims from IdP, so it looks you've overwritten the sub correctly, there's nothing wrong with how the product behaves here.
However if you're trying to match user names on your on-premise Qlik Sense environment, the "sub" claim should not only contain the username but also the domain.
Basically what you see in Qlik Client Client Managed (on-premise) in the "Users" screen you have "User Directory" and "User Id", both of those elements should be in "sub"(IdP subject) when in Qlik Cloud.
Example:
User Directory: DOMAIN
User Id: User1
You're expected to have the below in Qlik Cloud to avoid duplicate licenses
sub: DOMAIN\\User1
If your user ID in Client managed is already Antonb@xxx.co.il, then the easiest way is to add your domain name in the "Realm" field in the Identity Provider configuration in Qlik Cloud.
Best regards,