Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/sharepoint/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sharepoint Online-UserId.NameId_Sharepoint_Sharepoint Online - Fatal编程技术网

Sharepoint Online-UserId.NameId

Sharepoint Online-UserId.NameId,sharepoint,sharepoint-online,Sharepoint,Sharepoint Online,您好,我无法从sharepoint Online获取正确的NameId 当我尝试通过CSOM获取它时,我收到了正确的guid:user.AadObjectId.NameId 00af4ea3-3f02-4857-abe2-357dd6ccceb2 但当我要求休息时,我收到了 "UserId": { "__metadata": { "type": "SP.UserIdInfo" }, "NameId": "10030000ae7b8efb", "NameIdIssuer": "urn:feder

您好,我无法从sharepoint Online获取正确的NameId

当我尝试通过CSOM获取它时,我收到了正确的guid:user.AadObjectId.NameId 00af4ea3-3f02-4857-abe2-357dd6ccceb2

但当我要求休息时,我收到了

 "UserId": {
"__metadata": {
"type": "SP.UserIdInfo"
},
"NameId": "10030000ae7b8efb",
"NameIdIssuer": "urn:federation:microsoftonline"
}
如何通过REST API获得正确的NameId作为Guid?

使用下面的REST API

/_api/web/siteusers/getbyid(25)?$select=AadObjectId

这正是我要找的。谢谢: