Getting Started
インストール手順とこのプラグインのフルマークダウンガイドまでのセットアップ用質問をコピーします。
Set up this Capacitor plugin in the project.
Use the package manager already used by the project.
Install these package(s): `@capgo/capacitor-intune`, `@capgo/capacitor-persona`
Run the required Capacitor sync/update step after installation.
Read this markdown guide for the full setup steps: https://raw.githubusercontent.com/Cap-go/website/refs/heads/main/apps/docs/src/content/docs/docs/plugins/persona/getting-started.mdx
Use that guide for platform-specific steps, native file edits, permissions, config changes, imports, and usage setup.
If that guide references other docs pages, read them too.
インストール
Installのセクションbun add @capgo/capacitor-intunebunx cap syncインポート
インポートのセクションimport { IntuneMAM } from '@capgo/capacitor-intune';API の概要
API の概要のセクションacquireToken
acquireTokenのセクションMicrosoftサインインフローを表示し、承認トークンとアカウントメタデータを返します。
import { IntuneMAM } from '@capgo/capacitor-intune';
await IntuneMAM.acquireToken({} as AcquireTokenOptions);acquireTokenSilent
acquireTokenSilentのセクションMSAL キャッシュから前回サインインしたユーザーからトークンを取得します。
import { IntuneMAM } from '@capgo/capacitor-intune';
await IntuneMAM.acquireTokenSilent({} as AcquireTokenSilentOptions);registerAndEnrollAccount
「registerAndEnrollAccount」セクションIntuneと連携して前回認証済みのアカウントを登録し、エンロールを開始します。
import { IntuneMAM } from '@capgo/capacitor-intune';
await IntuneMAM.registerAndEnrollAccount({} as RegisterAndEnrollAccountOptions);loginAndEnrollAccount
「loginAndEnrollAccount」セクションIntuneに認証とエンロールを要求する前にアプリトークンを要求せずにユーザーをエンロールするように求めます。
import { IntuneMAM } from '@capgo/capacitor-intune';
await IntuneMAM.loginAndEnrollAccount();enrolledAccount
「enrolledAccount」セクション現在利用可能なIntuneアカウントを返します。
import { IntuneMAM } from '@capgo/capacitor-intune';
await IntuneMAM.enrolledAccount();deRegisterAndUnenrollAccount
「deRegisterAndUnenrollAccount」セクションアカウントを Intune から削除し、適切な場合に選択的な削除をトリガーします。
import { IntuneMAM } from '@capgo/capacitor-intune';
await IntuneMAM.deRegisterAndUnenrollAccount({} as IntuneMAMUser);logoutOfAccount
「アカウントからログアウト」を含むセクションMSAL からユーザーをサインアウトすることなく、Intune アカウントをアンインストールせずにします。
import { IntuneMAM } from '@capgo/capacitor-intune';
await IntuneMAM.logoutOfAccount({} as IntuneMAMUser);appConfig
「アプリ設定」を含むセクション管理されたアカウントの Intune アプリのリモート設定を取得します。
import { IntuneMAM } from '@capgo/capacitor-intune';
await IntuneMAM.appConfig({} as IntuneMAMUser);getPolicy
「グループ名」を含むセクション管理されたアカウントの Intune アプリ保護ポリシーを取得します。
import { IntuneMAM } from '@capgo/capacitor-intune';
await IntuneMAM.getPolicy({} as IntuneMAMUser);groupName
「ポリシーを取得」を含むセクション便利なヘルパーが、値が存在する場合の GroupName アプリの設定値を解決します。
import { IntuneMAM } from '@capgo/capacitor-intune';
await IntuneMAM.groupName({} as IntuneMAMUser);sdkVersion
タイトル:「sdkVersion」このプラグインによってバンドルされたネイティブのIntuneとMSAL SDK バージョンを返します。
import { IntuneMAM } from '@capgo/capacitor-intune';
await IntuneMAM.sdkVersion();displayDiagnosticConsole
タイトル:「displayDiagnosticConsole」ネイティブのIntune診断UIを表示します。
import { IntuneMAM } from '@capgo/capacitor-intune';
await IntuneMAM.displayDiagnosticConsole();型の参照
タイトル:「型の参照」AcquireTokenOptions
タイトル:「AcquireTokenOptions」Interactive token acquisition options.
export interface AcquireTokenOptions { /** * Scopes to request, for example `https://graph.microsoft.com/.default`. */ scopes: string[];
/** * When true, always show the Microsoft account picker or sign-in UI. * * @default false */ forcePrompt?: boolean;
/** * Optional login hint for the interactive sign-in flow. */ loginHint?: string;}IntuneMAMAcquireToken
IntuneMAMAcquireTokenexport interface IntuneMAMAcquireToken { accountId: string; accessToken: string; accountIdentifier: string; idToken?: string; username?: string; tenantId?: string; authority?: string;}AcquireTokenSilentOptions
AcquireTokenSilentOptions__CAPGO_KEEP_0__
export interface AcquireTokenSilentOptions { /** * Scopes to request, for example `https://graph.microsoft.com/.default`. */ scopes: string[];
/** * Microsoft Entra object ID returned by `acquireToken` or `enrolledAccount`. */ accountId: string;
/** * When true, bypass the cached access token and request a fresh one. * * @default false */ forceRefresh?: boolean;}RegisterAndEnrollAccountOptions
__CAPGO_KEEP_0__export interface RegisterAndEnrollAccountOptions { /** * Microsoft Entra object ID returned by `acquireToken`. */ accountId: string;}IntuneMAMUser
__CAPGO_KEEP_0__export interface IntuneMAMUser { accountId: string; accountIdentifier?: string; username?: string; tenantId?: string; authority?: string;}IntuneMAMAppConfig
__CAPGO_KEEP_0__export interface IntuneMAMAppConfig { accountId: string; fullData: Record<string, string>[]; values: Record<string, string>; conflicts: string[];}IntuneMAMPolicy
「IntuneMAMPolicy」セクションexport interface IntuneMAMPolicy { accountId: string; isPinRequired?: boolean; isManagedBrowserRequired?: boolean; isScreenCaptureAllowed?: boolean; isContactSyncAllowed?: boolean; isAppSharingAllowed?: boolean; isFileEncryptionRequired?: boolean; notificationPolicy?: string;}IntuneMAMGroupName
「IntuneMAMGroupName」セクションexport interface IntuneMAMGroupName { accountId: string; groupName?: string;}IntuneMAMVersionInfo
「IntuneMAMVersionInfo」セクションexport interface IntuneMAMVersionInfo { platform: 'ios' | 'android'; intuneSdkVersion: string; msalVersion?: string;}IntuneMAMChangeEvent
「IntuneMAMChangeEvent」セクションexport interface IntuneMAMChangeEvent { accountId?: string;}「真実の源」
「真実の源」セクションこのページはプラグインから生成されています src/definitions.ts. upstream の API が変更されたときに、再度 sync を実行してください。
Getting Started から続けてください。
Getting Started から続けてください。「Getting Started から続けてください。」というセクションがあります。 Capgo を使用している場合、 Capgo を使用してダッシュボードと API の操作を計画する場合、 Capacitor のネイティブ機能を使用するには、@capgo/capacitor-intune を使用してください。 Capacitor のネイティブ機能を使用するには、@capgo/capacitor-intune を使用してください。 API の概要 API の実装詳細については、API Overview を参照してください。 __CAPGO_KEEP_0__ の実装詳細については、__CAPGO_KEEP_0__ Overview を参照してください。 Capacitor の概要 API キー API キーに関する実装詳細、そして デバイス デバイスに関する実装詳細、そして