Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove-EntraContact does not work #1102

Open
sergio-re opened this issue Sep 19, 2024 · 1 comment
Open

Remove-EntraContact does not work #1102

sergio-re opened this issue Sep 19, 2024 · 1 comment
Assignees

Comments

@sergio-re
Copy link

Thanks for reporting the bug. Please ensure you've gone through the following checklist before opening an issue:

  • Make sure you can reproduce this issue using the latest released version of Microsoft.Graph.Entra or Microsoft.Graph.Entra.Beta.
  • Please search the existing issues to see if there has been a similar issue filed.

Describe the bug

A clear and concise description of what the bug is.
When trying to use this method, the API responds with the following error:
Remove-MgContact_Delete1: Data contract version does not allow 'Delete' operations against instances of resource 'OrgContact'.

To Reproduce
Steps to reproduce the behavior:

  1. Connect-Entra -Scopes Contacts.ReadWrite
  2. Get-Get-EntraContact $ObjectID
  3. Remove-EntraContact $ObjectID
    #Response: Remove-MgContact_Delete1: Data contract version does not allow 'Delete' operations against instances of resource 'OrgContact'.

I'm guessing the reason for this is that in the old API, Microsoft Graph (and the error points to using the old API behind the scenes), the OrgContact is a read-only value: https://learn.microsoft.com/en-us/graph/api/resources/orgcontact?view=graph-rest-1.0

Expected behavior
Contact being deleted.

@SteveMutungi254
Copy link
Contributor

Thank you for highlighting this issue, @sergio-re. You're correct—orgContact is currently read-only.

What next?

We're collaborating with the API owner to resolve this and will provide updates as progress is made.

Related issues:

#1287

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants