# Types of ConfD user sessions and how to start them

**URL:** <https://dmap-community.ductus.global/t/types-of-confd-user-sessions-and-how-to-start-them/4894>\
**Category:** Other Northbound Interfaces\
**Created:** [March 6, 2025, 6:48am UTC](https://dmap-community.ductus.global/t/types-of-confd-user-sessions-and-how-to-start-them/4894 "2025-03-06T06:48:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![judegeorge](https://avatars.discourse-cdn.com/v4/letter/j/8e8cbc/32.png) [@judegeorge](https://dmap-community.ductus.global/u/judegeorge)\
**Post date:** [March 6, 2025, 6:48am UTC](https://dmap-community.ductus.global/t/types-of-confd-user-sessions-and-how-to-start-them/4894/1 "2025-03-06T06:48:39Z")

</div>

By running confd\_cli and passing it -u, -U, and -G arguments to specify the user and group(s), we can start a user CLI session. When we retrieve the session list using Maapi.getUserSessions() in Java, and get session information via Maapi.getUserSession() and furthermore get the session context using getContext(), we see that the context type for this session is “cli”.

My question is, what other possible values can getContext() return, and how are those types of sessions instantiated? Aside from “cli”, created by confd\_cli.

---

<div class="post-metadata">

**Author:** ![cohult](https://yyz2.discourse-cdn.com/flex010/user_avatar/dmap-community.ductus.global/cohult/32/221_2.png) [@cohult](https://dmap-community.ductus.global/u/cohult)\
**Post date:** [March 11, 2025, 1:15pm UTC](https://dmap-community.ductus.global/t/types-of-confd-user-sessions-and-how-to-start-them/4894/2 "2025-03-11T13:15:22Z")

</div>

From the Java documentation:

```none
getContext() - Method in class com.tailf.maapi.MaapiUserSession
Get User session context, one of "cli" | "webui" | "netconf" | "noaaa" | any MAAPI string

```
