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...
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!
VasilMichev
Feb 29, 2024MVP
That'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).