@microsoft/msgraph-beta-sdk-users
Version:
Users fluent API for Microsoft Graph
52 lines • 2.77 kB
TypeScript
import { type DirectoryObject } from '@microsoft/msgraph-beta-sdk/models/index.js';
import { type RefRequestBuilder } from './ref/index.js';
import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
/**
* Provides operations to manage the manager property of the microsoft.graph.user entity.
*/
export interface ManagerRequestBuilder extends BaseRequestBuilder<ManagerRequestBuilder> {
/**
* Provides operations to manage the collection of user entities.
*/
get ref(): RefRequestBuilder;
/**
* Returns the user or organizational contact assigned as the user's manager. Optionally, you can expand the manager's chain up to the root node.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {Promise<DirectoryObject>}
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
* @see {@link https://learn.microsoft.com/graph/api/user-list-manager?view=graph-rest-beta|Find more info here}
*/
get(requestConfiguration?: RequestConfiguration<ManagerRequestBuilderGetQueryParameters> | undefined): Promise<DirectoryObject | undefined>;
/**
* Returns the user or organizational contact assigned as the user's manager. Optionally, you can expand the manager's chain up to the root node.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
*/
toGetRequestInformation(requestConfiguration?: RequestConfiguration<ManagerRequestBuilderGetQueryParameters> | undefined): RequestInformation;
}
/**
* Returns the user or organizational contact assigned as the user's manager. Optionally, you can expand the manager's chain up to the root node.
*/
export interface ManagerRequestBuilderGetQueryParameters {
/**
* Expand related entities
*/
expand?: string[];
/**
* Select properties to be returned
*/
select?: string[];
}
/**
* Uri template for the request builder.
*/
export declare const ManagerRequestBuilderUriTemplate = "{+baseurl}/users/{user%2Did}/manager{?%24expand,%24select}";
/**
* Metadata for all the navigation properties in the request builder.
*/
export declare const ManagerRequestBuilderNavigationMetadata: Record<Exclude<keyof ManagerRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
/**
* Metadata for all the requests in the request builder.
*/
export declare const ManagerRequestBuilderRequestsMetadata: RequestsMetadata;
//# sourceMappingURL=index.d.ts.map