question

MattyB-3533 avatar image
0 Votes"
MattyB-3533 asked saldana-msft edited

Changes in the 'getTeamsUserActivityUserDetail' endpoint

Hi,

I have been using thegetTeamsUserActivityUserDetail endpoint for months with no issue.

About one week ago the 'User Principal Name' column change from a real name to a whole bunch of weird characters (see below screenshot).

129756-image.png



I can't relate the API payload to actual users now.

Is this a bug atm that's being fixed? It's been a week and I haven't heard anything on Google that would suggest it was a planned change.

If Microsoft is working on it then all is good. I'd just like to know

office-teams-windows-itprooffice-teams-app-devmicrosoft-graph-sdk
image.png (111.5 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @MattyB-3533,

Please kindly understand under Teams tag, we mainly focus on general issues about Teams desktop client. Considering that your issue may be more related to API development, I would remove teams tag from your thread and add teams-app-dev tag. Thanks for your understanding and hope your issue would be resolved soon.

0 Votes 0 ·
michev avatar image
0 Votes"
michev answered

That's the expected behavior, read for example here: https://techcommunity.microsoft.com/t5/microsoft-365-blog/privacy-changes-to-microsoft-365-usage-analytics/ba-p/2694137
Going forward, consider keeping an eye on the M365 Roadmap or the message center posts, so you're not caught by surprise.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

RajeshKumarMSFT-6137 avatar image
1 Vote"
RajeshKumarMSFT-6137 answered

Hi @MattyB-3533,

I have done analysis & testing on this. I can fetch 'User Principal Name' column correctly after following below settings for the reports under M365 admin center.

Need to Unselect the statement Display concealed user, group and site names in all reports then save the changes as shown below.

160359-report-settings.png


Post performing the report setting changes we performed “getTeamsUserActivityUserDetails” Graph API operation and we could see the valid Userprincipal name details are fetched as expected.

160412-correct-user-principal.png


Hope this helps.

If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have further questions about this answer, please click "Comment".









5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.