Would be possible to get details about the currently signed in user using Office Scripts ?

Dumalag, JoeMarie 0 Reputation points
2023-10-31T09:36:53.1066667+00:00

I am trying to build a logging system within my excel sheet.
To keep track of who will edit the excel that is shared across a team.

I was wondering if you can get the details (Username, email, full name) from MS Account currently signed in that is editing the excel sheet using Office Script ? Since this will be used on the web or desktop version of excel.

Like with VBA if you want to get the windows account name you use:
Application.Username

I am trying to achieve the same with Office scripts

Thanks!

Office
Office
A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.
1,696 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,966 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.