インストールして、Microsoft Intune MAM、ポリシー、アプリ設定、MSALのサポートを使用して、__CAPGO_KEEP_0__アプリを管理します。 - __CAPGO_KEEP_1__アプリのリアルタイムの更新を管理します。

Getting Started

GitHub

CapgoのAI-Assisted Setupを使用してプラグインをインストールできます。AIツールにCapgoスキルを追加するには、以下のコマンドを実行してください。

ターミナル画面
npx skills add https://github.com/Cap-go/capgo-skills --skill capacitor-plugins

次に、以下のプロンプトを使用してください。

Use the `capacitor-plugins` skill from `Cap-go/capgo-skills` to install the `@capgo/capacitor-intune` plugin in my project.

Manual Setupを使用する場合は、以下のコマンドを実行してプラグインをインストールし、以下のプラットフォーム固有の手順に従ってください。

  1. パッケージをインストール

    ターミナル画面
    bun add @capgo/capacitor-intune
  2. ネイティブプロジェクトを同期

    ターミナル画面
    bunx cap sync
  3. Intuneのネイティブ設定を完了 専用の iOSの設定Androidの設定 要件

  • Capacitor 8+
  • Android with Intune Android SDK 12.0.3
  • iOS with Intune iOS SDK 21.5.1
  • iOS展開対象 17.0+

Ionic’s Intune docs currently call out a January 19, 2026 cutoff for apps built with Xcode 26, requiring Intune iOS SDK 21.1.0+。このプラグインはすでに 21.5.1.

基本的な使用方法

「基本的な使用方法」
import { IntuneMAM } from '@capgo/capacitor-intune';
await IntuneMAM.addListener('appConfigChange', (result) => {
console.log('App config changed', result.accountId);
});
await IntuneMAM.addListener('policyChange', (result) => {
console.log('Policy changed', result.accountId);
});
const auth = await IntuneMAM.acquireToken({
scopes: ['https://graph.microsoft.com/.default'],
loginHint: 'alex@example.com',
});
await IntuneMAM.registerAndEnrollAccount({
accountId: auth.accountId,
});
const appConfig = await IntuneMAM.appConfig({
accountId: auth.accountId,
});
const policy = await IntuneMAM.getPolicy({
accountId: auth.accountId,
});
console.log({ auth, appConfig, policy });

一般的なフロー

「一般的なフロー」
const auth = await IntuneMAM.acquireToken({
scopes: ['https://graph.microsoft.com/.default'],
});
await IntuneMAM.registerAndEnrollAccount({
accountId: auth.accountId,
});
const token = await IntuneMAM.acquireTokenSilent({
accountId: 'AAD_OBJECT_ID',
scopes: ['https://graph.microsoft.com/.default'],
forceRefresh: true,
});

現在登録済みのアカウントを読み取る

「現在登録済みのアカウントを読み取る」
const user = await IntuneMAM.enrolledAccount();

サインアウトまたは選択的に消去

「サインアウトまたは選択的に消去」
await IntuneMAM.logoutOfAccount({ accountId: 'AAD_OBJECT_ID' });
await IntuneMAM.deRegisterAndUnenrollAccount({ accountId: 'AAD_OBJECT_ID' });

API サマリー

「API サマリー」
  • acquireToken(options)Microsoft サインインを開始し、トークンとアカウント メタデータを返します。
  • acquireTokenSilent(options)キャッシュされたトークンを読み取る (既存のアカウント用)
  • registerAndEnrollAccount(options): IntuneとMSALアカウントを登録し、登録プロセスをトリガーします。
  • loginAndEnrollAccount(): Intuneがログインと登録フローを制御します。
  • appConfig(user): Intuneアプリのアカウント設定値を読み取ります。
  • getPolicy(user): Intuneアプリ保護ポリシーを読み取ります。
  • groupName(user): 共通 GroupName : configヘルパー値を読み取ります。
  • sdkVersion(): IntuneとMSALのバージョンをインスペクトします。

プラットフォームに関する注意事項

「プラットフォームに関する注意事項」セクション
  • Webはサポートされていません。
  • iOSとAndroidは、Azureの登録、Intuneポリシー割り当て、リダイレクトURI、エンタイトメントなど、ネイティブプロジェクトの設定が必要です。 cap sync.
  • Azureの登録、Intuneポリシー割り当て、リダイレクトURI、エンタイトメントなど、ネイティブプロジェクトの設定が必要です。

続けてください

「続けてください」

あなたが使用している Getting Started 企業の移行と運用を計画するために Using @capgo/capacitor-intune @capgo/capacitor-intune Capgo Enterprise @Capgo/__CAPGO_KEEP_1__-intune に接続します。 __CAPGO_KEEP_0__ Enterprise Capgo Alternatives Capgo製品ワークフローについての Capgo の代替品 Capgo コンサルティング Capgo製品ワークフローについての Capgo コンサルティング