> For the complete documentation index, see [llms.txt](https://trillo.gitbook.io/trillo-workbench-lessons/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://trillo.gitbook.io/trillo-workbench-lessons/begin-code-lessons/accessing-runtime-context.md).

# Accessing Runtime Context

In this example, the function provides runtime context like user ID, user email, user name, etc.

### &#x20;Code: /lessons/Access\_Runtime\_Context/AccessRuntimeContext.java

\
**Steps**

1. Create a new function called AccessRuntimeContext.java.
2. Call getUserId(), getIdOfUser(), getEmail(), getFullName() function.
3. Log the response using LogApi.info().
4. Return successful response.
