# Unable to use expression when map operator id from claim in OpenID authentication service

**URL:** <https://forums.pega.com/t/unable-to-use-expression-when-map-operator-id-from-claim-in-openid-authentication-service/517>\
**Category:** General\
**Tags:** 8-3, other-industry, system-administration, lead-system-architect\
**Created:** [September 3, 2020, 10:01am UTC](https://forums.pega.com/t/unable-to-use-expression-when-map-operator-id-from-claim-in-openid-authentication-service/517 "2020-09-03T10:01:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![JohanG54](https://avatars.discourse-cdn.com/v4/letter/j/8797f3/32.png) [@JohanG54](https://forums.pega.com/u/JohanG54)\
**Post date:** [September 3, 2020, 10:01am UTC](https://forums.pega.com/t/unable-to-use-expression-when-map-operator-id-from-claim-in-openid-authentication-service/517/1 "2020-09-03T10:01:17Z")

</div>

Hi,

I currently use Pega Platform 8.3.

we have implemented an OpenID Connect SSO authentication service.

My problem is about Operator identification with claim info (I don’t use operator provisioning).

Currently, claim data “sesame\_id” is used to find the operator and it works:

 ![Map sesame_id from claim into pyUserIdentifier.png](https://pega1.discourse-cdn.com/pega/original/2X/b/b3f7932fd575d428d5e3900250ebc68f8ae64885.png)

Example: my operator identifier in Pega is “johan.grall” and sesame\_id from claim is “johan.grall”. Mapping works and I’m log with operator “johan.grall”.

There is a new behavior to manage claim data “sesame\_id” which contains a ‘-’ character. In this case, the corresponding operator id in Pega contains a ‘\_’ character instead of ‘-’.

Example: my operator identifier in Pega is “johan\_grall” and sesame\_id from claim is “johan-grall”

I try to use an expression when mapping operator id but it doesn’t work:

 ![Map operatorID with data from claim with expression.png](https://pega1.discourse-cdn.com/pega/original/2X/3/37744eaa6ec6dd6414c617f076dbef99124c536d.png)

When I connect, error massage “Unable to execute OIDC flow : Unable to derive operator from IDToken” is displayed.  
No error message in log, even if I set “debug level” for OIDC logger.

I have tested several thing but same issue:

- {sesame\_id} instead of sesame\_id
- Use data page “D\_pyUserInfoClaims” (but seems this data page use info from operator; means that operator should be identified before use this data page).
- Use “mapping” tab but mapping seems run after operator identification.

Do you have idea on why I’m not able to use expression to map operator id from claim ?

Thanks,

Johan

---

<div class="post-metadata">

**Author:** ![JohanG54](https://avatars.discourse-cdn.com/v4/letter/j/8797f3/32.png) [@JohanG54](https://forums.pega.com/u/JohanG54)\
**Post date:** [September 15, 2020, 7:37am UTC](https://forums.pega.com/t/unable-to-use-expression-when-map-operator-id-from-claim-in-openid-authentication-service/517/2 "2020-09-15T07:37:55Z")

</div>

Hi,

Solution has been found. Just need to use correct parameter for the expression and reference the claim data:

 ![Correct expression.png](https://pega1.discourse-cdn.com/pega/original/2X/a/a23a7cb07dacf8dd0f9b92bbc8e8eef30530e247.png)
