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 CenterFile Exchange에서 MATLAB Web App Server에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by