Skip to content

Commit 7c206ec

Browse files
authored
Update users_get_current.mdx
1 parent 2aa755d commit 7c206ec

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/docs/dash/authentication/users_get_current.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ ip = headers.get("X-Real-Ip")
1919
print(f"E-mail: {email}, username: {username}, user: {user}, ip: {ip}")
2020
```
2121

22+
:::info
23+
For this sample to work when running on your local machine, use the `databricks apps run-local` CLI command which injects the necessary HTTP headers.
24+
:::
25+
2226
## Permissions
2327

2428
No permissions configuration required.

0 commit comments

Comments
 (0)