Backstage
    Preparing search index...

    A HTTP Client that communicates with Microsoft Graph API. Simplify Authentication and API calls to get User and Group from Microsoft Graph

    Uses msal-node for authentication

    Index

    Constructors

    Methods

    • Get a collection of Group from Graph API and return as AsyncIterable

      Parameters

      • Optionalquery: ODataQuery

        OData Query ODataQuery

      • OptionalqueryMode: "basic" | "advanced"

        Mode to use while querying. Some features are only available at "advanced".

      • path: string = 'groups'

        Resource endpoint in Microsoft Graph

      Returns AsyncIterable<Group>

    • Get a collection of User belonging to a Group from Graph API and return as AsyncIterable

      Parameters

      • groupId: string

        The unique identifier for the Group resource

      • Optionalquery: ODataQuery

        OData Query ODataQuery

      • OptionalqueryMode: "basic" | "advanced"

        Mode to use while querying. Some features are only available at "advanced".

      Returns AsyncIterable<User>

    • Get a collection of User from Graph API and return as AsyncIterable

      Parameters

      • Optionalquery: ODataQuery

        OData Query ODataQuery

      • OptionalqueryMode: "basic" | "advanced"

        Mode to use while querying. Some features are only available at "advanced".

      • path: string = 'users'

        Resource endpoint in Microsoft Graph

      Returns AsyncIterable<User>

    • Get a collection of resource from Graph API and return an AsyncIterable of that resource

      Type Parameters

      • T

      Parameters

      • path: string

        Resource in Microsoft Graph

      • Optionalquery: ODataQuery

        OData Query ODataQuery

      • OptionalqueryMode: "basic" | "advanced"

        Mode to use while querying. Some features are only available at "advanced".

      Returns AsyncIterable<T>

    • Makes a HTTP call to Graph API with token

      Parameters

      • url: string

        HTTP Endpoint of Graph API

      • Optionalheaders: Record<string, string>

        optional HTTP headers

      • retryCount: number = 2

      Returns Promise<Response>