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

Groups: M365 specific fields return 404 when included in a $select query on non-M365 tenants #333

Open
manicminer opened this issue Apr 19, 2023 · 0 comments
Labels
Area: GraphService An issue with the Microsoft Graph Service API

Comments

@manicminer
Copy link

Affected fields includes, but might not be limited to:

  • allowExternalSenders
  • autoSubscribeNewMembers
  • hideFromAddressLists
  • hideFromOutlookClients

Specifying these affected fields in a $select OData query, in a non-O365 or non-M365 tenant, results in a 404 response. This isn't even the case when nonexistent field names are specified in a $select query.

Non-Microsoft 365 tenant

GET /beta/groups/97631aed-d4f9-4f46-ac29-90d4c90fb5b9?%24select=allowExternalSenders%2CautoSubscribeNewMembers%2ChideFromAddressLists%2ChideFromOutlookClients HTTP/1.1
Host: graph.microsoft.com
Accept: application/json; charset=utf-8; IEEE754Compatible=false
Content-Type: application/json; charset=utf-8
Odata-Maxversion: 4.0
Odata-Version: 4.0
Accept-Encoding: gzip
HTTP/1.1 404 Not Found
Cache-Control: private
Transfer-Encoding: chunked
Content-Type: application/json
Content-Encoding: gzip
Vary: Accept-Encoding
Strict-Transport-Security: max-age=31536000
request-id: 32fbaaa7-1193-41fa-a42b-83f8c9b6d27c
client-request-id: 32fbaaa7-1193-41fa-a42b-83f8c9b6d27c
x-ms-ags-diagnostic: {"ServerInfo":{"DataCenter":"UK South","Slice":"E","Ring":"3","ScaleUnit":"000","RoleInstance":"LN2PEPF00003303"}}
Date: Wed, 19 Apr 2023 20:56:25 GMT

{
  "error": {
    "code": "ErrorInvalidGroup",
    "message": "The requested group '97631aed-d4f9-4f46-ac29-90d4c90fb5b9@26e25406-6564-4a26-98ee-c71ba03235ad' is invalid.",
    "innerError": {
      "date": "2023-04-19T20:56:25",
      "request-id": "32fbaaa7-1193-41fa-a42b-83f8c9b6d27c",
      "client-request-id": "32fbaaa7-1193-41fa-a42b-83f8c9b6d27c"
    }
  }
}

Microsoft 365 tenant

GET /beta/groups/b7244929-1dfe-464f-9eb2-5a0cf7c236d4?%24select=allowExternalSenders%2CautoSubscribeNewMembers%2ChideFromAddressLists%2ChideFromOutlookClients HTTP/1.1
Host: graph.microsoft.com
Accept: application/json; charset=utf-8; IEEE754Compatible=false
Content-Type: application/json; charset=utf-8
Odata-Maxversion: 4.0
Odata-Version: 4.0
Accept-Encoding: gzip
HTTP/1.1 200 OK
Cache-Control: private
Transfer-Encoding: chunked
Content-Type: application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8
Content-Encoding: gzip
Vary: Accept-Encoding
Strict-Transport-Security: max-age=31536000
request-id: 26d162e9-bd08-4255-bc1c-37496692ff69
client-request-id: 26d162e9-bd08-4255-bc1c-37496692ff69
x-ms-ags-diagnostic: {"ServerInfo":{"DataCenter":"UK South","Slice":"E","Ring":"3","ScaleUnit":"000","RoleInstance":"LN2PEPF0000669C"}}
OData-Version: 4.0
Date: Wed, 19 Apr 2023 20:51:59 GMT

{
  "@odata.context": "https://graph.microsoft.com/beta/$metadata#groups(allowExternalSenders,autoSubscribeNewMembers,hideFromAddressLists,hideFromOutlookClients)/$entity",
  "id": "b7244929-1dfe-464f-9eb2-5a0cf7c236d4",
  "allowExternalSenders": false,
  "autoSubscribeNewMembers": false,
  "hideFromOutlookClients": false,
  "hideFromAddressLists": false
}

This difference in behavior between different tenant SKUs, exposed in this way (e.g. a 404 response) makes it really difficult to determine the potential value of these fields, without knowing in advance the SKU of the tenant being queried.

manicminer added a commit to hashicorp/terraform-provider-azuread that referenced this issue Apr 19, 2023
@irvinesunday irvinesunday added the Area: GraphService An issue with the Microsoft Graph Service API label Jul 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: GraphService An issue with the Microsoft Graph Service API
Projects
None yet
Development

No branches or pull requests

2 participants