Skip to content

Commit

Permalink
Updates ppl example (#1385)
Browse files Browse the repository at this point in the history
* updates ppl example

* updates ppl example
  • Loading branch information
ZPain8464 authored and github-actions[bot] committed May 7, 2024
1 parent b88695c commit 4c0cb1f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions content/docs/capabilities/ppl.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,17 @@ allow:
and:
- domain:
is: example.com
- user:
is: [email protected]
deny:
or:
- user:
- email:
is: [email protected]
- user:
- email:
is: [email protected]
```

This policy will allow a user with an email address at `example.com` who **is also** `user`. It will deny `user2` **or** `user3`, regardless of their domain and group membership.
This policy grants access only if the domain portion of a user's email address matches the specified value, `example.com`.

It will deny access to users with a `[email protected]` **or** `[email protected]` email address.

## Rules

Expand Down Expand Up @@ -149,7 +149,7 @@ Entries marked with `*` denote criteria that are only available in the [Enterpri
| \* `record` | variable | Allows policies to be extended using data from [external data sources](/docs/integrations) |
| `reject` | Anything. Typically `true`. | Always returns false. The opposite of `accept`. |
| \* `time_of_day` | [Time of Day Matcher] | Returns true if the time of the request (for the current day) matches the constraints. |
| `user` | [String Matcher] | Returns true if the logged-in user's id matches the given value. |
| `user` | [String Matcher] | Returns `true` if the logged-in user's ID matches the supplied value. (The actual value of the user ID claim depends on how the identity provider sets this value.) |

Entries marked with `*` denote criteria that are only available in the [Enterprise Console](/docs/deploy/enterprise) PPL builder. All other entries are available in both Pomerium Core and Pomerium Enterprise.

Expand Down

0 comments on commit 4c0cb1f

Please sign in to comment.