27.1.1.3  GetUserInfo

 

Get detail information of current login user in Project.

 

HTTP Method: GET

XML URL: http://localhost/WaWebService/GetUserInfo/{ProjectName}

JSON URL: http://localhost/WaWebService/Json/GetUserInfo/{ProjectName}

XML Response:

<GetUserInfo>   <Result>     <Ret>0</Ret>   </Result>   <UserInfo>     <ProjIdbw>0</ProjIdbw>     <UserId>48</UserId>     <UserName>admin</UserName>     <Description>administrator</Description>     <Area>       <int>127</int>       <int>127</int>       <int>127</int>       <int>127</int>       <int>127</int>       <int>127</int>         .         .         .       <int>127</int>       <int>127</int>       <int>127</int>       <int>127</int>     </Area>     <UserGraphics>       <UserGraphic>         <UserId>48</UserId>         <GraphicNode>5</GraphicNode>         <GraphicName>Page1.bgr</GraphicName>       </UserGraphic>       <UserGraphic>         <UserId>48</UserId>         <GraphicNode>5</GraphicNode>         <GraphicName>Page2.bgr</GraphicName>       </UserGraphic>     </UserGraphics>     <UserNodes>       <UserNode>         <NodeIdbw>5</NodeIdbw>         <UserId>48</UserId>       </UserNode>     </UserNodes>   </UserInfo> </GetUserInfo>

 

JSON Response:

{         "Result":{                  "Ret":0         },         "UserInfo":{                  "ProjIdbw":0,                  "UserId":48,                  "UserName":"admin",                  "Description":"Administrator",                  "Area":[127,127,127,127,. . . . .,127,127,127,127],                  "UserGraphics":[{                          "UserId":48,                          "GraphicNode":5,                          "GraphicName":"Page1.bgr"                  }],                  "UserNodes":[{                          "UserId":48,                          "NodeIdbw":5                  }]         } }

 

Response Field:

Field Name

Description

ProjIdbw

Project ID

UserId

User ID

UserName

Administrator Name

Description

Description

Area

Area

UserGraphics

Graphics Access

Field Name

Description

UserId

User ID

GraphicNode

SCADA Node

GraphicName

Default Graphic

UserNodes

Node Access

Field Name

Description

UserId

User ID

NodeIdbw

Node ID