# getUserInfo 메서드

#### 메서드 <a href="#getuserinfo-fang-fa-fang-fa" id="getuserinfo-fang-fa-fang-fa"></a>

&#x20;  Page.getUserInfo()

#### 설명 <a href="#getuserinfo-fang-fa-miao-shu" id="getuserinfo-fang-fa-miao-shu"></a>

현재 로그인한 사용자에 대한 정보를 가져옵니다.

#### **매개 변수**  <a href="#getuserinfo-fang-fa-can-shu-shuo-ming" id="getuserinfo-fang-fa-can-shu-shuo-ming"></a>

&#x20;  **없음**&#x20;

#### **반환값**  <a href="#getuserinfo-fang-fa-fan-hui-zhi" id="getuserinfo-fang-fa-fan-hui-zhi"></a>

[UserInfo](/command/javascriptprogramming/javascript-api/forguncyinterface/userinfo.md)

#### 예제 <a href="#getuserinfo-fang-fa-shi-li" id="getuserinfo-fang-fa-shi-li"></a>

다음 예제 코드에서는 getUserInfo 메서드를 통해 현재 로그인한 사용자에 대한 세부 정보를 가져옵니다.

#### Forguncy 사용 예제

1. 페이지를 생성한 후 셀에 “현재 사용자” 셀 유형을 적용합니다.

<figure><img src="https://forguncy-korea.github.io/images/forguncy5/ex-ss_page-getuserinfo01.png" alt=""><figcaption></figcaption></figure>

2\. 해당 페이지에 버튼을 생성하고, “자바스크립트로 직접 프로그래밍하기” 명령으로 코드를 입력합니다.<br>

<figure><img src="https://forguncy-korea.github.io/images/forguncy5/ex-ss_page-getuserinfo02.png" alt=""><figcaption></figcaption></figure>

3\. 프로젝트를 실행하여 버튼을 누르면 getUserInfo를 화면에 표시합니다.

![](https://forguncy-korea.github.io/images/forguncy5/ex-ss_page-getuserinfo03.gif)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.forguncy.co.kr/command/javascriptprogramming/javascript-api/class/page/getuserinfo.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
