SP へWeb.currentUser プロパティ (sp.js)

サイトの現在のユーザーを取得します。

**適用対象:**apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013

var value = SP.Web.get_currentUser ()

戻り値

[Type]:の SPユーザー

SPユーザー現在のユーザーを表す。

注釈

nullはできません。

他のリソースのエンドポイント

詳細については、 Web リソースを参照してください。

エンドポイント URI 構造

http://<sitecollection>/<site>/_api/web/currentUser

HTTP 要求

このリソースには、次の HTTP コマンドがサポートしています。

  • 投稿

投稿の書式

POST http://<sitecollection>/<site>/_api/web/currentUser

書式を取得します。

GET http://<sitecollection>/<site>/_api/web/currentUser