You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-web-pubsub/concept-wildcard-group-roles.md
+3-8Lines changed: 3 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ ms.custom:
11
11
12
12
# Use wildcard group role patterns
13
13
14
-
Azure Web PubSub now supports wildcard pattern matching in client "group" roles so you can authorize a client for many related groups with a single role string. This reduces token size, simplifies permission management, and improves performance versus enumerating many concrete group roles.
14
+
Azure Web PubSub now supports wildcard pattern matching in client "group" roles so you can authorize a client for many related groups with a single role string.
15
15
16
16
You can continue to use the existing literal roles:
17
17
@@ -32,8 +32,6 @@ Use pattern roles when:
32
32
- A user or device must access a large but bounded dynamic set of groups (for example: all groups for a specific tenant or project)
33
33
- You want to keep access tokens small (avoid listing dozens or hundreds of explicit group roles)
34
34
35
-
Avoid over-broad patterns (like `**`) unless absolutely required; follow the principle of least privilege.
36
-
37
35
## Pattern syntax
38
36
39
37
| Symbol | Meaning |
@@ -42,10 +40,9 @@ Avoid over-broad patterns (like `**`) unless absolutely required; follow the pri
42
40
|`*`| Matches zero or more characters except `/`|
43
41
|`**`| Matches zero or more characters including `/` (crosses segment boundaries) |
44
42
|`\`| Escape character for `\`, `*`, `?`|
45
-
|`/`|acts as a segment separator and is never matched by `?` or `*` (only by `**`). |
43
+
|`/`|Acts as a hierarchy separator and is never matched by `?` or `*` (only by `**`). |
46
44
47
45
Additional rules:
48
-
- Use `**` sparingly; prefer narrower patterns (`clientA/*/chat`).
49
46
- Up to five total `*` characters (including those forming `**`) are allowed in a single pattern.
0 commit comments