2024-06-19 07:53:27 +02:00
|
|
|
<!-- @format -->
|
|
|
|
|
2023-06-08 10:05:14 +02:00
|
|
|
# `m.policy.rule.user`
|
|
|
|
|
2024-06-19 07:53:27 +02:00
|
|
|
This event is the language of Draupnir/Mjolnir and experimental Mjolnir style
|
|
|
|
ignore in Element Web labs when speaking of individual users.
|
2023-06-08 10:05:14 +02:00
|
|
|
|
|
|
|
TL;DR
|
|
|
|
|
|
|
|
- Event type: `m.policy.rule.server`
|
2024-06-19 07:53:27 +02:00
|
|
|
- State key: `_username:example.net` (The leading`@` is replaced with an
|
|
|
|
underscore `_`)
|
2023-06-08 10:05:14 +02:00
|
|
|
|
|
|
|
<!-- prettier-ignore-start -->
|
|
|
|
|
|
|
|
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
|
|
|
|
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
|
|
|
|
|
|
|
|
- [Banning an user](#banning-an-user)
|
|
|
|
|
|
|
|
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
|
|
|
|
|
|
|
|
<!-- prettier-ignore-end -->
|
|
|
|
|
|
|
|
## Banning an user
|
|
|
|
|
|
|
|
- Event type: `m.policy.rule.user`
|
|
|
|
- State key: `_username:example.net`
|
|
|
|
|
|
|
|
```json
|
|
|
|
{
|
|
|
|
"entity": "@username:example.net",
|
|
|
|
"reason": "Example ban",
|
|
|
|
"recommendation": "m.ban"
|
|
|
|
}
|
|
|
|
```
|