Closed
Description
When using the 5.10.0-Preview SDK, the following code will not add the SourceType.Mailbox when adding a UserSource.
public async static Task AddCustodianSourcesAsync(EdiscoveryCase eCase, EdiscoveryCustodian custodian)
{
var userSource = await GraphHelper.GraphServiceClient.Security.Cases
.EdiscoveryCases[eCase.Id]
.Custodians[custodian.Id]
.UserSources
.PostAsync(new UserSource()
{
Email = custodian.Email,
IncludedSources = SourceType.Mailbox | SourceType.Site
});
return userSource;
}
This will only add the mailbox if I do not include SourceType.Site. If I include Site, it will only include Site and ignore Mailbox. This does not present itself in the 4.x SDK or in GE. This does not work in any of the 5.x generation SDKs.