Persona __CAPGO_KEEP_0__ リポジトリ
このプラグインのセットアップコマンドとフルマークダウンガイドを含むインストールステップをコピーできます。
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.
インストール
「インストール」のセクションAI-Assisted セットアップを使用してプラグインをインストールできます。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を使用する場合は、以下のコマンドを実行してください。プラットフォーム固有の指示に従ってください。
bun add @capgo/capacitor-intunebunx cap syncインポート
「インポート」のセクションimport { IntuneMAM } from '@capgo/capacitor-intune';APIの概要
「APIの概要」のセクションacquireToken
Section titled “acquireToken”Microsoftサインインフローを表示し、アクセストークンとアカウントメタデータを返します。
import { IntuneMAM } from '@capgo/capacitor-intune';
await IntuneMAM.acquireToken({} as AcquireTokenOptions);acquireTokenSilent
Section titled “acquireTokenSilent”MSALキャッシュから、以前サインインしたユーザーからトークンを取得します。
import { IntuneMAM } from '@capgo/capacitor-intune';
await IntuneMAM.acquireTokenSilent({} as AcquireTokenSilentOptions);registerAndEnrollAccount
Section titled “registerAndEnrollAccount”Intuneに登録済みのアカウントを登録し、エンロールを開始します。
import { IntuneMAM } from '@capgo/capacitor-intune';
await IntuneMAM.registerAndEnrollAccount({} as RegisterAndEnrollAccountOptions);loginAndEnrollAccount
Section titled “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
「logoutOfAccount」セクションMSAL からユーザーをサインアウトしますが、Intune アカウントをアンロールすることはありません。
import { IntuneMAM } from '@capgo/capacitor-intune';
await IntuneMAM.logoutOfAccount({} as IntuneMAMUser);appConfig
「appConfig」セクション管理されたアカウントのリモート Intune アプリ構成を取得します。
import { IntuneMAM } from '@capgo/capacitor-intune';
await IntuneMAM.appConfig({} as IntuneMAMUser);getPolicy
Section titled “getPolicy”管理アカウントの現在の有効なIntuneアプリ保護ポリシーを取得します。
import { IntuneMAM } from '@capgo/capacitor-intune';
await IntuneMAM.getPolicy({} as IntuneMAMUser);groupName
Section titled “groupName”アプリの設定値が存在する場合に解決する便利なヘルパーです。 GroupName コピー
import { IntuneMAM } from '@capgo/capacitor-intune';
await IntuneMAM.groupName({} as IntuneMAMUser);Return the native Intune and MSAL SDK versions bundled by this plugin.
import { IntuneMAM } from '@capgo/capacitor-intune';
await IntuneMAM.sdkVersion();displayDiagnosticConsole
ネイティブIntuneの診断UIを表示します。Section titled “getPolicy”
import { IntuneMAM } from '@capgo/capacitor-intune';
await IntuneMAM.displayDiagnosticConsole();型の参照
「型の参照」のセクションAcquireTokenOptions
「AcquireTokenOptions」のセクションインタラクティブなトークン取得オプション。
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
「IntuneMAMAcquireToken」のセクションexport interface IntuneMAMAcquireToken { accountId: string; accessToken: string; accountIdentifier: string; idToken?: string; username?: string; tenantId?: string; authority?: string;}AcquireTokenSilentOptions
「AcquireTokenSilentOptions」のセクション静的トークン取得オプション。
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
「RegisterAndEnrollAccountOptions」のセクションexport interface RegisterAndEnrollAccountOptions { /** * Microsoft Entra object ID returned by `acquireToken`. */ accountId: string;}IntuneMAMUser
「IntuneMAMUser」のセクションexport interface IntuneMAMUser { accountId: string; accountIdentifier?: string; username?: string; tenantId?: string; authority?: string;}IntuneMAMAppConfig
「IntuneMAMAppConfig」のセクション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.tsAPIがアップストリームで変更された場合に、パブリック APIを再度同期してください。
「@__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-intune」を使用して 「@__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-intune」を使用して to plan dashboard and API operations, connect it with 「@capgo/capacitor-intune」 「@capgo/capacitor-intune」 API アサイスャプト API アサイスャプトには、アサイスャプトを解わだ アサイスャプトを反実にきる。 アサイスャプトには、アサイスャプトを解わだ。 API アサイスャプト、、 for the implementation detail in API Keys, and アサイスャプトを解わだ。 アサイスャプトには、アサイスャプトを解わだ。、、アサイスャプト、、アサイスャプトを解わだ。