MS Graph
2 TopicsChannel-message change notification subscription stopped sending reauthorizationRequired event
Hi Team, We are using Microsoft feature: change notification subscription to create subscriptions for channel-message and chat-messages resources. We use these subscriptions to deliver the messages sent in MS teams to our internal applications. We are using application access token to create the change notification subscriptions. After creating subscriptions, we were able to get the change notifications for channel-message/chat-message resources on our webkook endoint. Also we were able to get the reauthorizationRequired event on lifecycle change notification webhook enpoint. For every reauthorizationRequired event we use to renew the subscription by 70 hours using the application access token. For our channel-message/chat-message subscriptions we only received the reauthorizationRequired events for first couple of days and after that we stopped receiving those events. Because of this we were not able to renew the subscriptions. Could you please guide us to understand the root cause of this issue. Thanks & Regards, Vaibhav Medhekar368Views0likes0CommentsTrying to use Remove-MgGroupMemberByRef but getting errors
We are trying to setup an automation of removing users from a security group at the end of each day. I want to use the Remove-MgGroupMemberByRef cmdlet but I cannot for the life of me get it working. I am getting the below error: Remove-MgGroupMemberByRef Remove-MgGroupMemberByRef : The 'Remove-MgGroupMemberByRef' command was found in the module 'Microsoft.Graph.Groups', but the module could not be loaded. For more information, run 'Import-Module Microsoft.Graph.Groups'. At line:1 char:1 + Remove-MgGroupMemberByRef + ~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (Remove-MgGroupMemberByRef:String) [], CommandNotFoundException + FullyQualifiedErrorId : CouldNotAutoloadMatchingModule So I try to import the module based on the error: import-module Microsoft.Graph.Groups Import-Module : Could not load file or assembly 'Azure.Core, Version=1.33.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8' or one of its dependencies. The system cannot find the file specified. At line:1 char:1 + import-module Microsoft.Graph.Groups + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Import-Module], FileNotFoundException + FullyQualifiedErrorId : System.IO.FileNotFoundException,Microsoft.PowerShell.Commands.ImportModuleCommand What I have done to try resolve: - Installed latest version of MS Graph Module 2.6.1 (Including Beta) - Installed latest version of Az module 10.4.1 - Tried running both standard and beta versions of the command but same issue - Set execution policy to unrestricted temporarily for testing We connect using a certificate / service principal which has satisafactory permissions to remove users from groups. Hope someone can help!1.8KViews0likes3Comments