如何获取在图中创建用户的用户?

huangapple go评论74阅读模式
英文:

How do i get the the user that created an user in graph

问题

我已经阅读了关于Microsoft Graph中的用户属性的文档,但我找不到“由用户创建”属性。

我找到了“创建日期”属性,但是Azure是否会记录谁创建了一个用户呢?

英文:

I have been reading the documentation on Microsoft Graph on user properties and i can not find the "Created by user" property.

I have found the "Date of creation" property but does azure even register who created an user?

答案1

得分: 0

我创建了一个用户,该活动将显示在审核日志中,如下所示:

如何获取在图中创建用户的用户?

获取创建用户的用户,您可以使用以下查询来筛选审核日志:

GET https://graph.microsoft.com//v1.0/auditLogs/directoryAudits?&$filter=activityDisplayName eq 'Add user'

如何获取在图中创建用户的用户?

inititatedBy 是创建用户的用户,位于 targetResources 中。

确保同意**AuditLog.Read.All** 权限以执行此操作。

参考链接:

Audit logs in Azure Active Directory - Microsoft Entra

英文:

I created a user, and the activity will show up in the Audit logs like below:

如何获取在图中创建用户的用户?

To fetch the user that created a user, you can make use of below query to filter Audit Logs:

GET https://graph.microsoft.com//v1.0/auditLogs/directoryAudits?&$filter=activityDisplayName eq 'Add user'

如何获取在图中创建用户的用户?

The inititatedBy is the user who created the user present in the targetResources.

Make sure to consent AuditLog.Read.All permission to perform the action.

Reference:

Audit logs in Azure Active Directory - Microsoft Entra

huangapple
  • 本文由 发表于 2023年6月8日 04:30:32
  • 转载请务必保留本文链接:https://go.coder-hub.com/76426916.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定