Skip to content

Missing Organization.tenantType in beta SDK, whereas the API returns it and it's documented in beta doc #499

@cnotin

Description

@cnotin

Expected behavior

The organization resource type should have a tenantType attribute, even in the beta SDK, as documented in beta API https://learn.microsoft.com/en-us/graph/api/resources/organization?view=graph-rest-beta. I also confirm that the beta API returns this field.

Actual behavior

The organization resource type doesn't have a tenantType attribute.

Note that it has a partnerTenantType:

/**
* The Partner Tenant Type.
*
*/
@SerializedName(value = "partnerTenantType", alternate = {"PartnerTenantType"})
@Expose
@Nullable
public PartnerTenantType partnerTenantType;

But it doesn't seem to be the same thing (tenantType should be a string "AAD" or "AAD B2C", whereas partnerTenantType is a whole object).

I noticed that this Java SDK in v1.0 has the tenantType:
https://github.com/microsoftgraph/msgraph-sdk-java/blob/c6825773ea32c1265427cf7843954356cd491074/src/main/java/com/microsoft/graph/models/Organization.java#L227-L234
It's documented in v1.0 too https://learn.microsoft.com/en-us/graph/api/resources/organization?view=graph-rest-1.0 so it isn't even a change between v1.0 and beta.
So it looks like a regression from the v1.0 to beta SDK.

Steps to reproduce the behavior

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions