MS Graph
7 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.8KViews0likes3CommentsCannot initiate PSTN calls from bot
Hi everybody, within my calling bot I try to initiate a PSTN call like https://docs.microsoft.com/en-us/graph/api/application-post-calls?view=graph-rest-1.0&tabs=http#example-8-create-peer-to-peer-pstn-call-with-application-hosted-media or invite a PSTN as new participant to an Existing call like https://docs.microsoft.com/en-us/graph/api/participant-invite?view=graph-rest-1.0&tabs=http#example-4-invite-one-pstn-participant-to-an-existing-group-call I always get following exception: InternalServerError Microsoft.Graph.ServiceException: Code: 9999 Message: Unknown internal server error. Inner error: AdditionalData: date: 2021-10-26T10:15:50 request-id: 58538d09-d622-4d61-854e-61606e0f6530 client-request-id: 58538d09-d622-4d61-854e-61606e0f6530 ClientRequestId: 58538d09-d622-4d61-854e-61606e0f6530 at Microsoft.Graph.HttpProvider.SendAsync(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationToken cancellationToken) at Microsoft.Graph.BaseRequest.SendRequestAsync(Object serializableObject, CancellationToken cancellationToken, HttpCompletionOption completionOption) at Microsoft.Graph.BaseRequest.SendAsync[T](Object serializableObject, CancellationToken cancellationToken, HttpCompletionOption completionOption) at RC_MsGraphLink.Controllers.GraphApi.GraphHandler.MakeCall(InvitationParticipantInfo device) in C:\Users\GeW\Documents\tfshome\GLOBAL\MAIN\RC_MsGraphLink\RC_MsGraphLink\Controllers\GraphApi\GraphHandlerCallControl.cs:line 45 My bot has assigned a PSTN number and could be called from extern. Everything also works fine if I try the scenarios with MS Teams Users. We also followed the instrucions from https://docs.microsoft.com/en-us/graph/cloud-communications-phone-number#assign-a-phone-number-to-your-bot There is a similar problem described here: https://techcommunity.microsoft.com/t5/teams-developer/initiate-pstn-call-from-teams-to-public-landline/m-p/2105893#M2564 Any ideas? Thanks for yout help. Regards GerdSolved3.6KViews0likes8CommentsField Name "_LikeCount and _CommentCount" is not recognize in Graph Explorer
Hi I'm trying to query most liked and commented news in SharePoint Site Pages however when trying to order descending using _LikeCount and _CommentCount i received this error: A provided field name is not recognized I don't have any issue with other fields except these two. https://graph.microsoft.com/v1.0/sites/{ID}/lists/Site Pages/items?$filter=fields/PromotedState eq 2&expand=fields($select=createdDateTime,BannerImageUrl,PromotedState,FileLeafRef,AuthorLookupId,Modified,_CommentCount,_LikeCount,Title,Description,LinkTitle)&$top=5&$orderby=fields/_LikeCount desc Any help is appreciated. Thanks!1KViews0likes0CommentsWhen Sending an Adaptive Card to Teams via MS Graph Can The Copy Link & Title Bar Be Removed?
When using MS Graph and I use the message endpoint to https://docs.microsoft.com/en-us/graph/api/channel-post-message?view=graph-rest-1.0&tabs=http to a channel in MS Teams, and that message includes an adaptive card as an attachment, I always end up with a blank space/padding at the top of the card, and 3-dot menu to the right (with a Copy option). This padding doesn't seem to appear on any of the examples given in the documentation, and the blank space at the top of all my cards looks a bit naff. Is there a way to remove this spacing? Or, alternatively, is there a way to add content into this space, and alter the options shown under the 3-dot menu? Endpoint being used... https://graph.microsoft.com/v1.0/teams/{team-id}/channels/{channel-id}/messages Example request body being used... { "body": { "contentType": "html", "content": "<attachment id=\"4465B062-EE1C-4E0F-B944-3B7AF61EAF40\"></attachment>" }, "attachments": [ { "id": "4465B062-EE1C-4E0F-B944-3B7AF61EAF40", "contentType": "application/vnd.microsoft.card.adaptive", "content": "{\n \"type\": \"AdaptiveCard\",\n \"$schema\": \"http://adaptivecards.io/schemas/adaptive-card.json\",\n \"version\": \"1.3\",\n \"body\": [\n {\n \"type\": \"TextBlock\",\n \"size\": \"Large\",\n \"weight\": \"Bolder\",\n \"text\": \"My News Item\",\n \"wrap\": true\n }\n ],\n \"actions\": [\n {\n \"type\": \"Action.OpenUrl\",\n \"title\": \"View\",\n \"url\": \"https://bing.com\"\n }\n ]\n }" } ] }7.2KViews0likes3CommentsDevice neutral storage of applications data using OneDrive to manage a users own applications data
When designing an application we need to be mindful about privacy and security concerns when accessing data within the application, in particular taking into consideration anything that is sensitive, personalised, or should not be written to an insecure local disk. In the medical context, for example, every day clinicians may have to use several machines, often connecting to a local area network to retrieve their profile, settings, and data. This must be done in a safe and reliable way. Enter Microsoft Graphs API. By using this API we can offload much of the management of login security to Microsoft. The API provides a wide range of new functionality that can be integrated into an application such as storing data of personal relevance generated by an app to a user’s own OneDrive account. Thus any device with the same application can be logged in via Single Sign-On (SSO) and retrieve where that user left off.3.9KViews0likes0Comments