Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 


Quelle  graph-members.ts

  Sprache: JAVA
 

import type { OpenClawConfig } from "../runtime-api.js";
import { fetchGraphJson, resolveGraphToken } from "./graph.js";

type GraphUserProfile = {
  id?: string;
  displayName?: string;
  mail?: string;
  jobTitle?: string;
  userPrincipalName?: string;
  officeLocation?: string;
};

export type GetMemberInfoMSTeamsParams = {
  cfg: OpenClawConfig;
  userId: string;
};

export type GetMemberInfoMSTeamsResult = {
  user: {
    id: string | undefined;
    displayName: string | undefined;
    mail: string | undefined;
    jobTitle: string | undefined;
    userPrincipalName: string | undefined;
    officeLocation: string | undefined;
  };
};

/**
 * Fetch a user profile from Microsoft Graph by user ID.
 */

export async function getMemberInfoMSTeams(
  params: GetMemberInfoMSTeamsParams,
): Promise<GetMemberInfoMSTeamsResult> {
  const token = await resolveGraphToken(params.cfg);
  const path = `/users/${encodeURIComponent(params.userId)}?$select=id,displayName,mail,jobTitle,userPrincipalName,officeLocation`;
  const user = await fetchGraphJson<GraphUserProfile>({ token, path });
  return {
    user: {
      id: user.id,
      displayName: user.displayName,
      mail: user.mail,
      jobTitle: user.jobTitle,
      userPrincipalName: user.userPrincipalName,
      officeLocation: user.officeLocation,
    },
  };
}

Messung V0.5 in Prozent
C=98 H=87 G=92

¤ Dauer der Verarbeitung: 0.18 Sekunden  (vorverarbeitet am  2026-05-26) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Software

     Produkte
     Quellcodebibliothek

Aktivitäten

     Artikel über Sicherheit
     Anleitung zur Aktivierung von SSL

Muße

     Gedichte
     Musik
     Bilder

Jenseits des Üblichen ....

Besucherstatistik

Besucherstatistik

Monitoring

Montastic status badge