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: docs/_docs/user-guide/eldritch.md
+50Lines changed: 50 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1628,6 +1628,56 @@ sys.shell("ls /nofile")
1628
1628
}
1629
1629
```
1630
1630
1631
+
### sys.tokens
1632
+
1633
+
`sys.tokens(pid: Option<int>) -> List<Dict>`
1634
+
1635
+
The **sys.tokens** method lists tokens. With no arguments, returns all tokens in the global store. With a PID, returns the process token info including user and privileges.
1636
+
1637
+
**Stored tokens** (no args): Each dict has `active` (bool), `id` (int), `source` (str).
1638
+
1639
+
**Process tokens** (with pid): Each dict has `user` (str, e.g. `"CORP\\admin"`), `pid` (int), `privileges` (list of `"PrivilegeName=enabled|disabled"`).
0 commit comments