microsoft-graph-sdks

Microsoft Graph API Java - get group using displayName

大兔子大兔子 提交于 2021-02-11 16:53:14
问题 I am using Microsoft Graph API( java SDK) to add members to the group. But I see that I could only pull a group using the "id" .But there should be an easy way to pull the group information using name or displayName? I am trying to get the group id, so that I could use it to add members Group group = graphClient.groups("id") .buildRequest() .get(); 回答1: Have you tried something like this? LinkedList<Option> requestOptions = new LinkedList<Option>(); requestOptions.add(new QueryOption("$filter

Microsoft Graph API Java - get group using displayName

久未见 提交于 2021-02-11 16:52:31
问题 I am using Microsoft Graph API( java SDK) to add members to the group. But I see that I could only pull a group using the "id" .But there should be an easy way to pull the group information using name or displayName? I am trying to get the group id, so that I could use it to add members Group group = graphClient.groups("id") .buildRequest() .get(); 回答1: Have you tried something like this? LinkedList<Option> requestOptions = new LinkedList<Option>(); requestOptions.add(new QueryOption("$filter

Send Mail With Multiple Attachments (Size < 4 MB) Using Graph API Version 2.3.2

南楼画角 提交于 2021-02-11 13:01:44
问题 I'm trying to send mail with multiple attachments (Sum of size is < 4MB) using Graph API version 2.3.2. Please find the following code snippet for the same. public static void main(String[] a){ try { TestBase testBase = new TestBase(); Message message = getMessage(); message.hasAttachments = true; AttachmentCollectionResponse response = new AttachmentCollectionResponse(); response.value = Arrays.asList( getFileAttachment("/home/user/Downloads/3MBPDF.pdf"), getFileAttachment("/home/user

Send Mail With Multiple Attachments (Size < 4 MB) Using Graph API Version 2.3.2

女生的网名这么多〃 提交于 2021-02-11 13:01:40
问题 I'm trying to send mail with multiple attachments (Sum of size is < 4MB) using Graph API version 2.3.2. Please find the following code snippet for the same. public static void main(String[] a){ try { TestBase testBase = new TestBase(); Message message = getMessage(); message.hasAttachments = true; AttachmentCollectionResponse response = new AttachmentCollectionResponse(); response.value = Arrays.asList( getFileAttachment("/home/user/Downloads/3MBPDF.pdf"), getFileAttachment("/home/user

Unable to send Email using Graph API (C# Console) by creating GraphServiceClient through AccessToken as well as ClientCredentialProvider

♀尐吖头ヾ 提交于 2021-02-11 12:50:15
问题 I get the following error Code: OrganizationFromTenantGuidNotFound Message: The tenant for tenant guid 'tenantId' does not exist. I created a .Net Core console app to send emails using the following 2 functions I used the following namespaces using Microsoft.Graph; using Microsoft.Graph.Auth; //In .Net Core this is in preview only using Microsoft.Identity.Client; using Microsoft.IdentityModel.Clients.ActiveDirectory; Common Email Message to be sent in both the functions var message = new

https://graph.microsoft.com/v1.0/places/microsoft.graph.room Api is not giving updated data

拜拜、爱过 提交于 2021-02-10 14:56:06
问题 I am Using Microsoft Graph to fetch list of rooms available for a tenant. As per Documentation, List Palace Api (https://docs.microsoft.com/en-us/graph/api/place-list?view=graph-rest-1.0&tabs=http) should be used for this. Now, I am facing problem with getting updated data using List Places api. I have added few rooms to the tenant but those are not reflected as part of response for List places api. However, findRooms api which is in Beta gives the updated response. https://graph.microsoft

https://graph.microsoft.com/v1.0/places/microsoft.graph.room Api is not giving updated data

此生再无相见时 提交于 2021-02-10 14:55:10
问题 I am Using Microsoft Graph to fetch list of rooms available for a tenant. As per Documentation, List Palace Api (https://docs.microsoft.com/en-us/graph/api/place-list?view=graph-rest-1.0&tabs=http) should be used for this. Now, I am facing problem with getting updated data using List Places api. I have added few rooms to the tenant but those are not reflected as part of response for List places api. However, findRooms api which is in Beta gives the updated response. https://graph.microsoft

Microsoft graph, fetching app permissions based on appId

我与影子孤独终老i 提交于 2021-02-08 09:55:47
问题 Azure AD: I want to fetch delegated as well as application permissions/consent based on appId. 回答1: To Lists delegated permission grants (OAuth2PermissionGrants) and application permissions grants (AppRoleAssignments) granted to an app in Azure Ad. Please use this script 来源: https://stackoverflow.com/questions/63269627/microsoft-graph-fetching-app-permissions-based-on-appid

Using Microsoft.Graph to get current application permissions

混江龙づ霸主 提交于 2021-01-29 08:05:34
问题 My C# program uses the Microsoft.Graph Nuget. And it needs be able to ensure that it has the correct Microsoft Graph application permissions. I know how to add permissions in AD, but I want my program to be able test it has the permissions it needs. Example of what I want to achieve : var graphClient = new GraphServiceClient(authenticationProvider); if(!graphClient.GetPermissions().Contains("AdministrativeUnit.Read.All")) { throw new Exception("Missing Permission AdministrativeUnit.Read.All")

How to update identities collection for existing B2C User using Microsoft Graph and SDK

不羁的心 提交于 2021-01-27 19:36:37
问题 I am trying to update the identities collection for an existing User in an Azure AD B2C tenant. Specifically, I am attempting to add another federated identity entry for the user. According to the Microsoft Graph documentation this should be possible provided that I: Assign User.ManageIdentities.All permission to the client I am using to make the graph call Send the entire existing identities collection, with the new identity entry appended (this also ensures that the existing identity with