Forum Discussion
Tekky
Feb 29, 2024Copper Contributor
MS Graph API - MS Teams channel last updated/last message
Hi, we want to do a report of all our Teams and Channels. With that it would be nice to get when it was lastly updated/used so we could do some cleanup afterwards. Via Powershell and also Grap...
VasilMichev
Feb 29, 2024MVP
Are you a member of the team/channel? When using the Graph explorer (or the delegate permissions flow as a whole), you only have access to the set of teams/channels the user under which identity you are running is able to access.
Tekky
Feb 29, 2024Copper Contributor
Hmm.. I've just tested this. As I am using privileged account (for role segregation) to which I have Global Administrator it seems I must have membership to each team and possibly to each channel to pull any message what so ever.
Am I blind or is it not written in documentation?
I then believe there must be some powershell or GraphAPI call to get me at least membership to all channels, even to private ones. Right?
Thank you!
Am I blind or is it not written in documentation?
I then believe there must be some powershell or GraphAPI call to get me at least membership to all channels, even to private ones. Right?
Thank you!
- VasilMichevFeb 29, 2024MVPThat's simply how delegate permissions work - they give you access only to what the user himself is able to access. The alternative is to run with application permissions, without a user, which usually give you unrestricted access to all resources of the chosen type (as per the permissions granted).