Skip to content

Commit 475b1df

Browse files
Merge pull request #313707 from nehakulkarni123/patch-36
Update definition of policy rule with user ID claim
2 parents a87c84c + 5027c40 commit 475b1df

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

articles/governance/policy/concepts/definition-structure-policy-rule.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -664,6 +664,11 @@ The following functions are only available in policy rules:
664664
}
665665
```
666666

667+
- `http: //schemas.microsoft.com/identity/claims/objectidentifier`: returns the user (or object) ID associated with the request.
668+
```json
669+
"value": "[tryGet(requestContext().identity, 'http: //schemas.microsoft.com/identity/claims/objectidentifier')]",
670+
"in": ['userId']
671+
```
667672
- `policy()`
668673
- Returns the following information about the policy that is being evaluated. Properties can be accessed from the returned object (example: `[policy().assignmentId]`).
669674

0 commit comments

Comments
 (0)