我们可以识别用户调用Azure函数吗 [英] Can we identify the user calling Azure function

查看:76
本文介绍了我们可以识别用户调用Azure函数吗的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好

如何访问正在调用Azure函数(Http触发函数)的用户的电子邮件地址.

How to access the user's email address who is calling the Azure function (Http trigger function).

预先感谢

推荐答案

我认为目前尚无办法实现这一目标.但是,您可以根据用户AuthorizationLevel限制授权.

I think currently there is no way to achieve this. However you could restrict the Authorization based on the User AuthorizationLevel.

您可以将AuthorizationLevel.User用于您的用例.但是目前这有 一些问题,不确定是否可以按预期运行

You can use AuthorizationLevel.User for your use case. But currently this is having some issues, not sure this works as expected 

请参见此处以了解各种 授权级别

See here for the different kinds of authorization levels



这篇关于我们可以识别用户调用Azure函数吗的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆