Forum Widgets
Latest Discussions
Unable to authenticate with MSAL using a certificate
Hi guys, I'm using the certificate authentication for my WinForms app to connect to SharePoint and Graph API. I followed this article to create the certificate https://learn.microsoft.com/en-us/entra/identity-platform/howto-create-self-signed-certificate Uploaded the certificate to the App Registration, gave all appropriate permissions. However, when I tried to connect to SharePoint or the Graph API, I got this error A configuration issue is preventing authentication - check the error message from the server for details. You can modify the configuration in the application registration portal. See https://aka.ms/msal-net-invalid-client for details. Original exception: AADSTS700021: Client assertion application identifier doesn't match 'client_id' parameter. Review the documentation at https://learn.microsoft.com/entra/identity-platform/certificate-credentials . Microsoft.Graph.ServiceException: Code: generalException Message: An error occurred sending the request. BUT, this only happened on 1 specific machine running Windows 11 Pro. I tested on 4-5 different machines (both W10 and W11), they didn't get this error. I tried verifying the cert thumbprint which matched the one uploaded on the App Registrations. The certificate is not stored in the machine cert store, I use X509KeyStorageFlags.EphemeralKeySet when calling it. Not sure what else to check.SolvedJack_Le_SynOct 10, 2025Copper Contributor125Views0likes6Comments- OllieFeb 26, 2025Brass Contributor118Views0likes2Comments
OneDrive Sharing and Graph "/invite" Endpoint Now Creating Guest Users?
I have an application that integrates with OneDrive via the Graph API, and leverages OneDrive sharing features. Recently I got a new Microsoft E5 dev license, and I've noticed that the sharing workflows and API results are different on this license than on my previous license, and the enterprise licenses of my clients that use the application. All instances are using v1 of the API. On my new license, when I share a OneDrive file/folder using the "/invite" endpoint of the API, it adds the external email I'm sharing with as a Guest on my M365 tenant. It did not do this before. The initial result of the API call to the /invite endpoint is the same as it was previously: [{ 'roles': ['read'], 'grantedToIdentities': [{ 'user': { 'email': '<external email>' } }], 'invitation': { 'signInRequired': True }, 'link': { 'type': 'view', 'webUrl': '<link URL>' } }] However, if I share another file/folder with the same external email, the response is different: [{ 'id': '<permission ID>', 'roles': ['read'], 'grantedTo': { 'user': { 'email': '<external email>', 'displayName': '<external email (minus domain)>' } } }] As you can see, the response now contains "grantedTo" instead of "grantedToIdentity". The response also does not contain a link URL, and I need to perform an extra API call on the permissions of the shared item in order to find the link. This response format matches the responses I expect when I share with internal emails on my tenant, and I can see in the admin centre that the external email has been added as a Guest user. With my old license, and my clients' licenses, external recipients were not added as guests on the M365 tenant, and sharing multiple drive items with the same external user always returned the same format of API response (always including the link URL). Shared Item Access Workflow With my new license, when I use the link to access the shared item with my external email, I am now prompted to provide permissions to my account for the OneDrive tenant (email and tenant domain redacted here for privacy): I am also prompted to set up MFA: With the previous workflow, I just had to enter my email address, then verify the email with a code. I was not prompted to grant permissions or set up MFA. This seems needlessly complicated for sharing drive items with external users, particularly those that are not tech-savvy. Why is the sharing workflow so different on my new dev license? Can I adjust the settings on my tenant to prevent this, or is this how sharing will work going forward? If so, when can I expect this to change for my clients' license? I see no mention of this in the https://learn.microsoft.com/en-us/graph/api/driveitem-invite?view=graph-rest-1.0&tabs=http, and I can't find any mention of the change online. I've reviewed the sharing settings in the Sharepoint Admin Centre. However, these are identical to the settings on my old license. I've tried messing with the External Collaboration settings in Entra to prevent guest users from being created, but this prevents me from sharing with external users altogether. I can't find any other settings that may control this behaviour. Please help!SolvedfstephaneJan 15, 2025Copper Contributor95Views0likes1CommentDrives search endpoint suddenly stopped working
We are facing an issue where the following endpoint has suddenly stopped working (as of 2024-10-23) for only one of our accounts: https://graph.microsoft.com/v1.0/me/drive/root/search(q='.xls') I am able to see the Excel workbooks I'm searching for /drive/root/children endpoint, but the /search is returning no results in one of the two accounts. I know indexing can be an issue that causes a delay for results to show up from /search, but many of the files on the affected account have been there for 6 months. Comparing the working account to the failing one, I don't see any significant difference in the requests. For both accounts, the OAuth scopes requested are the same (from the decoded Bearer token): "scp": "AllSites.Read Files.Read Files.Read.All Files.Read.Selected Files.ReadWrite Files.ReadWrite.All Files.ReadWrite.AppFolder Files.ReadWrite.Selected Sites.Read.All Sites.ReadWrite.All profile openid email" Both accounts are Business OneDrive accounts. I can even access the workbooks directly on the failing account from the following endpoint: https://graph.microsoft.com/v1.0/me/drive/items/017ZHZ4ENXPMNDLB52LFF3ZX55FHHUGZ3F/workbook/worksheets So it seems that /search is simply not working. Our tool is reliant on the /search endpoint, so it would not be a quick fix to change this and it is affecting some of our customers as well. Is this a known issue or does anyone have another clue on what to check? I'm wondering if search indexing is broken on this account (and our customer's account), but I don't know of any way to force it to re-index the files.SolvedJohnG_CDataOct 23, 2024Copper Contributor340Views1like4CommentsFetch apps visible on https://myapps.microsoft.com/ via Graph API
Is it possible to fetch all applications I typically see on https://myapps.microsoft.com/ via Graph API ? Is there an alternate way to fetch this if not and show the same applications as part of a custom portal we have for our employees.SolvedvivekmoosanisimSep 19, 2024Copper Contributor630Views0likes3Comments$filter by multiple properties
Hi all, Unfortunately, I can't manage to filter according to several properties. I'm currently filtering for a specific value, but I would like to filter using one or two "or" operators or other properties: $filter=assignmentState+eq+'Delivered' e.g.: filter where assignmentstate is 'Delivered' or 'Delivering' or 'etc..' When I follow the documentation I run into errors. https://learn.microsoft.com/en-us/graph/filter-query-parameter?tabs=http Does anyone have experience with multiple filters? RegardsSolvedvipfafenAug 08, 2024Copper Contributor241Views0likes1CommentTrying to create Graph connector, can't see menu options
I am trying to follow this microsoft tutuorial to create a graph connector: https://github.com/microsoftgraph/msgraph-sample-github-connector-python I am a global admin in my own personal tenant (it is a paid subscription). The code in this repo creates a connection in azure, and I have no problem following the first part of it (the code successfully creates the connection, and I am able to create the schema for the connection. The problem I have is that I can't see the "Data Options" tab in my tenant. Here is what the instructor sees: here is what I see in my tenant: Once again, I was able to create the schema for the connector via code, so I know it is there:Solvedadamcodes716410Aug 03, 2024Copper Contributor213Views0likes1Commentunresolvable roledefinitionId in roleEligibilitySchedules
I query roleManagement/directory/roleEligibilitySchedules to make an inventory of all assigned Entra ID roles through Priviledged Identity Management. Each role assignment has a property RoleDefinitionId, which refers to the id of the Entra ID role (a list I got from roleManagement/directory/roleDefinitions, it includes custom roles). My problem is that a RoleDefinitionId can only be found for builtin roles, not for custom roles. A custom role has a Guid that cannot be found/resolved anywhere it seems. Is this a bug ? Or am I missing something? Cheers, SemSolvedQonnectJun 15, 2024Copper Contributor470Views0likes4Comments
Resources
Tags
- api240 Topics
- Office Graph165 Topics
- developer128 Topics
- office 36596 Topics
- Graph API31 Topics
- App29 Topics
- Microsoft Graph Api21 Topics
- Microsoft Graph19 Topics
- graph13 Topics
- Delve9 Topics