getenv('Username') in WebApp Alternative

5 ビュー (過去 30 日間)
C. K.
C. K. 2023 年 5 月 5 日
コメント済み: C. K. 2023 年 5 月 8 日
Hi,
I have an WebApp running on a server. My question is, whether I can find out the windows user name of the user of the WebApp. The user is of course not the user of the server.
The function getenv('Username') like in local apps is not possible.
Could you please help me finding an alternative solution for getting the user name of the user of the WebApp?
Kind regards

採用された回答

Praveen Reddy
Praveen Reddy 2023 年 5 月 8 日
Hi C.K,
I understand that you want to find the user information of user logged into Web App server. Starting from R2022a you can use “compiler.UserInfo()” to retrieve the details of user logged into Web App server.
Please refer to the following MATLAB documentation
  1 件のコメント
C. K.
C. K. 2023 年 5 月 8 日
Hi Praveen,
thank you for your answer, which sounds very good. I will try it out this week.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMATLAB Web App Server についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by