Skip to content

Commit ca1d91f

Browse files
authored
CHA-1510: update the doc about user uuid (#1048)
1 parent c8dd96c commit ca1d91f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

content/extensions/ui-extensions.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@ To help identify the **iframe** caller (insecure) and context, several paramete
227227
For example, when `url` is `https://customerwebsite.com/iframe/`, the called URL is `https://customerwebite.com/iframe/?position=pim.product.tab&user[username]=julia`
228228

229229
For all positions, parameters relative to the connected user and the extension position are sent:
230+
- `user[uuid]`
230231
- `user[id]`
231232
- `user[username]`
232233
- `user[email]`
@@ -313,7 +314,7 @@ The **PIM context** is propagated within the iframe when it changes using **post
313314

314315
The message contains :
315316
- A `context` object containing the selected `locale` and `channel`.
316-
- A `user` object containing the `username` and `groups` of the connected user.
317+
- A `user` object containing the `uuid`, `username` and `groups` of the connected user.
317318

318319
Example :
319320
```json
@@ -323,6 +324,7 @@ Example :
323324
"channel": "ecommerce"
324325
},
325326
"user": {
327+
"uuid": "c71228d3-695c-4ded-8f3d-b3ed881a1f59",
326328
"username": "admin",
327329
"groups": [
328330
"IT support",
@@ -396,13 +398,15 @@ The JWT token consists of three main parts: the header, the body (payload), and
396398
"iat": 1743410036.116152,
397399
"exp": 1743413636.116162,
398400
"userId": "1",
401+
"userUuid": "557ed4c9-e155-4f4c-802d-4d90bca37d45"
399402
}
400403
```
401404

402405
* ```jti``` The unique identifier for the token.
403406
* ```iat``` The issued at time.
404407
* ```exp``` The expiration time of the token.
405-
* ```userId``` The PIM user identifier (in this case, ```1```).
408+
* ```userId``` The PIM user legacy identifier (in this case, ```1```).
409+
* ```userUuid``` The PIM user Uuid.
406410

407411
*A signature*
408412

0 commit comments

Comments
 (0)