Skip to content

SDK 5.10.0-Preview Graph UserSources PostAscyn IncludedSources not adding mailbox #496

Closed
@Cnevell

Description

@Cnevell

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't workingOpenApi

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions