From 9b572e4220e9c75467fd0c3525893a31dd0a6f35 Mon Sep 17 00:00:00 2001 From: Microsoft Graph DevX Tooling Date: Fri, 30 Aug 2024 05:04:17 +0000 Subject: [PATCH] Updating examples --- .../Get-MgBetaServicePrincipalOwnerByRef.md | 1 - ...ServicePrincipalSynchronizationTemplate.md | 11 + ...ServicePrincipalClaimMappingPolicyByRef.md | 1 + ...ePrincipalHomeRealmDiscoveryPolicyByRef.md | 1 + ...cipalRemoteDesktopSecurityConfiguration.md | 11 + ...pSecurityConfigurationTargetDeviceGroup.md | 11 + ...et-MgServicePrincipalSynchronizationJob.md | 11 + ...ervicePrincipalSynchronizationJobSchema.md | 11 + ...ServicePrincipalSynchronizationTemplate.md | 11 + ...w-MgApplicationAppManagementPolicyByRef.md | 15 + ...w-MgApplicationTokenIssuancePolicyByRef.md | 4 +- ...w-MgApplicationTokenLifetimePolicyByRef.md | 4 +- ...New-MgServicePrincipalAppRoleAssignedTo.md | 4 +- ...New-MgServicePrincipalAppRoleAssignment.md | 4 +- ...ServicePrincipalClaimMappingPolicyByRef.md | 4 +- ...ncipalDelegatedPermissionClassification.md | 4 +- ...ePrincipalHomeRealmDiscoveryPolicyByRef.md | 4 +- ...pSecurityConfigurationTargetDeviceGroup.md | 17 + ...ew-MgServicePrincipalSynchronizationJob.md | 15 + ...anagementPolicyAppManagementPolicyByRef.md | 11 + .../Remove-MgApplicationExtensionProperty.md | 4 +- ...gApplicationFederatedIdentityCredential.md | 4 +- ...cationFederatedIdentityCredentialByName.md | 1 + ...-MgApplicationOwnerDirectoryObjectByRef.md | 11 + ...nIssuancePolicyTokenIssuancePolicyByRef.md | 11 + ...nLifetimePolicyTokenLifetimePolicyByRef.md | 11 + .../Remove-MgGroupAppRoleAssignment.md | 4 +- ...ove-MgServicePrincipalAppRoleAssignedTo.md | 4 +- ...aimMappingPolicyClaimMappingPolicyByRef.md | 11 + ...ncipalDelegatedPermissionClassification.md | 4 +- ...veryPolicyHomeRealmDiscoveryPolicyByRef.md | 11 + ...rvicePrincipalOwnerDirectoryObjectByRef.md | 15 + ...cipalRemoteDesktopSecurityConfiguration.md | 11 + ...pSecurityConfigurationTargetDeviceGroup.md | 0 ...ve-MgServicePrincipalSynchronizationJob.md | 11 + ...MgServicePrincipalSynchronizationSecret.md | 32 ++ ...cationFederatedIdentityCredentialByName.md | 0 ...te-MgApplicationSynchronizationTemplate.md | 0 ...cipalRemoteDesktopSecurityConfiguration.md | 16 + ...pSecurityConfigurationTargetDeviceGroup.md | 16 + ...ervicePrincipalSynchronizationJobSchema.md | 0 ...ebinarRegistrationConfigurationQuestion.md | 11 + ...nitialize-MgBetaBackupRestoreServiceApp.md | 2 +- .../beta/examples/New-MgBetaApproval.md | 0 ...ebinarRegistrationConfigurationQuestion.md | 33 ++ ...ebinarRegistrationConfigurationQuestion.md | 11 + .../Search-MgBetaBackupRestorePoint.md | 29 +- .../beta/examples/Stop-MgBetaApprovalItem.md | 0 .../v1.0/examples/Enable-MgBackupRestore.md | 0 .../examples/Get-MgVirtualEventTownhall.md | 11 + .../Get-MgVirtualEventTownhallPresenter.md | 11 + .../examples/Get-MgVirtualEventWebinar.md | 2 +- .../Get-MgVirtualEventWebinarRegistration.md | 2 +- ...alEventWebinarRegistrationConfiguration.md | 11 + ...ebinarRegistrationConfigurationQuestion.md | 11 + ...gVirtualEventWebinarRegistrationSession.md | 11 + .../Get-MgVirtualEventWebinarSession.md | 2 +- ...tialize-MgBackupRestoreProtectionPolicy.md | 0 .../Initialize-MgBackupRestoreServiceApp.md | 0 .../Initialize-MgBackupRestoreSession.md | 0 ...teSolutionBackupRestoreProtectionPolicy.md | 0 ...activateSolutionBackupRestoreServiceApp.md | 0 .../examples/New-MgVirtualEventTownhall.md | 0 .../New-MgVirtualEventTownhallPresenter.md | 37 ++ .../examples/New-MgVirtualEventWebinar.md | 0 .../New-MgVirtualEventWebinarPresenter.md | 37 ++ .../New-MgVirtualEventWebinarRegistration.md | 88 +++++ ...ebinarRegistrationConfigurationQuestion.md | 33 ++ .../Remove-MgVirtualEventTownhallPresenter.md | 11 + ...ebinarRegistrationConfigurationQuestion.md | 11 + .../examples/Search-MgBackupRestorePoint.md | 0 .../examples/Update-MgVirtualEventTownhall.md | 22 ++ .../examples/Update-MgVirtualEventWebinar.md | 22 ++ .../Update-MgVirtualEventWebinarPresenter.md | 24 ++ .../Get-MgBetaSolutionBusinessScenario.md | 11 + ...etaSolutionBusinessScenarioByUniqueName.md | 1 + ...t-MgBetaSolutionBusinessScenarioPlanner.md | 11 + ...usinessScenarioPlannerPlanConfiguration.md | 11 + ...rioPlannerPlanConfigurationLocalization.md | 22 ++ ...BetaSolutionBusinessScenarioPlannerTask.md | 33 ++ ...usinessScenarioPlannerTaskConfiguration.md | 11 + .../New-MgBetaSolutionBusinessScenario.md | 17 + ...BetaSolutionBusinessScenarioPlannerTask.md | 29 ++ .../Remove-MgBetaSolutionBusinessScenario.md | 11 + ...etaSolutionBusinessScenarioByUniqueName.md | 1 + ...BetaSolutionBusinessScenarioPlannerTask.md | 11 + .../Update-MgBetaSolutionBusinessScenario.md | 18 + ...etaSolutionBusinessScenarioByUniqueName.md | 1 + ...usinessScenarioPlannerPlanConfiguration.md | 77 ++++ ...BetaSolutionBusinessScenarioPlannerTask.md | 20 + ...usinessScenarioPlannerTaskConfiguration.md | 127 +++++++ ...Update-MgDeviceManagementRoleDefinition.md | 2 +- ...gDeviceManagementDeviceCompliancePolicy.md | 26 +- ...w-MgDeviceManagementDeviceConfiguration.md | 129 ++----- ...gDeviceManagementDeviceCompliancePolicy.md | 20 +- ...e-MgDeviceManagementDeviceConfiguration.md | 64 ++-- ...tManagedAppRegistrationAppliedPolicyApp.md | 1 - ...ManagedAppRegistrationIntendedPolicyApp.md | 1 - ...viceAppManagementManagedEBookAssignment.md | 4 +- .../New-MgDeviceAppManagementMobileApp.md | 25 +- .../examples/Update-MgDeviceAppManagement.md | 4 - .../Update-MgDeviceAppManagementMobileApp.md | 26 +- .../Remove-MgBetaDriveItemCheckout.md | 11 + .../Remove-MgBetaDriveRootCheckout.md | 1 + .../Update-MgBetaDriveItemRetentionLabel.md | 4 +- ...emove-MgBetaGroupCalendarEventPermanent.md | 0 .../Remove-MgBetaGroupCalendarPermanent.md | 0 .../Remove-MgBetaGroupDriveItemCheckout.md | 1 + .../Remove-MgBetaGroupDriveRootCheckout.md | 1 + .../Remove-MgBetaGroupEventPermanent.md | 0 ...ve-MgBetaGroupSiteContentModelFromDrive.md | 1 + ...GroupSiteContentModelGetByNameFromDrive.md | 1 + ...ew-MgBetaAdminPeopleProfileCardProperty.md | 26 ++ .../New-MgBetaAdministrativeUnitMember.md | 23 ++ ...New-MgBetaAdministrativeUnitMemberByRef.md | 11 +- ...gBetaAdministrativeUnitScopedRoleMember.md | 15 +- .../New-MgBetaDeviceRegisteredUserByRef.md | 15 + ...onfigurationTrustedCertificateAuthority.md | 18 + ...BetaDirectoryPendingExternalUserProfile.md | 16 + ...ve-MgBetaAdminPeopleProfileCardProperty.md | 11 + ...gBetaAdministrativeUnitScopedRoleMember.md | 8 +- ...viceRegisteredOwnerDirectoryObjectByRef.md | 11 + ...eviceRegisteredUserDirectoryObjectByRef.md | 11 + ...ertificateBasedApplicationConfiguration.md | 11 + ...onfigurationTrustedCertificateAuthority.md | 11 + ...move-MgBetaDirectoryExternalUserProfile.md | 11 + ...BetaDirectoryPendingExternalUserProfile.md | 11 + ...DirectoryRoleMemberDirectoryObjectByRef.md | 11 + .../Remove-MgBetaOrganizationBranding.md | 15 + ...anizationBrandingLocalizationBannerLogo.md | 13 + .../Update-MgBetaAdminPeopleItemInsight.md | 15 + ...te-MgBetaAdminPeopleProfileCardProperty.md | 25 ++ .../Update-MgBetaAdminPeoplePronoun.md | 15 + ...ertificateBasedApplicationConfiguration.md | 17 + ...onfigurationTrustedCertificateAuthority.md | 15 + ...date-MgBetaDirectoryExternalUserProfile.md | 15 + ...MgBetaDirectoryOnPremiseSynchronization.md | 25 ++ ...BetaDirectoryPendingExternalUserProfile.md | 15 + ...MgBetaOrganizationSettingContactInsight.md | 15 +- ...onSettingMicrosoftApplicationDataAccess.md | 11 +- ...-MgBetaOrganizationSettingPersonInsight.md | 15 +- ...mentManagementAccessPackageByUniqueName.md | 1 + ...agementAccessPackageCatalogByUniqueName.md | 1 + ...mentManagementAccessPackageByUniqueName.md | 1 + ...agementAccessPackageCatalogByUniqueName.md | 1 + ...mentManagementAccessPackageByUniqueName.md | 1 + ...agementAccessPackageCatalogByUniqueName.md | 1 + ...ntityGovernanceLifecycleWorkflowInsight.md | 0 ...ycleWorkflowInsightTaskProcessedSummary.md | 0 ...WorkflowInsightWorkflowProcessedSummary.md | 0 ...ifecycleWorkflowInsightProcessedSummary.md | 0 .../Get-MgBetaUserAuthenticationOperation.md | 4 +- ...AttributeIdentityUserFlowAttributeByRef.md | 1 - .../Get-MgIdentityAuthenticationEventFlow.md | 44 +++ ...nExternalUserSelfServiceSignUpAttribute.md | 11 + ...alUserSelfServiceSignUpIdentityProvider.md | 11 + ...rSelfServiceSignUpIdentityProviderByRef.md | 1 + ...rnalUserSelfServiceSignUpAttributeByRef.md | 1 + ...thenticationEventFlowIncludeApplication.md | 11 + ...t-MgIdentityAuthenticationEventListener.md | 11 + ...ityB2XUserFlowApiConnectorConfiguration.md | 11 + ...gIdentityB2XUserFlowLanguageDefaultPage.md | 1 + ...tyB2XUserFlowLanguageDefaultPageContent.md | 11 + ...yB2XUserFlowLanguageOverridePageContent.md | 1 + ...Get-MgIdentityConditionalAccessTemplate.md | 22 ++ ...MgIdentityCustomAuthenticationExtension.md | 11 + .../Get-MgPolicyAppManagementPolicy.md | 11 + .../Get-MgPolicyAppManagementPolicyApplyTo.md | 22 ++ ...et-MgPolicyAuthenticationStrengthPolicy.md | 22 ++ .../Get-MgPolicyClaimMappingPolicyApplyTo.md | 11 + ...essPolicyPartnerIdentitySynchronization.md | 11 + ...nantOrganizationIdentitySynchronization.md | 11 + ...iTenantOrganizationPartnerConfiguration.md | 11 + .../Get-MgPolicyDefaultAppManagementPolicy.md | 11 + .../Get-MgPolicyHomeRealmDiscoveryPolicy.md | 6 +- ...MgPolicyHomeRealmDiscoveryPolicyApplyTo.md | 11 + ...dentitySecurityDefaultEnforcementPolicy.md | 4 +- .../Get-MgPolicyRoleManagementPolicy.md | 27 +- ...-MgPolicyRoleManagementPolicyAssignment.md | 18 +- .../Get-MgPolicyRoleManagementPolicyRule.md | 17 +- .../Get-MgPolicyTokenIssuancePolicy.md | 4 +- .../Get-MgPolicyTokenIssuancePolicyApplyTo.md | 11 + .../Get-MgPolicyTokenLifetimePolicy.md | 6 +- .../Get-MgPolicyTokenLifetimePolicyApplyTo.md | 11 + .../v1.0/examples/Get-MgRiskDetection.md | 6 +- .../examples/Get-MgRiskyServicePrincipal.md | 11 + .../Get-MgRiskyServicePrincipalHistory.md | 11 + .../v1.0/examples/Get-MgRiskyUser.md | 6 +- .../v1.0/examples/Get-MgRiskyUserHistory.md | 4 +- .../Get-MgServicePrincipalRiskDetection.md | 11 + ...nantRelationshipMultiTenantOrganization.md | 11 + ...nshipMultiTenantOrganizationJoinRequest.md | 11 + ...lationshipMultiTenantOrganizationTenant.md | 11 + ...henticationMicrosoftAuthenticatorMethod.md | 6 +- .../Get-MgUserAuthenticationOperation.md | 4 +- ...AuthenticationTemporaryAccessPassMethod.md | 6 +- ...enticationWindowsHelloForBusinessMethod.md | 11 + .../examples/New-MgIdentityApiConnector.md | 12 +- .../New-MgIdentityAuthenticationEventFlow.md | 257 +++++++++++++ ...rSelfServiceSignUpIdentityProviderByRef.md | 1 + ...rnalUserSelfServiceSignUpAttributeByRef.md | 15 + ...thenticationEventFlowIncludeApplication.md | 16 + ...w-MgIdentityAuthenticationEventListener.md | 30 ++ ...ntityB2XUserFlowUserAttributeAssignment.md | 4 +- ...nStrengthPolicyCombinationConfiguration.md | 46 +++ .../New-MgIdentityConditionalAccessPolicy.md | 344 +++++++++--------- ...MgIdentityCustomAuthenticationExtension.md | 37 ++ .../v1.0/examples/New-MgIdentityProvider.md | 26 +- .../New-MgIdentityUserFlowAttribute.md | 4 +- ...mationProtectionThreatAssessmentRequest.md | 28 +- ...zationCertificateBasedAuthConfiguration.md | 20 + .../New-MgPolicyActivityBasedTimeoutPolicy.md | 12 +- .../New-MgPolicyAppManagementPolicy.md | 48 +++ ...ew-MgPolicyAuthenticationStrengthPolicy.md | 33 ++ .../New-MgPolicyClaimMappingPolicy.md | 10 +- ...-MgPolicyCrossTenantAccessPolicyPartner.md | 4 +- .../New-MgPolicyFeatureRolloutPolicy.md | 4 +- ...New-MgPolicyFeatureRolloutPolicyApplyTo.md | 1 + ...gPolicyFeatureRolloutPolicyApplyToByRef.md | 4 +- .../New-MgPolicyHomeRealmDiscoveryPolicy.md | 19 + .../New-MgPolicyTokenIssuancePolicy.md | 12 +- .../New-MgPolicyTokenLifetimePolicy.md | 12 +- ...lationshipMultiTenantOrganizationTenant.md | 16 + .../New-MgUserAuthenticationEmailMethod.md | 4 +- .../New-MgUserAuthenticationPhoneMethod.md | 4 +- ...AuthenticationTemporaryAccessPassMethod.md | 4 +- .../examples/Remove-MgIdentityApiConnector.md | 4 +- ...emove-MgIdentityAuthenticationEventFlow.md | 11 + ...thenticationEventFlowIncludeApplication.md | 11 + ...e-MgIdentityAuthenticationEventListener.md | 11 + .../examples/Remove-MgIdentityB2XUserFlow.md | 4 +- ...IdentityB2XUserFlowLanguageOverridePage.md | 1 + ...yB2XUserFlowLanguageOverridePageContent.md | 1 + ...cessAuthenticationContextClassReference.md | 4 +- ...MgIdentityCustomAuthenticationExtension.md | 11 + .../examples/Remove-MgIdentityProvider.md | 4 +- .../Remove-MgIdentityUserFlowAttribute.md | 4 +- ...zationCertificateBasedAuthConfiguration.md | 11 + ...move-MgPolicyActivityBasedTimeoutPolicy.md | 4 +- .../Remove-MgPolicyAppManagementPolicy.md | 11 + ...ve-MgPolicyAuthenticationStrengthPolicy.md | 0 .../Remove-MgPolicyClaimMappingPolicy.md | 4 +- ...-MgPolicyCrossTenantAccessPolicyPartner.md | 4 +- ...essPolicyPartnerIdentitySynchronization.md | 11 + .../Remove-MgPolicyFeatureRolloutPolicy.md | 4 +- ...olloutPolicyApplyToDirectoryObjectByRef.md | 11 + ...Remove-MgPolicyHomeRealmDiscoveryPolicy.md | 4 +- .../Remove-MgPolicyTokenIssuancePolicy.md | 4 +- .../Remove-MgPolicyTokenLifetimePolicy.md | 4 +- ...lationshipMultiTenantOrganizationTenant.md | 11 + .../Remove-MgUserAuthenticationEmailMethod.md | 4 +- .../Remove-MgUserAuthenticationFido2Method.md | 4 +- ...henticationMicrosoftAuthenticatorMethod.md | 4 +- ...-MgUserAuthenticationSoftwareOathMethod.md | 4 +- ...AuthenticationTemporaryAccessPassMethod.md | 4 +- ...enticationWindowsHelloForBusinessMethod.md | 11 + ...yB2XUserFlowLanguageOverridePageContent.md | 23 ++ ...essPolicyPartnerIdentitySynchronization.md | 0 .../examples/Update-MgIdentityApiConnector.md | 18 +- ...pdate-MgIdentityAuthenticationEventFlow.md | 104 ++++++ ...e-MgIdentityAuthenticationEventListener.md | 24 ++ ...IdentityB2XUserFlowLanguageOverridePage.md | 1 + ...ntityB2XUserFlowUserAttributeAssignment.md | 4 +- ...cessAuthenticationContextClassReference.md | 4 +- ...MgIdentityCustomAuthenticationExtension.md | 33 ++ .../examples/Update-MgIdentityProvider.md | 16 +- .../Update-MgIdentityUserFlowAttribute.md | 4 +- ...date-MgPolicyActivityBasedTimeoutPolicy.md | 12 +- .../Update-MgPolicyAppManagementPolicy.md | 15 + ...Update-MgPolicyAuthenticationFlowPolicy.md | 4 +- ...date-MgPolicyAuthenticationMethodPolicy.md | 4 +- ...te-MgPolicyAuthenticationStrengthPolicy.md | 17 + .../Update-MgPolicyAuthorizationPolicy.md | 99 +++++ .../Update-MgPolicyClaimMappingPolicy.md | 4 +- .../Update-MgPolicyCrossTenantAccessPolicy.md | 8 +- ...-MgPolicyCrossTenantAccessPolicyDefault.md | 50 ++- ...-MgPolicyCrossTenantAccessPolicyPartner.md | 12 +- ...nantOrganizationIdentitySynchronization.md | 18 + ...iTenantOrganizationPartnerConfiguration.md | 24 ++ ...date-MgPolicyDefaultAppManagementPolicy.md | 51 +++ .../Update-MgPolicyFeatureRolloutPolicy.md | 4 +- ...Update-MgPolicyHomeRealmDiscoveryPolicy.md | 18 + ...dentitySecurityDefaultEnforcementPolicy.md | 4 +- ...Update-MgPolicyRoleManagementPolicyRule.md | 51 ++- .../Update-MgPolicyTokenIssuancePolicy.md | 12 +- .../Update-MgPolicyTokenLifetimePolicy.md | 12 +- ...nantRelationshipMultiTenantOrganization.md | 16 + ...nshipMultiTenantOrganizationJoinRequest.md | 30 ++ .../Update-MgUserAuthenticationEmailMethod.md | 4 +- .../Update-MgUserAuthenticationPhoneMethod.md | 4 +- ...-MgBetaEntityNetworkAccessReportSummary.md | 11 + ...taTransactionNetworkAccessReportSummary.md | 0 ...w-MgBetaNetworkAccessConnectivityBranch.md | 18 + ...tworkAccessConnectivityBranchDeviceLink.md | 31 ++ ...aNetworkAccessConnectivityRemoteNetwork.md | 79 ++++ ...e-MgBetaNetworkAccessConnectivityBranch.md | 11 + ...tworkAccessConnectivityBranchDeviceLink.md | 11 + ...cessConnectivityRemoteNetworkDeviceLink.md | 11 + ...e-MgBetaNetworkAccessConnectivityBranch.md | 15 + ...tworkAccessConnectivityBranchDeviceLink.md | 15 + ...ate-MgBetaNetworkAccessFilteringProfile.md | 15 + ...te-MgBetaNetworkAccessForwardingProfile.md | 20 + ...etaNetworkAccessForwardingProfilePolicy.md | 16 + ...taNetworkAccessSettingConditionalAccess.md | 16 + ...taNetworkAccessSettingCrossTenantAccess.md | 16 + ...etaNetworkAccessSettingEnrichedAuditLog.md | 24 ++ ...etaNetworkAccessSettingForwardingOption.md | 15 + .../v1.0/examples/Get-MgAdminReportSetting.md | 0 .../examples/Update-MgAdminReportSetting.md | 0 ...New-MgBetaExternalIndustryDataConnector.md | 22 +- ...w-MgBetaExternalIndustryDataInboundFlow.md | 2 +- ...ate-MgBetaExternalIndustryDataConnector.md | 4 +- ...e-MgBetaExternalIndustryDataInboundFlow.md | 2 +- src/Sites/beta/examples/Get-MgBetaSite.md | 13 +- .../Get-MgBetaSiteContentModelAppliedDrive.md | 11 + .../Get-MgBetaSiteContentModelByName.md | 0 ...taSiteContentModelGetByNameAppliedDrive.md | 1 + .../Remove-MgBetaSiteContentModelFromDrive.md | 15 + ...gBetaSiteContentModelGetByNameFromDrive.md | 1 + .../examples/Get-MgChatPermissionGrant.md | 11 + .../examples/Get-MgTeamPermissionGrant.md | 11 + .../v1.0/examples/Get-MgTeamScheduleShift.md | 2 +- .../examples/Get-MgTeamworkDeletedChat.md | 11 + .../examples/Get-MgTeamworkDeletedTeam.md | 11 + .../examples/Get-MgTeamworkTeamAppSetting.md | 11 + src/Teams/v1.0/examples/Get-MgUserTeamwork.md | 11 + .../examples/Invoke-MgArchiveTeamChannel.md | 22 ++ .../Invoke-MgArchiveTeamPrimaryChannel.md | 1 + ...oke-MgArchiveTeamworkDeletedTeamChannel.md | 1 + .../examples/Invoke-MgUnarchiveTeamChannel.md | 22 ++ .../Invoke-MgUnarchiveTeamPrimaryChannel.md | 1 + ...e-MgUnarchiveTeamworkDeletedTeamChannel.md | 1 + .../v1.0/examples/New-MgChatInstalledApp.md | 39 +- src/Teams/v1.0/examples/New-MgChatMember.md | 61 ++-- src/Teams/v1.0/examples/New-MgChatMessage.md | 36 +- src/Teams/v1.0/examples/New-MgChatTab.md | 4 +- .../v1.0/examples/New-MgTeamChannelMessage.md | 136 ++++++- .../v1.0/examples/New-MgTeamChannelTab.md | 22 ++ .../v1.0/examples/New-MgTeamInstalledApp.md | 8 +- .../New-MgTeamScheduleSchedulingGroup.md | 6 +- .../v1.0/examples/New-MgTeamTagMember.md | 4 +- .../New-MgUserTeamworkInstalledApp.md | 27 +- .../v1.0/examples/Remove-MgTeamMember.md | 4 +- .../v1.0/examples/Remove-MgTeamTagMember.md | 4 +- src/Teams/v1.0/examples/Set-MgGroupTeam.md | 26 ++ .../v1.0/examples/Set-MgTeamPhotoContent.md | 13 + src/Teams/v1.0/examples/Set-MgTeamSchedule.md | 16 + .../Update-MgAppCatalogTeamAppDefinition.md | 1 + .../examples/Update-MgTeamChannelMember.md | 4 +- .../v1.0/examples/Update-MgTeamMember.md | 4 +- src/Teams/v1.0/examples/Update-MgTeamPhoto.md | 1 + .../Remove-MgBetaUserCalendarPermanent.md | 0 ...ontactFolderChildFolderContactPermanent.md | 0 ...taUserContactFolderChildFolderPermanent.md | 0 ...MgBetaUserContactFolderContactPermanent.md | 0 ...Remove-MgBetaUserContactFolderPermanent.md | 0 .../Remove-MgBetaUserContactPermanent.md | 0 .../Remove-MgBetaUserDriveItemCheckout.md | 1 + .../Remove-MgBetaUserDriveRootCheckout.md | 1 + ...Remove-MgBetaUserEventInstancePermanent.md | 0 .../Remove-MgBetaUserEventPermanent.md | 0 ...erMailFolderChildFolderMessagePermanent.md | 0 ...gBetaUserMailFolderChildFolderPermanent.md | 0 ...ve-MgBetaUserMailFolderMessagePermanent.md | 0 .../Remove-MgBetaUserMailFolderPermanent.md | 0 .../Remove-MgBetaUserMessagePermanent.md | 0 ...ve-MgBetaUserOutlookTaskFolderPermanent.md | 0 ...gBetaUserOutlookTaskFolderTaskPermanent.md | 0 ...UserOutlookTaskGroupTaskFolderPermanent.md | 0 ...OutlookTaskGroupTaskFolderTaskPermanent.md | 0 .../Remove-MgBetaUserOutlookTaskPermanent.md | 0 ...rSolutionWorkingTimeScheduleWorkingTime.md | 11 + ...rSolutionWorkingTimeScheduleWorkingTime.md | 11 + ...Get-MgBetaUserCloudPcRemoteActionResult.md | 1 + ...tionUserAuthenticationFido2MethodOption.md | 11 + .../Update-MgUserSettingItemInsight.md | 15 + 376 files changed, 4622 insertions(+), 688 deletions(-) create mode 100644 src/Applications/v1.0/examples/Get-MgServicePrincipalRemoteDesktopSecurityConfiguration.md create mode 100644 src/Applications/v1.0/examples/Get-MgServicePrincipalRemoteDesktopSecurityConfigurationTargetDeviceGroup.md create mode 100644 src/Applications/v1.0/examples/Get-MgServicePrincipalSynchronizationJob.md create mode 100644 src/Applications/v1.0/examples/Get-MgServicePrincipalSynchronizationJobSchema.md create mode 100644 src/Applications/v1.0/examples/Get-MgServicePrincipalSynchronizationTemplate.md create mode 100644 src/Applications/v1.0/examples/New-MgApplicationAppManagementPolicyByRef.md create mode 100644 src/Applications/v1.0/examples/New-MgServicePrincipalRemoteDesktopSecurityConfigurationTargetDeviceGroup.md create mode 100644 src/Applications/v1.0/examples/New-MgServicePrincipalSynchronizationJob.md create mode 100644 src/Applications/v1.0/examples/Remove-MgApplicationAppManagementPolicyAppManagementPolicyByRef.md create mode 100644 src/Applications/v1.0/examples/Remove-MgApplicationFederatedIdentityCredentialByName.md create mode 100644 src/Applications/v1.0/examples/Remove-MgApplicationOwnerDirectoryObjectByRef.md create mode 100644 src/Applications/v1.0/examples/Remove-MgApplicationTokenIssuancePolicyTokenIssuancePolicyByRef.md create mode 100644 src/Applications/v1.0/examples/Remove-MgApplicationTokenLifetimePolicyTokenLifetimePolicyByRef.md create mode 100644 src/Applications/v1.0/examples/Remove-MgServicePrincipalClaimMappingPolicyClaimMappingPolicyByRef.md create mode 100644 src/Applications/v1.0/examples/Remove-MgServicePrincipalHomeRealmDiscoveryPolicyHomeRealmDiscoveryPolicyByRef.md create mode 100644 src/Applications/v1.0/examples/Remove-MgServicePrincipalOwnerDirectoryObjectByRef.md create mode 100644 src/Applications/v1.0/examples/Remove-MgServicePrincipalRemoteDesktopSecurityConfiguration.md create mode 100644 src/Applications/v1.0/examples/Remove-MgServicePrincipalRemoteDesktopSecurityConfigurationTargetDeviceGroup.md create mode 100644 src/Applications/v1.0/examples/Remove-MgServicePrincipalSynchronizationJob.md create mode 100644 src/Applications/v1.0/examples/Set-MgServicePrincipalSynchronizationSecret.md create mode 100644 src/Applications/v1.0/examples/Update-MgApplicationFederatedIdentityCredentialByName.md create mode 100644 src/Applications/v1.0/examples/Update-MgApplicationSynchronizationTemplate.md create mode 100644 src/Applications/v1.0/examples/Update-MgServicePrincipalRemoteDesktopSecurityConfiguration.md create mode 100644 src/Applications/v1.0/examples/Update-MgServicePrincipalRemoteDesktopSecurityConfigurationTargetDeviceGroup.md create mode 100644 src/Applications/v1.0/examples/Update-MgServicePrincipalSynchronizationJobSchema.md create mode 100644 src/Bookings/beta/examples/Get-MgBetaVirtualEventWebinarRegistrationConfigurationQuestion.md create mode 100644 src/Bookings/beta/examples/New-MgBetaApproval.md create mode 100644 src/Bookings/beta/examples/New-MgBetaVirtualEventWebinarRegistrationConfigurationQuestion.md create mode 100644 src/Bookings/beta/examples/Remove-MgBetaVirtualEventWebinarRegistrationConfigurationQuestion.md create mode 100644 src/Bookings/beta/examples/Stop-MgBetaApprovalItem.md create mode 100644 src/Bookings/v1.0/examples/Enable-MgBackupRestore.md create mode 100644 src/Bookings/v1.0/examples/Get-MgVirtualEventTownhall.md create mode 100644 src/Bookings/v1.0/examples/Get-MgVirtualEventTownhallPresenter.md create mode 100644 src/Bookings/v1.0/examples/Get-MgVirtualEventWebinarRegistrationConfiguration.md create mode 100644 src/Bookings/v1.0/examples/Get-MgVirtualEventWebinarRegistrationConfigurationQuestion.md create mode 100644 src/Bookings/v1.0/examples/Get-MgVirtualEventWebinarRegistrationSession.md create mode 100644 src/Bookings/v1.0/examples/Initialize-MgBackupRestoreProtectionPolicy.md create mode 100644 src/Bookings/v1.0/examples/Initialize-MgBackupRestoreServiceApp.md create mode 100644 src/Bookings/v1.0/examples/Initialize-MgBackupRestoreSession.md create mode 100644 src/Bookings/v1.0/examples/Invoke-MgDeactivateSolutionBackupRestoreProtectionPolicy.md create mode 100644 src/Bookings/v1.0/examples/Invoke-MgDeactivateSolutionBackupRestoreServiceApp.md create mode 100644 src/Bookings/v1.0/examples/New-MgVirtualEventTownhall.md create mode 100644 src/Bookings/v1.0/examples/New-MgVirtualEventTownhallPresenter.md create mode 100644 src/Bookings/v1.0/examples/New-MgVirtualEventWebinar.md create mode 100644 src/Bookings/v1.0/examples/New-MgVirtualEventWebinarPresenter.md create mode 100644 src/Bookings/v1.0/examples/New-MgVirtualEventWebinarRegistration.md create mode 100644 src/Bookings/v1.0/examples/New-MgVirtualEventWebinarRegistrationConfigurationQuestion.md create mode 100644 src/Bookings/v1.0/examples/Remove-MgVirtualEventTownhallPresenter.md create mode 100644 src/Bookings/v1.0/examples/Remove-MgVirtualEventWebinarRegistrationConfigurationQuestion.md create mode 100644 src/Bookings/v1.0/examples/Search-MgBackupRestorePoint.md create mode 100644 src/Bookings/v1.0/examples/Update-MgVirtualEventTownhall.md create mode 100644 src/Bookings/v1.0/examples/Update-MgVirtualEventWebinar.md create mode 100644 src/Bookings/v1.0/examples/Update-MgVirtualEventWebinarPresenter.md create mode 100644 src/BusinessScenario/beta/examples/Get-MgBetaSolutionBusinessScenario.md create mode 100644 src/BusinessScenario/beta/examples/Get-MgBetaSolutionBusinessScenarioByUniqueName.md create mode 100644 src/BusinessScenario/beta/examples/Get-MgBetaSolutionBusinessScenarioPlanner.md create mode 100644 src/BusinessScenario/beta/examples/Get-MgBetaSolutionBusinessScenarioPlannerPlanConfiguration.md create mode 100644 src/BusinessScenario/beta/examples/Get-MgBetaSolutionBusinessScenarioPlannerPlanConfigurationLocalization.md create mode 100644 src/BusinessScenario/beta/examples/Get-MgBetaSolutionBusinessScenarioPlannerTask.md create mode 100644 src/BusinessScenario/beta/examples/Get-MgBetaSolutionBusinessScenarioPlannerTaskConfiguration.md create mode 100644 src/BusinessScenario/beta/examples/New-MgBetaSolutionBusinessScenario.md create mode 100644 src/BusinessScenario/beta/examples/New-MgBetaSolutionBusinessScenarioPlannerTask.md create mode 100644 src/BusinessScenario/beta/examples/Remove-MgBetaSolutionBusinessScenario.md create mode 100644 src/BusinessScenario/beta/examples/Remove-MgBetaSolutionBusinessScenarioByUniqueName.md create mode 100644 src/BusinessScenario/beta/examples/Remove-MgBetaSolutionBusinessScenarioPlannerTask.md create mode 100644 src/BusinessScenario/beta/examples/Update-MgBetaSolutionBusinessScenario.md create mode 100644 src/BusinessScenario/beta/examples/Update-MgBetaSolutionBusinessScenarioByUniqueName.md create mode 100644 src/BusinessScenario/beta/examples/Update-MgBetaSolutionBusinessScenarioPlannerPlanConfiguration.md create mode 100644 src/BusinessScenario/beta/examples/Update-MgBetaSolutionBusinessScenarioPlannerTask.md create mode 100644 src/BusinessScenario/beta/examples/Update-MgBetaSolutionBusinessScenarioPlannerTaskConfiguration.md create mode 100644 src/Files/beta/examples/Remove-MgBetaDriveItemCheckout.md create mode 100644 src/Files/beta/examples/Remove-MgBetaDriveRootCheckout.md create mode 100644 src/Groups/beta/examples/Remove-MgBetaGroupCalendarEventPermanent.md create mode 100644 src/Groups/beta/examples/Remove-MgBetaGroupCalendarPermanent.md create mode 100644 src/Groups/beta/examples/Remove-MgBetaGroupDriveItemCheckout.md create mode 100644 src/Groups/beta/examples/Remove-MgBetaGroupDriveRootCheckout.md create mode 100644 src/Groups/beta/examples/Remove-MgBetaGroupEventPermanent.md create mode 100644 src/Groups/beta/examples/Remove-MgBetaGroupSiteContentModelFromDrive.md create mode 100644 src/Groups/beta/examples/Remove-MgBetaGroupSiteContentModelGetByNameFromDrive.md create mode 100644 src/Identity.DirectoryManagement/beta/examples/New-MgBetaAdminPeopleProfileCardProperty.md create mode 100644 src/Identity.DirectoryManagement/beta/examples/New-MgBetaAdministrativeUnitMember.md create mode 100644 src/Identity.DirectoryManagement/beta/examples/New-MgBetaDeviceRegisteredUserByRef.md create mode 100644 src/Identity.DirectoryManagement/beta/examples/New-MgBetaDirectoryCertificateAuthorityCertificateBasedApplicationConfigurationTrustedCertificateAuthority.md create mode 100644 src/Identity.DirectoryManagement/beta/examples/New-MgBetaDirectoryPendingExternalUserProfile.md create mode 100644 src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaAdminPeopleProfileCardProperty.md create mode 100644 src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDeviceRegisteredOwnerDirectoryObjectByRef.md create mode 100644 src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDeviceRegisteredUserDirectoryObjectByRef.md create mode 100644 src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDirectoryCertificateAuthorityCertificateBasedApplicationConfiguration.md create mode 100644 src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDirectoryCertificateAuthorityCertificateBasedApplicationConfigurationTrustedCertificateAuthority.md create mode 100644 src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDirectoryExternalUserProfile.md create mode 100644 src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDirectoryPendingExternalUserProfile.md create mode 100644 src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDirectoryRoleMemberDirectoryObjectByRef.md create mode 100644 src/Identity.DirectoryManagement/beta/examples/Update-MgBetaAdminPeopleItemInsight.md create mode 100644 src/Identity.DirectoryManagement/beta/examples/Update-MgBetaAdminPeopleProfileCardProperty.md create mode 100644 src/Identity.DirectoryManagement/beta/examples/Update-MgBetaAdminPeoplePronoun.md create mode 100644 src/Identity.DirectoryManagement/beta/examples/Update-MgBetaDirectoryCertificateAuthorityCertificateBasedApplicationConfiguration.md create mode 100644 src/Identity.DirectoryManagement/beta/examples/Update-MgBetaDirectoryCertificateAuthorityCertificateBasedApplicationConfigurationTrustedCertificateAuthority.md create mode 100644 src/Identity.DirectoryManagement/beta/examples/Update-MgBetaDirectoryExternalUserProfile.md create mode 100644 src/Identity.DirectoryManagement/beta/examples/Update-MgBetaDirectoryOnPremiseSynchronization.md create mode 100644 src/Identity.DirectoryManagement/beta/examples/Update-MgBetaDirectoryPendingExternalUserProfile.md create mode 100644 src/Identity.Governance/beta/examples/Get-MgBetaEntitlementManagementAccessPackageByUniqueName.md create mode 100644 src/Identity.Governance/beta/examples/Get-MgBetaEntitlementManagementAccessPackageCatalogByUniqueName.md create mode 100644 src/Identity.Governance/beta/examples/Remove-MgBetaEntitlementManagementAccessPackageByUniqueName.md create mode 100644 src/Identity.Governance/beta/examples/Remove-MgBetaEntitlementManagementAccessPackageCatalogByUniqueName.md create mode 100644 src/Identity.Governance/beta/examples/Update-MgBetaEntitlementManagementAccessPackageByUniqueName.md create mode 100644 src/Identity.Governance/beta/examples/Update-MgBetaEntitlementManagementAccessPackageCatalogByUniqueName.md create mode 100644 src/Identity.Governance/v1.0/examples/Invoke-MgGraphIdentityGovernanceLifecycleWorkflowInsight.md create mode 100644 src/Identity.Governance/v1.0/examples/Invoke-MgTopIdentityGovernanceLifecycleWorkflowInsightTaskProcessedSummary.md create mode 100644 src/Identity.Governance/v1.0/examples/Invoke-MgTopIdentityGovernanceLifecycleWorkflowInsightWorkflowProcessedSummary.md create mode 100644 src/Identity.Governance/v1.0/examples/Invoke-MgWorkflowIdentityGovernanceLifecycleWorkflowInsightProcessedSummary.md create mode 100644 src/Identity.SignIns/v1.0/examples/Get-MgIdentityAuthenticationEventFlow.md create mode 100644 src/Identity.SignIns/v1.0/examples/Get-MgIdentityAuthenticationEventFlowAsOnAttributeCollectionExternalUserSelfServiceSignUpAttribute.md create mode 100644 src/Identity.SignIns/v1.0/examples/Get-MgIdentityAuthenticationEventFlowAsOnAuthenticationMethodLoadStartExternalUserSelfServiceSignUpIdentityProvider.md create mode 100644 src/Identity.SignIns/v1.0/examples/Get-MgIdentityAuthenticationEventFlowAsOnAuthenticationMethodLoadStartExternalUserSelfServiceSignUpIdentityProviderByRef.md create mode 100644 src/Identity.SignIns/v1.0/examples/Get-MgIdentityAuthenticationEventFlowAsOnGraphAPretributeCollectionExternalUserSelfServiceSignUpAttributeByRef.md create mode 100644 src/Identity.SignIns/v1.0/examples/Get-MgIdentityAuthenticationEventFlowIncludeApplication.md create mode 100644 src/Identity.SignIns/v1.0/examples/Get-MgIdentityAuthenticationEventListener.md create mode 100644 src/Identity.SignIns/v1.0/examples/Get-MgIdentityB2XUserFlowApiConnectorConfiguration.md create mode 100644 src/Identity.SignIns/v1.0/examples/Get-MgIdentityConditionalAccessTemplate.md create mode 100644 src/Identity.SignIns/v1.0/examples/Get-MgIdentityCustomAuthenticationExtension.md create mode 100644 src/Identity.SignIns/v1.0/examples/Get-MgPolicyAppManagementPolicy.md create mode 100644 src/Identity.SignIns/v1.0/examples/Get-MgPolicyAppManagementPolicyApplyTo.md create mode 100644 src/Identity.SignIns/v1.0/examples/Get-MgPolicyAuthenticationStrengthPolicy.md create mode 100644 src/Identity.SignIns/v1.0/examples/Get-MgPolicyClaimMappingPolicyApplyTo.md create mode 100644 src/Identity.SignIns/v1.0/examples/Get-MgPolicyCrossTenantAccessPolicyPartnerIdentitySynchronization.md create mode 100644 src/Identity.SignIns/v1.0/examples/Get-MgPolicyCrossTenantAccessPolicyTemplateMultiTenantOrganizationIdentitySynchronization.md create mode 100644 src/Identity.SignIns/v1.0/examples/Get-MgPolicyCrossTenantAccessPolicyTemplateMultiTenantOrganizationPartnerConfiguration.md create mode 100644 src/Identity.SignIns/v1.0/examples/Get-MgPolicyDefaultAppManagementPolicy.md create mode 100644 src/Identity.SignIns/v1.0/examples/Get-MgPolicyHomeRealmDiscoveryPolicyApplyTo.md create mode 100644 src/Identity.SignIns/v1.0/examples/Get-MgPolicyTokenIssuancePolicyApplyTo.md create mode 100644 src/Identity.SignIns/v1.0/examples/Get-MgPolicyTokenLifetimePolicyApplyTo.md create mode 100644 src/Identity.SignIns/v1.0/examples/Get-MgRiskyServicePrincipal.md create mode 100644 src/Identity.SignIns/v1.0/examples/Get-MgRiskyServicePrincipalHistory.md create mode 100644 src/Identity.SignIns/v1.0/examples/Get-MgServicePrincipalRiskDetection.md create mode 100644 src/Identity.SignIns/v1.0/examples/Get-MgTenantRelationshipMultiTenantOrganization.md create mode 100644 src/Identity.SignIns/v1.0/examples/Get-MgTenantRelationshipMultiTenantOrganizationJoinRequest.md create mode 100644 src/Identity.SignIns/v1.0/examples/Get-MgTenantRelationshipMultiTenantOrganizationTenant.md create mode 100644 src/Identity.SignIns/v1.0/examples/Get-MgUserAuthenticationWindowsHelloForBusinessMethod.md create mode 100644 src/Identity.SignIns/v1.0/examples/New-MgIdentityAuthenticationEventFlow.md create mode 100644 src/Identity.SignIns/v1.0/examples/New-MgIdentityAuthenticationEventFlowAsOnAuthenticationMethodLoadStartExternalUserSelfServiceSignUpIdentityProviderByRef.md create mode 100644 src/Identity.SignIns/v1.0/examples/New-MgIdentityAuthenticationEventFlowAsOnGraphAPretributeCollectionExternalUserSelfServiceSignUpAttributeByRef.md create mode 100644 src/Identity.SignIns/v1.0/examples/New-MgIdentityAuthenticationEventFlowIncludeApplication.md create mode 100644 src/Identity.SignIns/v1.0/examples/New-MgIdentityAuthenticationEventListener.md create mode 100644 src/Identity.SignIns/v1.0/examples/New-MgIdentityConditionalAccessAuthenticationStrengthPolicyCombinationConfiguration.md create mode 100644 src/Identity.SignIns/v1.0/examples/New-MgIdentityCustomAuthenticationExtension.md create mode 100644 src/Identity.SignIns/v1.0/examples/New-MgOrganizationCertificateBasedAuthConfiguration.md create mode 100644 src/Identity.SignIns/v1.0/examples/New-MgPolicyAppManagementPolicy.md create mode 100644 src/Identity.SignIns/v1.0/examples/New-MgPolicyAuthenticationStrengthPolicy.md create mode 100644 src/Identity.SignIns/v1.0/examples/New-MgTenantRelationshipMultiTenantOrganizationTenant.md create mode 100644 src/Identity.SignIns/v1.0/examples/Remove-MgIdentityAuthenticationEventFlow.md create mode 100644 src/Identity.SignIns/v1.0/examples/Remove-MgIdentityAuthenticationEventFlowIncludeApplication.md create mode 100644 src/Identity.SignIns/v1.0/examples/Remove-MgIdentityAuthenticationEventListener.md create mode 100644 src/Identity.SignIns/v1.0/examples/Remove-MgIdentityB2XUserFlowLanguageOverridePageContent.md create mode 100644 src/Identity.SignIns/v1.0/examples/Remove-MgIdentityCustomAuthenticationExtension.md create mode 100644 src/Identity.SignIns/v1.0/examples/Remove-MgOrganizationCertificateBasedAuthConfiguration.md create mode 100644 src/Identity.SignIns/v1.0/examples/Remove-MgPolicyAppManagementPolicy.md create mode 100644 src/Identity.SignIns/v1.0/examples/Remove-MgPolicyAuthenticationStrengthPolicy.md create mode 100644 src/Identity.SignIns/v1.0/examples/Remove-MgPolicyCrossTenantAccessPolicyPartnerIdentitySynchronization.md create mode 100644 src/Identity.SignIns/v1.0/examples/Remove-MgPolicyFeatureRolloutPolicyApplyToDirectoryObjectByRef.md create mode 100644 src/Identity.SignIns/v1.0/examples/Remove-MgTenantRelationshipMultiTenantOrganizationTenant.md create mode 100644 src/Identity.SignIns/v1.0/examples/Remove-MgUserAuthenticationWindowsHelloForBusinessMethod.md create mode 100644 src/Identity.SignIns/v1.0/examples/Set-MgPolicyCrossTenantAccessPolicyPartnerIdentitySynchronization.md create mode 100644 src/Identity.SignIns/v1.0/examples/Update-MgIdentityAuthenticationEventFlow.md create mode 100644 src/Identity.SignIns/v1.0/examples/Update-MgIdentityAuthenticationEventListener.md create mode 100644 src/Identity.SignIns/v1.0/examples/Update-MgIdentityCustomAuthenticationExtension.md create mode 100644 src/Identity.SignIns/v1.0/examples/Update-MgPolicyAppManagementPolicy.md create mode 100644 src/Identity.SignIns/v1.0/examples/Update-MgPolicyAuthenticationStrengthPolicy.md create mode 100644 src/Identity.SignIns/v1.0/examples/Update-MgPolicyCrossTenantAccessPolicyTemplateMultiTenantOrganizationIdentitySynchronization.md create mode 100644 src/Identity.SignIns/v1.0/examples/Update-MgPolicyCrossTenantAccessPolicyTemplateMultiTenantOrganizationPartnerConfiguration.md create mode 100644 src/Identity.SignIns/v1.0/examples/Update-MgPolicyDefaultAppManagementPolicy.md create mode 100644 src/Identity.SignIns/v1.0/examples/Update-MgTenantRelationshipMultiTenantOrganization.md create mode 100644 src/Identity.SignIns/v1.0/examples/Update-MgTenantRelationshipMultiTenantOrganizationJoinRequest.md create mode 100644 src/NetworkAccess/beta/examples/Invoke-MgBetaEntityNetworkAccessReportSummary.md create mode 100644 src/NetworkAccess/beta/examples/Invoke-MgBetaTransactionNetworkAccessReportSummary.md create mode 100644 src/NetworkAccess/beta/examples/New-MgBetaNetworkAccessConnectivityBranch.md create mode 100644 src/NetworkAccess/beta/examples/New-MgBetaNetworkAccessConnectivityBranchDeviceLink.md create mode 100644 src/NetworkAccess/beta/examples/New-MgBetaNetworkAccessConnectivityRemoteNetwork.md create mode 100644 src/NetworkAccess/beta/examples/Remove-MgBetaNetworkAccessConnectivityBranch.md create mode 100644 src/NetworkAccess/beta/examples/Remove-MgBetaNetworkAccessConnectivityBranchDeviceLink.md create mode 100644 src/NetworkAccess/beta/examples/Remove-MgBetaNetworkAccessConnectivityRemoteNetworkDeviceLink.md create mode 100644 src/NetworkAccess/beta/examples/Update-MgBetaNetworkAccessConnectivityBranch.md create mode 100644 src/NetworkAccess/beta/examples/Update-MgBetaNetworkAccessConnectivityBranchDeviceLink.md create mode 100644 src/NetworkAccess/beta/examples/Update-MgBetaNetworkAccessFilteringProfile.md create mode 100644 src/NetworkAccess/beta/examples/Update-MgBetaNetworkAccessForwardingProfile.md create mode 100644 src/NetworkAccess/beta/examples/Update-MgBetaNetworkAccessForwardingProfilePolicy.md create mode 100644 src/NetworkAccess/beta/examples/Update-MgBetaNetworkAccessSettingConditionalAccess.md create mode 100644 src/NetworkAccess/beta/examples/Update-MgBetaNetworkAccessSettingCrossTenantAccess.md create mode 100644 src/NetworkAccess/beta/examples/Update-MgBetaNetworkAccessSettingEnrichedAuditLog.md create mode 100644 src/NetworkAccess/beta/examples/Update-MgBetaNetworkAccessSettingForwardingOption.md create mode 100644 src/Reports/v1.0/examples/Get-MgAdminReportSetting.md create mode 100644 src/Reports/v1.0/examples/Update-MgAdminReportSetting.md create mode 100644 src/Sites/beta/examples/Get-MgBetaSiteContentModelAppliedDrive.md create mode 100644 src/Sites/beta/examples/Get-MgBetaSiteContentModelByName.md create mode 100644 src/Sites/beta/examples/Get-MgBetaSiteContentModelGetByNameAppliedDrive.md create mode 100644 src/Sites/beta/examples/Remove-MgBetaSiteContentModelFromDrive.md create mode 100644 src/Sites/beta/examples/Remove-MgBetaSiteContentModelGetByNameFromDrive.md create mode 100644 src/Teams/v1.0/examples/Get-MgChatPermissionGrant.md create mode 100644 src/Teams/v1.0/examples/Get-MgTeamPermissionGrant.md create mode 100644 src/Teams/v1.0/examples/Get-MgTeamworkDeletedChat.md create mode 100644 src/Teams/v1.0/examples/Get-MgTeamworkDeletedTeam.md create mode 100644 src/Teams/v1.0/examples/Get-MgTeamworkTeamAppSetting.md create mode 100644 src/Teams/v1.0/examples/Invoke-MgArchiveTeamChannel.md create mode 100644 src/Teams/v1.0/examples/Invoke-MgArchiveTeamPrimaryChannel.md create mode 100644 src/Teams/v1.0/examples/Invoke-MgArchiveTeamworkDeletedTeamChannel.md create mode 100644 src/Teams/v1.0/examples/Invoke-MgUnarchiveTeamChannel.md create mode 100644 src/Teams/v1.0/examples/Invoke-MgUnarchiveTeamPrimaryChannel.md create mode 100644 src/Teams/v1.0/examples/Invoke-MgUnarchiveTeamworkDeletedTeamChannel.md create mode 100644 src/Teams/v1.0/examples/Set-MgGroupTeam.md create mode 100644 src/Teams/v1.0/examples/Set-MgTeamSchedule.md create mode 100644 src/Users.Actions/beta/examples/Remove-MgBetaUserCalendarPermanent.md create mode 100644 src/Users.Actions/beta/examples/Remove-MgBetaUserContactFolderChildFolderContactPermanent.md create mode 100644 src/Users.Actions/beta/examples/Remove-MgBetaUserContactFolderChildFolderPermanent.md create mode 100644 src/Users.Actions/beta/examples/Remove-MgBetaUserContactFolderContactPermanent.md create mode 100644 src/Users.Actions/beta/examples/Remove-MgBetaUserContactFolderPermanent.md create mode 100644 src/Users.Actions/beta/examples/Remove-MgBetaUserContactPermanent.md create mode 100644 src/Users.Actions/beta/examples/Remove-MgBetaUserDriveItemCheckout.md create mode 100644 src/Users.Actions/beta/examples/Remove-MgBetaUserDriveRootCheckout.md create mode 100644 src/Users.Actions/beta/examples/Remove-MgBetaUserEventInstancePermanent.md create mode 100644 src/Users.Actions/beta/examples/Remove-MgBetaUserEventPermanent.md create mode 100644 src/Users.Actions/beta/examples/Remove-MgBetaUserMailFolderChildFolderMessagePermanent.md create mode 100644 src/Users.Actions/beta/examples/Remove-MgBetaUserMailFolderChildFolderPermanent.md create mode 100644 src/Users.Actions/beta/examples/Remove-MgBetaUserMailFolderMessagePermanent.md create mode 100644 src/Users.Actions/beta/examples/Remove-MgBetaUserMailFolderPermanent.md create mode 100644 src/Users.Actions/beta/examples/Remove-MgBetaUserMessagePermanent.md create mode 100644 src/Users.Actions/beta/examples/Remove-MgBetaUserOutlookTaskFolderPermanent.md create mode 100644 src/Users.Actions/beta/examples/Remove-MgBetaUserOutlookTaskFolderTaskPermanent.md create mode 100644 src/Users.Actions/beta/examples/Remove-MgBetaUserOutlookTaskGroupTaskFolderPermanent.md create mode 100644 src/Users.Actions/beta/examples/Remove-MgBetaUserOutlookTaskGroupTaskFolderTaskPermanent.md create mode 100644 src/Users.Actions/beta/examples/Remove-MgBetaUserOutlookTaskPermanent.md create mode 100644 src/Users.Actions/beta/examples/Start-MgBetaUserSolutionWorkingTimeScheduleWorkingTime.md create mode 100644 src/Users.Actions/beta/examples/Stop-MgBetaUserSolutionWorkingTimeScheduleWorkingTime.md create mode 100644 src/Users.Functions/beta/examples/Get-MgBetaUserCloudPcRemoteActionResult.md create mode 100644 src/Users.Functions/beta/examples/Invoke-MgBetaCreationUserAuthenticationFido2MethodOption.md create mode 100644 src/Users/v1.0/examples/Update-MgUserSettingItemInsight.md diff --git a/src/Applications/beta/examples/Get-MgBetaServicePrincipalOwnerByRef.md b/src/Applications/beta/examples/Get-MgBetaServicePrincipalOwnerByRef.md index 8b137891791..e69de29bb2d 100644 --- a/src/Applications/beta/examples/Get-MgBetaServicePrincipalOwnerByRef.md +++ b/src/Applications/beta/examples/Get-MgBetaServicePrincipalOwnerByRef.md @@ -1 +0,0 @@ - diff --git a/src/Applications/beta/examples/Get-MgBetaServicePrincipalSynchronizationTemplate.md b/src/Applications/beta/examples/Get-MgBetaServicePrincipalSynchronizationTemplate.md index e69de29bb2d..3f1ed3342cb 100644 --- a/src/Applications/beta/examples/Get-MgBetaServicePrincipalSynchronizationTemplate.md +++ b/src/Applications/beta/examples/Get-MgBetaServicePrincipalSynchronizationTemplate.md @@ -0,0 +1,11 @@ +### Example + +```powershell + +Import-Module Microsoft.Graph.Beta.Applications + +Get-MgBetaServicePrincipalSynchronizationTemplate -ServicePrincipalId $servicePrincipalId + +``` +This example will### example + diff --git a/src/Applications/v1.0/examples/Get-MgServicePrincipalClaimMappingPolicyByRef.md b/src/Applications/v1.0/examples/Get-MgServicePrincipalClaimMappingPolicyByRef.md index e69de29bb2d..8b137891791 100644 --- a/src/Applications/v1.0/examples/Get-MgServicePrincipalClaimMappingPolicyByRef.md +++ b/src/Applications/v1.0/examples/Get-MgServicePrincipalClaimMappingPolicyByRef.md @@ -0,0 +1 @@ + diff --git a/src/Applications/v1.0/examples/Get-MgServicePrincipalHomeRealmDiscoveryPolicyByRef.md b/src/Applications/v1.0/examples/Get-MgServicePrincipalHomeRealmDiscoveryPolicyByRef.md index e69de29bb2d..8b137891791 100644 --- a/src/Applications/v1.0/examples/Get-MgServicePrincipalHomeRealmDiscoveryPolicyByRef.md +++ b/src/Applications/v1.0/examples/Get-MgServicePrincipalHomeRealmDiscoveryPolicyByRef.md @@ -0,0 +1 @@ + diff --git a/src/Applications/v1.0/examples/Get-MgServicePrincipalRemoteDesktopSecurityConfiguration.md b/src/Applications/v1.0/examples/Get-MgServicePrincipalRemoteDesktopSecurityConfiguration.md new file mode 100644 index 00000000000..74e353699af --- /dev/null +++ b/src/Applications/v1.0/examples/Get-MgServicePrincipalRemoteDesktopSecurityConfiguration.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Applications + +Get-MgServicePrincipalRemoteDesktopSecurityConfiguration -ServicePrincipalId $servicePrincipalId + +``` +This example shows how to use the Get-MgServicePrincipalRemoteDesktopSecurityConfiguration Cmdlet. + diff --git a/src/Applications/v1.0/examples/Get-MgServicePrincipalRemoteDesktopSecurityConfigurationTargetDeviceGroup.md b/src/Applications/v1.0/examples/Get-MgServicePrincipalRemoteDesktopSecurityConfigurationTargetDeviceGroup.md new file mode 100644 index 00000000000..04bf3415908 --- /dev/null +++ b/src/Applications/v1.0/examples/Get-MgServicePrincipalRemoteDesktopSecurityConfigurationTargetDeviceGroup.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Applications + +Get-MgServicePrincipalRemoteDesktopSecurityConfigurationTargetDeviceGroup -ServicePrincipalId $servicePrincipalId + +``` +This example shows how to use the Get-MgServicePrincipalRemoteDesktopSecurityConfigurationTargetDeviceGroup Cmdlet. + diff --git a/src/Applications/v1.0/examples/Get-MgServicePrincipalSynchronizationJob.md b/src/Applications/v1.0/examples/Get-MgServicePrincipalSynchronizationJob.md new file mode 100644 index 00000000000..ef64da14689 --- /dev/null +++ b/src/Applications/v1.0/examples/Get-MgServicePrincipalSynchronizationJob.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Applications + +Get-MgServicePrincipalSynchronizationJob -ServicePrincipalId $servicePrincipalId + +``` +This example shows how to use the Get-MgServicePrincipalSynchronizationJob Cmdlet. + diff --git a/src/Applications/v1.0/examples/Get-MgServicePrincipalSynchronizationJobSchema.md b/src/Applications/v1.0/examples/Get-MgServicePrincipalSynchronizationJobSchema.md new file mode 100644 index 00000000000..f2644fe8cfb --- /dev/null +++ b/src/Applications/v1.0/examples/Get-MgServicePrincipalSynchronizationJobSchema.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Applications + +Get-MgServicePrincipalSynchronizationJobSchema -ServicePrincipalId $servicePrincipalId -SynchronizationJobId $synchronizationJobId + +``` +This example shows how to use the Get-MgServicePrincipalSynchronizationJobSchema Cmdlet. + diff --git a/src/Applications/v1.0/examples/Get-MgServicePrincipalSynchronizationTemplate.md b/src/Applications/v1.0/examples/Get-MgServicePrincipalSynchronizationTemplate.md new file mode 100644 index 00000000000..5a774ca1e66 --- /dev/null +++ b/src/Applications/v1.0/examples/Get-MgServicePrincipalSynchronizationTemplate.md @@ -0,0 +1,11 @@ +### Example + +```powershell + +Import-Module Microsoft.Graph.Applications + +Get-MgServicePrincipalSynchronizationTemplate -ServicePrincipalId $servicePrincipalId + +``` +This example will### example + diff --git a/src/Applications/v1.0/examples/New-MgApplicationAppManagementPolicyByRef.md b/src/Applications/v1.0/examples/New-MgApplicationAppManagementPolicyByRef.md new file mode 100644 index 00000000000..e19a8cc48e6 --- /dev/null +++ b/src/Applications/v1.0/examples/New-MgApplicationAppManagementPolicyByRef.md @@ -0,0 +1,15 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Applications + +$params = @{ + "@odata.id" = "https://graph.microsoft.com/v1.0/policies/appManagementPolicies/{id}" +} + +New-MgApplicationAppManagementPolicyByRef -ApplicationId $applicationId -BodyParameter $params + +``` +This example shows how to use the New-MgApplicationAppManagementPolicyByRef Cmdlet. + diff --git a/src/Applications/v1.0/examples/New-MgApplicationTokenIssuancePolicyByRef.md b/src/Applications/v1.0/examples/New-MgApplicationTokenIssuancePolicyByRef.md index e207101d734..4c9f19a7099 100644 --- a/src/Applications/v1.0/examples/New-MgApplicationTokenIssuancePolicyByRef.md +++ b/src/Applications/v1.0/examples/New-MgApplicationTokenIssuancePolicyByRef.md @@ -1,6 +1,7 @@ ### Example 1: Code snippet ```powershell + Import-Module Microsoft.Graph.Applications $params = @{ @@ -8,8 +9,7 @@ $params = @{ } New-MgApplicationTokenIssuancePolicyByRef -ApplicationId $applicationId -BodyParameter $params + ``` This example shows how to use the New-MgApplicationTokenIssuancePolicyByRef Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Applications/v1.0/examples/New-MgApplicationTokenLifetimePolicyByRef.md b/src/Applications/v1.0/examples/New-MgApplicationTokenLifetimePolicyByRef.md index d10b02f7e18..9db98a230e6 100644 --- a/src/Applications/v1.0/examples/New-MgApplicationTokenLifetimePolicyByRef.md +++ b/src/Applications/v1.0/examples/New-MgApplicationTokenLifetimePolicyByRef.md @@ -1,6 +1,7 @@ ### Example 1: Code snippet ```powershell + Import-Module Microsoft.Graph.Applications $params = @{ @@ -8,8 +9,7 @@ $params = @{ } New-MgApplicationTokenLifetimePolicyByRef -ApplicationId $applicationId -BodyParameter $params + ``` This example shows how to use the New-MgApplicationTokenLifetimePolicyByRef Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Applications/v1.0/examples/New-MgServicePrincipalAppRoleAssignedTo.md b/src/Applications/v1.0/examples/New-MgServicePrincipalAppRoleAssignedTo.md index 99c26fa3eeb..e421cf6fd6a 100644 --- a/src/Applications/v1.0/examples/New-MgServicePrincipalAppRoleAssignedTo.md +++ b/src/Applications/v1.0/examples/New-MgServicePrincipalAppRoleAssignedTo.md @@ -1,6 +1,7 @@ ### Example 1: Code snippet ```powershell + Import-Module Microsoft.Graph.Applications $params = @{ @@ -10,8 +11,7 @@ $params = @{ } New-MgServicePrincipalAppRoleAssignedTo -ServicePrincipalId $servicePrincipalId -BodyParameter $params + ``` This example shows how to use the New-MgServicePrincipalAppRoleAssignedTo Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Applications/v1.0/examples/New-MgServicePrincipalAppRoleAssignment.md b/src/Applications/v1.0/examples/New-MgServicePrincipalAppRoleAssignment.md index 635c7d0cc98..d5431c052cf 100644 --- a/src/Applications/v1.0/examples/New-MgServicePrincipalAppRoleAssignment.md +++ b/src/Applications/v1.0/examples/New-MgServicePrincipalAppRoleAssignment.md @@ -1,6 +1,7 @@ ### Example 1: Code snippet ```powershell + Import-Module Microsoft.Graph.Applications $params = @{ @@ -10,8 +11,7 @@ $params = @{ } New-MgServicePrincipalAppRoleAssignment -ServicePrincipalId $servicePrincipalId -BodyParameter $params + ``` This example shows how to use the New-MgServicePrincipalAppRoleAssignment Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Applications/v1.0/examples/New-MgServicePrincipalClaimMappingPolicyByRef.md b/src/Applications/v1.0/examples/New-MgServicePrincipalClaimMappingPolicyByRef.md index 6222d908ab3..15d475f4ab0 100644 --- a/src/Applications/v1.0/examples/New-MgServicePrincipalClaimMappingPolicyByRef.md +++ b/src/Applications/v1.0/examples/New-MgServicePrincipalClaimMappingPolicyByRef.md @@ -1,6 +1,7 @@ ### Example 1: Code snippet ```powershell + Import-Module Microsoft.Graph.Applications $params = @{ @@ -8,8 +9,7 @@ $params = @{ } New-MgServicePrincipalClaimMappingPolicyByRef -ServicePrincipalId $servicePrincipalId -BodyParameter $params + ``` This example shows how to use the New-MgServicePrincipalClaimMappingPolicyByRef Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Applications/v1.0/examples/New-MgServicePrincipalDelegatedPermissionClassification.md b/src/Applications/v1.0/examples/New-MgServicePrincipalDelegatedPermissionClassification.md index 2fd24c57fdb..b9002effcd1 100644 --- a/src/Applications/v1.0/examples/New-MgServicePrincipalDelegatedPermissionClassification.md +++ b/src/Applications/v1.0/examples/New-MgServicePrincipalDelegatedPermissionClassification.md @@ -1,6 +1,7 @@ ### Example 1: Code snippet ```powershell + Import-Module Microsoft.Graph.Applications $params = @{ @@ -10,8 +11,7 @@ $params = @{ } New-MgServicePrincipalDelegatedPermissionClassification -ServicePrincipalId $servicePrincipalId -BodyParameter $params + ``` This example shows how to use the New-MgServicePrincipalDelegatedPermissionClassification Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Applications/v1.0/examples/New-MgServicePrincipalHomeRealmDiscoveryPolicyByRef.md b/src/Applications/v1.0/examples/New-MgServicePrincipalHomeRealmDiscoveryPolicyByRef.md index fb90e24fd52..7b180de5eae 100644 --- a/src/Applications/v1.0/examples/New-MgServicePrincipalHomeRealmDiscoveryPolicyByRef.md +++ b/src/Applications/v1.0/examples/New-MgServicePrincipalHomeRealmDiscoveryPolicyByRef.md @@ -1,6 +1,7 @@ ### Example 1: Code snippet ```powershell + Import-Module Microsoft.Graph.Applications $params = @{ @@ -8,8 +9,7 @@ $params = @{ } New-MgServicePrincipalHomeRealmDiscoveryPolicyByRef -ServicePrincipalId $servicePrincipalId -BodyParameter $params + ``` This example shows how to use the New-MgServicePrincipalHomeRealmDiscoveryPolicyByRef Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Applications/v1.0/examples/New-MgServicePrincipalRemoteDesktopSecurityConfigurationTargetDeviceGroup.md b/src/Applications/v1.0/examples/New-MgServicePrincipalRemoteDesktopSecurityConfigurationTargetDeviceGroup.md new file mode 100644 index 00000000000..867b0d03f1d --- /dev/null +++ b/src/Applications/v1.0/examples/New-MgServicePrincipalRemoteDesktopSecurityConfigurationTargetDeviceGroup.md @@ -0,0 +1,17 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Applications + +$params = @{ + "@odata.type" = "#microsoft.graph.targetDeviceGroup" + id = "b9e4eae4-b781-45a1-ce65-f2dd8ac3b696" + displayName = "Device Group A" +} + +New-MgServicePrincipalRemoteDesktopSecurityConfigurationTargetDeviceGroup -ServicePrincipalId $servicePrincipalId -BodyParameter $params + +``` +This example shows how to use the New-MgServicePrincipalRemoteDesktopSecurityConfigurationTargetDeviceGroup Cmdlet. + diff --git a/src/Applications/v1.0/examples/New-MgServicePrincipalSynchronizationJob.md b/src/Applications/v1.0/examples/New-MgServicePrincipalSynchronizationJob.md new file mode 100644 index 00000000000..006073e268e --- /dev/null +++ b/src/Applications/v1.0/examples/New-MgServicePrincipalSynchronizationJob.md @@ -0,0 +1,15 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Applications + +$params = @{ + templateId = "BoxOutDelta" +} + +New-MgServicePrincipalSynchronizationJob -ServicePrincipalId $servicePrincipalId -BodyParameter $params + +``` +This example shows how to use the New-MgServicePrincipalSynchronizationJob Cmdlet. + diff --git a/src/Applications/v1.0/examples/Remove-MgApplicationAppManagementPolicyAppManagementPolicyByRef.md b/src/Applications/v1.0/examples/Remove-MgApplicationAppManagementPolicyAppManagementPolicyByRef.md new file mode 100644 index 00000000000..b436403ca36 --- /dev/null +++ b/src/Applications/v1.0/examples/Remove-MgApplicationAppManagementPolicyAppManagementPolicyByRef.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Applications + +Remove-MgApplicationAppManagementPolicyAppManagementPolicyByRef -ApplicationId $applicationId -AppManagementPolicyId $appManagementPolicyId + +``` +This example shows how to use the Remove-MgApplicationAppManagementPolicyAppManagementPolicyByRef Cmdlet. + diff --git a/src/Applications/v1.0/examples/Remove-MgApplicationExtensionProperty.md b/src/Applications/v1.0/examples/Remove-MgApplicationExtensionProperty.md index ec4f5b3eaba..2c94f35cf65 100644 --- a/src/Applications/v1.0/examples/Remove-MgApplicationExtensionProperty.md +++ b/src/Applications/v1.0/examples/Remove-MgApplicationExtensionProperty.md @@ -1,11 +1,11 @@ ### Example 1: Code snippet ```powershell + Import-Module Microsoft.Graph.Applications Remove-MgApplicationExtensionProperty -ApplicationId $applicationId -ExtensionPropertyId $extensionPropertyId + ``` This example shows how to use the Remove-MgApplicationExtensionProperty Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Applications/v1.0/examples/Remove-MgApplicationFederatedIdentityCredential.md b/src/Applications/v1.0/examples/Remove-MgApplicationFederatedIdentityCredential.md index 9298ad042de..dd776a49706 100644 --- a/src/Applications/v1.0/examples/Remove-MgApplicationFederatedIdentityCredential.md +++ b/src/Applications/v1.0/examples/Remove-MgApplicationFederatedIdentityCredential.md @@ -1,11 +1,11 @@ ### Example 1: Code snippet ```powershell + Import-Module Microsoft.Graph.Applications Remove-MgApplicationFederatedIdentityCredential -ApplicationId $applicationId -FederatedIdentityCredentialId $federatedIdentityCredentialId + ``` This example shows how to use the Remove-MgApplicationFederatedIdentityCredential Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Applications/v1.0/examples/Remove-MgApplicationFederatedIdentityCredentialByName.md b/src/Applications/v1.0/examples/Remove-MgApplicationFederatedIdentityCredentialByName.md new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/src/Applications/v1.0/examples/Remove-MgApplicationFederatedIdentityCredentialByName.md @@ -0,0 +1 @@ + diff --git a/src/Applications/v1.0/examples/Remove-MgApplicationOwnerDirectoryObjectByRef.md b/src/Applications/v1.0/examples/Remove-MgApplicationOwnerDirectoryObjectByRef.md new file mode 100644 index 00000000000..0538f49a466 --- /dev/null +++ b/src/Applications/v1.0/examples/Remove-MgApplicationOwnerDirectoryObjectByRef.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Applications + +Remove-MgApplicationOwnerDirectoryObjectByRef -ApplicationId $applicationId -DirectoryObjectId $directoryObjectId + +``` +This example shows how to use the Remove-MgApplicationOwnerDirectoryObjectByRef Cmdlet. + diff --git a/src/Applications/v1.0/examples/Remove-MgApplicationTokenIssuancePolicyTokenIssuancePolicyByRef.md b/src/Applications/v1.0/examples/Remove-MgApplicationTokenIssuancePolicyTokenIssuancePolicyByRef.md new file mode 100644 index 00000000000..78a8884e5fa --- /dev/null +++ b/src/Applications/v1.0/examples/Remove-MgApplicationTokenIssuancePolicyTokenIssuancePolicyByRef.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Applications + +Remove-MgApplicationTokenIssuancePolicyTokenIssuancePolicyByRef -ApplicationId $applicationId -TokenIssuancePolicyId $tokenIssuancePolicyId + +``` +This example shows how to use the Remove-MgApplicationTokenIssuancePolicyTokenIssuancePolicyByRef Cmdlet. + diff --git a/src/Applications/v1.0/examples/Remove-MgApplicationTokenLifetimePolicyTokenLifetimePolicyByRef.md b/src/Applications/v1.0/examples/Remove-MgApplicationTokenLifetimePolicyTokenLifetimePolicyByRef.md new file mode 100644 index 00000000000..002d9b179e9 --- /dev/null +++ b/src/Applications/v1.0/examples/Remove-MgApplicationTokenLifetimePolicyTokenLifetimePolicyByRef.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Applications + +Remove-MgApplicationTokenLifetimePolicyTokenLifetimePolicyByRef -ApplicationId $applicationId -TokenLifetimePolicyId $tokenLifetimePolicyId + +``` +This example shows how to use the Remove-MgApplicationTokenLifetimePolicyTokenLifetimePolicyByRef Cmdlet. + diff --git a/src/Applications/v1.0/examples/Remove-MgGroupAppRoleAssignment.md b/src/Applications/v1.0/examples/Remove-MgGroupAppRoleAssignment.md index 15197db32ec..3e91ddaa296 100644 --- a/src/Applications/v1.0/examples/Remove-MgGroupAppRoleAssignment.md +++ b/src/Applications/v1.0/examples/Remove-MgGroupAppRoleAssignment.md @@ -1,11 +1,11 @@ ### Example 1: Code snippet ```powershell + Import-Module Microsoft.Graph.Applications Remove-MgGroupAppRoleAssignment -GroupId $groupId -AppRoleAssignmentId $appRoleAssignmentId + ``` This example shows how to use the Remove-MgGroupAppRoleAssignment Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Applications/v1.0/examples/Remove-MgServicePrincipalAppRoleAssignedTo.md b/src/Applications/v1.0/examples/Remove-MgServicePrincipalAppRoleAssignedTo.md index 15a006ebb54..a0f47c149d7 100644 --- a/src/Applications/v1.0/examples/Remove-MgServicePrincipalAppRoleAssignedTo.md +++ b/src/Applications/v1.0/examples/Remove-MgServicePrincipalAppRoleAssignedTo.md @@ -1,11 +1,11 @@ ### Example 1: Code snippet ```powershell + Import-Module Microsoft.Graph.Applications Remove-MgServicePrincipalAppRoleAssignedTo -ServicePrincipalId $servicePrincipalId -AppRoleAssignmentId $appRoleAssignmentId + ``` This example shows how to use the Remove-MgServicePrincipalAppRoleAssignedTo Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Applications/v1.0/examples/Remove-MgServicePrincipalClaimMappingPolicyClaimMappingPolicyByRef.md b/src/Applications/v1.0/examples/Remove-MgServicePrincipalClaimMappingPolicyClaimMappingPolicyByRef.md new file mode 100644 index 00000000000..c73ef47c4bb --- /dev/null +++ b/src/Applications/v1.0/examples/Remove-MgServicePrincipalClaimMappingPolicyClaimMappingPolicyByRef.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Applications + +Remove-MgServicePrincipalClaimMappingPolicyClaimMappingPolicyByRef -ServicePrincipalId $servicePrincipalId -ClaimsMappingPolicyId $claimsMappingPolicyId + +``` +This example shows how to use the Remove-MgServicePrincipalClaimMappingPolicyClaimMappingPolicyByRef Cmdlet. + diff --git a/src/Applications/v1.0/examples/Remove-MgServicePrincipalDelegatedPermissionClassification.md b/src/Applications/v1.0/examples/Remove-MgServicePrincipalDelegatedPermissionClassification.md index 5a52602e951..91eb62385ee 100644 --- a/src/Applications/v1.0/examples/Remove-MgServicePrincipalDelegatedPermissionClassification.md +++ b/src/Applications/v1.0/examples/Remove-MgServicePrincipalDelegatedPermissionClassification.md @@ -1,11 +1,11 @@ ### Example 1: Code snippet ```powershell + Import-Module Microsoft.Graph.Applications Remove-MgServicePrincipalDelegatedPermissionClassification -ServicePrincipalId $servicePrincipalId -DelegatedPermissionClassificationId $delegatedPermissionClassificationId + ``` This example shows how to use the Remove-MgServicePrincipalDelegatedPermissionClassification Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Applications/v1.0/examples/Remove-MgServicePrincipalHomeRealmDiscoveryPolicyHomeRealmDiscoveryPolicyByRef.md b/src/Applications/v1.0/examples/Remove-MgServicePrincipalHomeRealmDiscoveryPolicyHomeRealmDiscoveryPolicyByRef.md new file mode 100644 index 00000000000..18c2e2d907c --- /dev/null +++ b/src/Applications/v1.0/examples/Remove-MgServicePrincipalHomeRealmDiscoveryPolicyHomeRealmDiscoveryPolicyByRef.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Applications + +Remove-MgServicePrincipalHomeRealmDiscoveryPolicyHomeRealmDiscoveryPolicyByRef -ServicePrincipalId $servicePrincipalId -HomeRealmDiscoveryPolicyId $homeRealmDiscoveryPolicyId + +``` +This example shows how to use the Remove-MgServicePrincipalHomeRealmDiscoveryPolicyHomeRealmDiscoveryPolicyByRef Cmdlet. + diff --git a/src/Applications/v1.0/examples/Remove-MgServicePrincipalOwnerDirectoryObjectByRef.md b/src/Applications/v1.0/examples/Remove-MgServicePrincipalOwnerDirectoryObjectByRef.md new file mode 100644 index 00000000000..11c7a49d65b --- /dev/null +++ b/src/Applications/v1.0/examples/Remove-MgServicePrincipalOwnerDirectoryObjectByRef.md @@ -0,0 +1,15 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Applications + +$params = @{ + "@odata.id" = "https://graph.microsoft.com/v1.0/directoryObjects/{id}" +} + +Remove-MgServicePrincipalOwnerDirectoryObjectByRef -ServicePrincipalId $servicePrincipalId -DirectoryObjectId $directoryObjectId -BodyParameter $params + +``` +This example shows how to use the Remove-MgServicePrincipalOwnerDirectoryObjectByRef Cmdlet. + diff --git a/src/Applications/v1.0/examples/Remove-MgServicePrincipalRemoteDesktopSecurityConfiguration.md b/src/Applications/v1.0/examples/Remove-MgServicePrincipalRemoteDesktopSecurityConfiguration.md new file mode 100644 index 00000000000..c574e19a939 --- /dev/null +++ b/src/Applications/v1.0/examples/Remove-MgServicePrincipalRemoteDesktopSecurityConfiguration.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Applications + +Remove-MgServicePrincipalRemoteDesktopSecurityConfiguration -ServicePrincipalId $servicePrincipalId + +``` +This example shows how to use the Remove-MgServicePrincipalRemoteDesktopSecurityConfiguration Cmdlet. + diff --git a/src/Applications/v1.0/examples/Remove-MgServicePrincipalRemoteDesktopSecurityConfigurationTargetDeviceGroup.md b/src/Applications/v1.0/examples/Remove-MgServicePrincipalRemoteDesktopSecurityConfigurationTargetDeviceGroup.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Applications/v1.0/examples/Remove-MgServicePrincipalSynchronizationJob.md b/src/Applications/v1.0/examples/Remove-MgServicePrincipalSynchronizationJob.md new file mode 100644 index 00000000000..581a6694c38 --- /dev/null +++ b/src/Applications/v1.0/examples/Remove-MgServicePrincipalSynchronizationJob.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Applications + +Remove-MgServicePrincipalSynchronizationJob -ServicePrincipalId $servicePrincipalId -SynchronizationJobId $synchronizationJobId + +``` +This example shows how to use the Remove-MgServicePrincipalSynchronizationJob Cmdlet. + diff --git a/src/Applications/v1.0/examples/Set-MgServicePrincipalSynchronizationSecret.md b/src/Applications/v1.0/examples/Set-MgServicePrincipalSynchronizationSecret.md new file mode 100644 index 00000000000..578f8e81204 --- /dev/null +++ b/src/Applications/v1.0/examples/Set-MgServicePrincipalSynchronizationSecret.md @@ -0,0 +1,32 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Applications + +$params = @{ + value = @( + @{ + key = "BaseAddress" + value = "user@domain.com" + } + @{ + key = "SecretToken" + value = "password-value" + } + @{ + key = "SyncNotificationSettings" + value = '{"Enabled":false,"DeleteThresholdEnabled":false}' + } + @{ + key = "SyncAll" + value = "false" + } + ) +} + +Set-MgServicePrincipalSynchronizationSecret -ServicePrincipalId $servicePrincipalId -BodyParameter $params + +``` +This example shows how to use the Set-MgServicePrincipalSynchronizationSecret Cmdlet. + diff --git a/src/Applications/v1.0/examples/Update-MgApplicationFederatedIdentityCredentialByName.md b/src/Applications/v1.0/examples/Update-MgApplicationFederatedIdentityCredentialByName.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Applications/v1.0/examples/Update-MgApplicationSynchronizationTemplate.md b/src/Applications/v1.0/examples/Update-MgApplicationSynchronizationTemplate.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Applications/v1.0/examples/Update-MgServicePrincipalRemoteDesktopSecurityConfiguration.md b/src/Applications/v1.0/examples/Update-MgServicePrincipalRemoteDesktopSecurityConfiguration.md new file mode 100644 index 00000000000..6c7de10509d --- /dev/null +++ b/src/Applications/v1.0/examples/Update-MgServicePrincipalRemoteDesktopSecurityConfiguration.md @@ -0,0 +1,16 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Applications + +$params = @{ + "@odata.type" = "#microsoft.graph.remoteDesktopSecurityConfiguration" + isRemoteDesktopProtocolEnabled = $true +} + +Update-MgServicePrincipalRemoteDesktopSecurityConfiguration -ServicePrincipalId $servicePrincipalId -BodyParameter $params + +``` +This example shows how to use the Update-MgServicePrincipalRemoteDesktopSecurityConfiguration Cmdlet. + diff --git a/src/Applications/v1.0/examples/Update-MgServicePrincipalRemoteDesktopSecurityConfigurationTargetDeviceGroup.md b/src/Applications/v1.0/examples/Update-MgServicePrincipalRemoteDesktopSecurityConfigurationTargetDeviceGroup.md new file mode 100644 index 00000000000..fb18d46c636 --- /dev/null +++ b/src/Applications/v1.0/examples/Update-MgServicePrincipalRemoteDesktopSecurityConfigurationTargetDeviceGroup.md @@ -0,0 +1,16 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Applications + +$params = @{ + "@odata.type" = "#microsoft.graph.targetDeviceGroup" + displayName = "Device Group A" +} + +Update-MgServicePrincipalRemoteDesktopSecurityConfigurationTargetDeviceGroup -ServicePrincipalId $servicePrincipalId -TargetDeviceGroupId $targetDeviceGroupId -BodyParameter $params + +``` +This example shows how to use the Update-MgServicePrincipalRemoteDesktopSecurityConfigurationTargetDeviceGroup Cmdlet. + diff --git a/src/Applications/v1.0/examples/Update-MgServicePrincipalSynchronizationJobSchema.md b/src/Applications/v1.0/examples/Update-MgServicePrincipalSynchronizationJobSchema.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Bookings/beta/examples/Get-MgBetaVirtualEventWebinarRegistrationConfigurationQuestion.md b/src/Bookings/beta/examples/Get-MgBetaVirtualEventWebinarRegistrationConfigurationQuestion.md new file mode 100644 index 00000000000..14f25133f21 --- /dev/null +++ b/src/Bookings/beta/examples/Get-MgBetaVirtualEventWebinarRegistrationConfigurationQuestion.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Bookings + +Get-MgBetaVirtualEventWebinarRegistrationConfigurationQuestion -VirtualEventWebinarId $virtualEventWebinarId + +``` +This example shows how to use the Get-MgBetaVirtualEventWebinarRegistrationConfigurationQuestion Cmdlet. + diff --git a/src/Bookings/beta/examples/Initialize-MgBetaBackupRestoreServiceApp.md b/src/Bookings/beta/examples/Initialize-MgBetaBackupRestoreServiceApp.md index 282ce010ab1..92b94cfdba1 100644 --- a/src/Bookings/beta/examples/Initialize-MgBetaBackupRestoreServiceApp.md +++ b/src/Bookings/beta/examples/Initialize-MgBetaBackupRestoreServiceApp.md @@ -5,7 +5,7 @@ Import-Module Microsoft.Graph.Beta.Bookings $params = @{ - effectiveDateTime = [System.DateTime]::Parse("2024-04-19T12-01-03.45Z") + effectiveDateTime = [System.DateTime]::Parse("2024-04-19T12:01:03.45Z") } Initialize-MgBetaBackupRestoreServiceApp -ServiceAppId $serviceAppId -BodyParameter $params diff --git a/src/Bookings/beta/examples/New-MgBetaApproval.md b/src/Bookings/beta/examples/New-MgBetaApproval.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Bookings/beta/examples/New-MgBetaVirtualEventWebinarRegistrationConfigurationQuestion.md b/src/Bookings/beta/examples/New-MgBetaVirtualEventWebinarRegistrationConfigurationQuestion.md new file mode 100644 index 00000000000..248a39fce4a --- /dev/null +++ b/src/Bookings/beta/examples/New-MgBetaVirtualEventWebinarRegistrationConfigurationQuestion.md @@ -0,0 +1,33 @@ +### Example 1: Add a custom registration question to a webinar registration + +```powershell + +Import-Module Microsoft.Graph.Beta.Bookings + +$params = @{ + "@odata.type" = "#microsoft.graph.virtualEventRegistrationCustomQuestion" + displayName = "What's your job position?" + answerInputType = "multiChoice" + answerChoices = @( + "Software Engineer" +"Engineer Manager" +"Product Manager" +) +} + +New-MgBetaVirtualEventWebinarRegistrationConfigurationQuestion -VirtualEventWebinarId $virtualEventWebinarId -BodyParameter $params + +``` +This example will add a custom registration question to a webinar registration + +### Example 2: Add a predefined registration question to a webinar registration + +```powershell + +Import-Module Microsoft.Graph.Beta.Bookings + +New-MgBetaVirtualEventWebinarRegistrationConfigurationQuestion -VirtualEventWebinarId $virtualEventWebinarId + +``` +This example will add a predefined registration question to a webinar registration + diff --git a/src/Bookings/beta/examples/Remove-MgBetaVirtualEventWebinarRegistrationConfigurationQuestion.md b/src/Bookings/beta/examples/Remove-MgBetaVirtualEventWebinarRegistrationConfigurationQuestion.md new file mode 100644 index 00000000000..f997ce2f09c --- /dev/null +++ b/src/Bookings/beta/examples/Remove-MgBetaVirtualEventWebinarRegistrationConfigurationQuestion.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Bookings + +Remove-MgBetaVirtualEventWebinarRegistrationConfigurationQuestion -VirtualEventWebinarId $virtualEventWebinarId -VirtualEventRegistrationQuestionBaseId $virtualEventRegistrationQuestionBaseId + +``` +This example shows how to use the Remove-MgBetaVirtualEventWebinarRegistrationConfigurationQuestion Cmdlet. + diff --git a/src/Bookings/beta/examples/Search-MgBetaBackupRestorePoint.md b/src/Bookings/beta/examples/Search-MgBetaBackupRestorePoint.md index 95357160fa8..e72d1a426c4 100644 --- a/src/Bookings/beta/examples/Search-MgBetaBackupRestorePoint.md +++ b/src/Bookings/beta/examples/Search-MgBetaBackupRestorePoint.md @@ -1,4 +1,4 @@ -### Example 1: Code snippet +### Example 1: Search request ```powershell @@ -22,5 +22,30 @@ tags = "fastRestore" Search-MgBetaBackupRestorePoint -BodyParameter $params ``` -This example shows how to use the Search-MgBetaBackupRestorePoint Cmdlet. +This example will search request + +### Example 2: Search with artifactQuery expression + +```powershell + +Import-Module Microsoft.Graph.Beta.Bookings + +$params = @{ + artifactQuery = @{ + queryExpression = "((subject -contains ‘Finance’) -or (subject -contains ‘Legal’)) -and (sender -eq 'alex@contoso.com') -and (recipient -eq 'carol@contoso.com') -and hasAttachment -eq true" + artifactType = "message" + } + protectionUnitIds = @( + "23014d8c-71fe-4d00-a01a-31850bc5b42a" +) +protectionTimePeriod = @{ + startDateTime = [System.DateTime]::Parse("2021-01-01T00:00:00Z") +} +restorePointPreference = "oldest" +} + +Search-MgBetaBackupRestorePoint -BodyParameter $params + +``` +This example will search with artifactquery expression diff --git a/src/Bookings/beta/examples/Stop-MgBetaApprovalItem.md b/src/Bookings/beta/examples/Stop-MgBetaApprovalItem.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Bookings/v1.0/examples/Enable-MgBackupRestore.md b/src/Bookings/v1.0/examples/Enable-MgBackupRestore.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Bookings/v1.0/examples/Get-MgVirtualEventTownhall.md b/src/Bookings/v1.0/examples/Get-MgVirtualEventTownhall.md new file mode 100644 index 00000000000..51788599290 --- /dev/null +++ b/src/Bookings/v1.0/examples/Get-MgVirtualEventTownhall.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Bookings + +Get-MgVirtualEventTownhall -VirtualEventTownhallId $virtualEventTownhallId + +``` +This example shows how to use the Get-MgVirtualEventTownhall Cmdlet. + diff --git a/src/Bookings/v1.0/examples/Get-MgVirtualEventTownhallPresenter.md b/src/Bookings/v1.0/examples/Get-MgVirtualEventTownhallPresenter.md new file mode 100644 index 00000000000..dafcff79973 --- /dev/null +++ b/src/Bookings/v1.0/examples/Get-MgVirtualEventTownhallPresenter.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Bookings + +Get-MgVirtualEventTownhallPresenter -VirtualEventTownhallId $virtualEventTownhallId + +``` +This example shows how to use the Get-MgVirtualEventTownhallPresenter Cmdlet. + diff --git a/src/Bookings/v1.0/examples/Get-MgVirtualEventWebinar.md b/src/Bookings/v1.0/examples/Get-MgVirtualEventWebinar.md index 3bd3a951132..93e65b14f4d 100644 --- a/src/Bookings/v1.0/examples/Get-MgVirtualEventWebinar.md +++ b/src/Bookings/v1.0/examples/Get-MgVirtualEventWebinar.md @@ -4,7 +4,7 @@ Import-Module Microsoft.Graph.Bookings -Get-MgVirtualEventWebinar -VirtualEventWebinarId $virtualEventWebinarId +Get-MgVirtualEventWebinar ``` This example shows how to use the Get-MgVirtualEventWebinar Cmdlet. diff --git a/src/Bookings/v1.0/examples/Get-MgVirtualEventWebinarRegistration.md b/src/Bookings/v1.0/examples/Get-MgVirtualEventWebinarRegistration.md index e0083d87fb2..b0565f9a494 100644 --- a/src/Bookings/v1.0/examples/Get-MgVirtualEventWebinarRegistration.md +++ b/src/Bookings/v1.0/examples/Get-MgVirtualEventWebinarRegistration.md @@ -4,7 +4,7 @@ Import-Module Microsoft.Graph.Bookings -Get-MgVirtualEventWebinarRegistration -VirtualEventWebinarId $virtualEventWebinarId -VirtualEventRegistrationId $virtualEventRegistrationId +Get-MgVirtualEventWebinarRegistration -VirtualEventWebinarId $virtualEventWebinarId ``` This example shows how to use the Get-MgVirtualEventWebinarRegistration Cmdlet. diff --git a/src/Bookings/v1.0/examples/Get-MgVirtualEventWebinarRegistrationConfiguration.md b/src/Bookings/v1.0/examples/Get-MgVirtualEventWebinarRegistrationConfiguration.md new file mode 100644 index 00000000000..da349c7fe88 --- /dev/null +++ b/src/Bookings/v1.0/examples/Get-MgVirtualEventWebinarRegistrationConfiguration.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Bookings + +Get-MgVirtualEventWebinarRegistrationConfiguration -VirtualEventWebinarId $virtualEventWebinarId + +``` +This example shows how to use the Get-MgVirtualEventWebinarRegistrationConfiguration Cmdlet. + diff --git a/src/Bookings/v1.0/examples/Get-MgVirtualEventWebinarRegistrationConfigurationQuestion.md b/src/Bookings/v1.0/examples/Get-MgVirtualEventWebinarRegistrationConfigurationQuestion.md new file mode 100644 index 00000000000..737f04c2e61 --- /dev/null +++ b/src/Bookings/v1.0/examples/Get-MgVirtualEventWebinarRegistrationConfigurationQuestion.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Bookings + +Get-MgVirtualEventWebinarRegistrationConfigurationQuestion -VirtualEventWebinarId $virtualEventWebinarId + +``` +This example shows how to use the Get-MgVirtualEventWebinarRegistrationConfigurationQuestion Cmdlet. + diff --git a/src/Bookings/v1.0/examples/Get-MgVirtualEventWebinarRegistrationSession.md b/src/Bookings/v1.0/examples/Get-MgVirtualEventWebinarRegistrationSession.md new file mode 100644 index 00000000000..89157e1360c --- /dev/null +++ b/src/Bookings/v1.0/examples/Get-MgVirtualEventWebinarRegistrationSession.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Bookings + +Get-MgVirtualEventWebinarRegistrationSession -VirtualEventWebinarId $virtualEventWebinarId -VirtualEventRegistrationId $virtualEventRegistrationId + +``` +This example shows how to use the Get-MgVirtualEventWebinarRegistrationSession Cmdlet. + diff --git a/src/Bookings/v1.0/examples/Get-MgVirtualEventWebinarSession.md b/src/Bookings/v1.0/examples/Get-MgVirtualEventWebinarSession.md index 58cfced5ee0..2c4ff90b834 100644 --- a/src/Bookings/v1.0/examples/Get-MgVirtualEventWebinarSession.md +++ b/src/Bookings/v1.0/examples/Get-MgVirtualEventWebinarSession.md @@ -4,7 +4,7 @@ Import-Module Microsoft.Graph.Bookings -Get-MgVirtualEventWebinarSession -VirtualEventWebinarId $virtualEventWebinarId -VirtualEventSessionId $virtualEventSessionId +Get-MgVirtualEventWebinarSession -VirtualEventWebinarId $virtualEventWebinarId ``` This example shows how to use the Get-MgVirtualEventWebinarSession Cmdlet. diff --git a/src/Bookings/v1.0/examples/Initialize-MgBackupRestoreProtectionPolicy.md b/src/Bookings/v1.0/examples/Initialize-MgBackupRestoreProtectionPolicy.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Bookings/v1.0/examples/Initialize-MgBackupRestoreServiceApp.md b/src/Bookings/v1.0/examples/Initialize-MgBackupRestoreServiceApp.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Bookings/v1.0/examples/Initialize-MgBackupRestoreSession.md b/src/Bookings/v1.0/examples/Initialize-MgBackupRestoreSession.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Bookings/v1.0/examples/Invoke-MgDeactivateSolutionBackupRestoreProtectionPolicy.md b/src/Bookings/v1.0/examples/Invoke-MgDeactivateSolutionBackupRestoreProtectionPolicy.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Bookings/v1.0/examples/Invoke-MgDeactivateSolutionBackupRestoreServiceApp.md b/src/Bookings/v1.0/examples/Invoke-MgDeactivateSolutionBackupRestoreServiceApp.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Bookings/v1.0/examples/New-MgVirtualEventTownhall.md b/src/Bookings/v1.0/examples/New-MgVirtualEventTownhall.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Bookings/v1.0/examples/New-MgVirtualEventTownhallPresenter.md b/src/Bookings/v1.0/examples/New-MgVirtualEventTownhallPresenter.md new file mode 100644 index 00000000000..a12ed65cd2f --- /dev/null +++ b/src/Bookings/v1.0/examples/New-MgVirtualEventTownhallPresenter.md @@ -0,0 +1,37 @@ +### Example 1: Create an in-tenant presenter on a **virtualEventTownhall** + +```powershell + +Import-Module Microsoft.Graph.Bookings + +$params = @{ + identity = @{ + "@odata.type" = "#microsoft.graph.communicationsUserIdentity" + id = "7b7e1acd-a3e0-4533-8c1d-c1a4ca0b2e2b" + } +} + +New-MgVirtualEventTownhallPresenter -VirtualEventTownhallId $virtualEventTownhallId -BodyParameter $params + +``` +This example will create an in-tenant presenter on a **virtualeventtownhall** + +### Example 2: Create an out-of-tenant presenter on a **virtualEventTownhall** + +```powershell + +Import-Module Microsoft.Graph.Bookings + +$params = @{ + identity = @{ + "@odata.type" = "#microsoft.graph.communicationsGuestIdentity" + displayName = "Guest Speaker" + email = "guest.speaker@fabrikam.com" + } +} + +New-MgVirtualEventTownhallPresenter -VirtualEventTownhallId $virtualEventTownhallId -BodyParameter $params + +``` +This example will create an out-of-tenant presenter on a **virtualeventtownhall** + diff --git a/src/Bookings/v1.0/examples/New-MgVirtualEventWebinar.md b/src/Bookings/v1.0/examples/New-MgVirtualEventWebinar.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Bookings/v1.0/examples/New-MgVirtualEventWebinarPresenter.md b/src/Bookings/v1.0/examples/New-MgVirtualEventWebinarPresenter.md new file mode 100644 index 00000000000..05091a89d75 --- /dev/null +++ b/src/Bookings/v1.0/examples/New-MgVirtualEventWebinarPresenter.md @@ -0,0 +1,37 @@ +### Example 1: Create an in-tenant presenter on a **virtualEventWebinar** + +```powershell + +Import-Module Microsoft.Graph.Bookings + +$params = @{ + identity = @{ + "@odata.type" = "#microsoft.graph.communicationsUserIdentity" + id = "7b7e1acd-a3e0-4533-8c1d-c1a4ca0b2e2b" + } +} + +New-MgVirtualEventWebinarPresenter -VirtualEventWebinarId $virtualEventWebinarId -BodyParameter $params + +``` +This example will create an in-tenant presenter on a **virtualeventwebinar** + +### Example 2: Create an out-of-tenant presenter on a **virtualEventWebinar** + +```powershell + +Import-Module Microsoft.Graph.Bookings + +$params = @{ + identity = @{ + "@odata.type" = "#microsoft.graph.communicationsGuestIdentity" + displayName = "Guest Speaker" + email = "guest.speaker@fabrikam.com" + } +} + +New-MgVirtualEventWebinarPresenter -VirtualEventWebinarId $virtualEventWebinarId -BodyParameter $params + +``` +This example will create an out-of-tenant presenter on a **virtualeventwebinar** + diff --git a/src/Bookings/v1.0/examples/New-MgVirtualEventWebinarRegistration.md b/src/Bookings/v1.0/examples/New-MgVirtualEventWebinarRegistration.md new file mode 100644 index 00000000000..5e63b16c35c --- /dev/null +++ b/src/Bookings/v1.0/examples/New-MgVirtualEventWebinarRegistration.md @@ -0,0 +1,88 @@ +### Example 1: Creating registration record with delegated permission + +```powershell + +Import-Module Microsoft.Graph.Bookings + +$params = @{ + preferredTimezone = "Pacific Standard Time" + preferredLanguage = "en-us" + registrationQuestionAnswers = @( + @{ + questionId = "95320781-96b3-4b8f-8cf8-e6561d23447a" + value = $null + booleanValue = $null + multiChoiceValues = @( + "Seattle" + ) + } + @{ + questionId = "4577afdb-8bee-4219-b482-04b52c6b855c" + value = $null + booleanValue = $true + multiChoiceValues = @( + ) + } + @{ + questionId = "80fefcf1-caf7-4cd3-b8d7-159e17c47f20" + value = $null + booleanValue = $null + multiChoiceValues = @( + "Cancun" + "Hoboken" +"Beijing" +) +} +) +} + +New-MgVirtualEventWebinarRegistration -VirtualEventWebinarId $virtualEventWebinarId -BodyParameter $params + +``` +This example shows creating registration record with delegated permission + +### Example 2: Creating registration record with application permission + +```powershell + +Import-Module Microsoft.Graph.Bookings + +$params = @{ + firstName = "Diane" + lastName = "Demoss" + email = "DianeDemoss@contoso.com" + preferredTimezone = "Pacific Standard Time" + preferredLanguage = "en-us" + registrationQuestionAnswers = @( + @{ + questionId = "95320781-96b3-4b8f-8cf8-e6561d23447a" + value = $null + booleanValue = $null + multiChoiceValues = @( + "Seattle" + ) + } + @{ + questionId = "4577afdb-8bee-4219-b482-04b52c6b855c" + value = $null + booleanValue = $true + multiChoiceValues = @( + ) + } + @{ + questionId = "80fefcf1-caf7-4cd3-b8d7-159e17c47f20" + value = $null + booleanValue = $null + multiChoiceValues = @( + "London" + "New York City" +) +} +) +} + +New-MgVirtualEventWebinarRegistration -VirtualEventWebinarId $virtualEventWebinarId -BodyParameter $params + +``` +This example shows creating registration record with application permission + diff --git a/src/Bookings/v1.0/examples/New-MgVirtualEventWebinarRegistrationConfigurationQuestion.md b/src/Bookings/v1.0/examples/New-MgVirtualEventWebinarRegistrationConfigurationQuestion.md new file mode 100644 index 00000000000..59ead512616 --- /dev/null +++ b/src/Bookings/v1.0/examples/New-MgVirtualEventWebinarRegistrationConfigurationQuestion.md @@ -0,0 +1,33 @@ +### Example 1: Add a custom registration question to a webinar registration + +```powershell + +Import-Module Microsoft.Graph.Bookings + +$params = @{ + "@odata.type" = "#microsoft.graph.virtualEventRegistrationCustomQuestion" + displayName = "What's your job position?" + answerInputType = "multiChoice" + answerChoices = @( + "Software Engineer" +"Engineer Manager" +"Product Manager" +) +} + +New-MgVirtualEventWebinarRegistrationConfigurationQuestion -VirtualEventWebinarId $virtualEventWebinarId -BodyParameter $params + +``` +This example will add a custom registration question to a webinar registration + +### Example 2: Add a predefined registration question to a webinar registration + +```powershell + +Import-Module Microsoft.Graph.Bookings + +New-MgVirtualEventWebinarRegistrationConfigurationQuestion -VirtualEventWebinarId $virtualEventWebinarId + +``` +This example will add a predefined registration question to a webinar registration + diff --git a/src/Bookings/v1.0/examples/Remove-MgVirtualEventTownhallPresenter.md b/src/Bookings/v1.0/examples/Remove-MgVirtualEventTownhallPresenter.md new file mode 100644 index 00000000000..20c29602130 --- /dev/null +++ b/src/Bookings/v1.0/examples/Remove-MgVirtualEventTownhallPresenter.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Bookings + +Remove-MgVirtualEventTownhallPresenter -VirtualEventTownhallId $virtualEventTownhallId -VirtualEventPresenterId $virtualEventPresenterId + +``` +This example shows how to use the Remove-MgVirtualEventTownhallPresenter Cmdlet. + diff --git a/src/Bookings/v1.0/examples/Remove-MgVirtualEventWebinarRegistrationConfigurationQuestion.md b/src/Bookings/v1.0/examples/Remove-MgVirtualEventWebinarRegistrationConfigurationQuestion.md new file mode 100644 index 00000000000..e4451f76ddc --- /dev/null +++ b/src/Bookings/v1.0/examples/Remove-MgVirtualEventWebinarRegistrationConfigurationQuestion.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Bookings + +Remove-MgVirtualEventWebinarRegistrationConfigurationQuestion -VirtualEventWebinarId $virtualEventWebinarId -VirtualEventRegistrationQuestionBaseId $virtualEventRegistrationQuestionBaseId + +``` +This example shows how to use the Remove-MgVirtualEventWebinarRegistrationConfigurationQuestion Cmdlet. + diff --git a/src/Bookings/v1.0/examples/Search-MgBackupRestorePoint.md b/src/Bookings/v1.0/examples/Search-MgBackupRestorePoint.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Bookings/v1.0/examples/Update-MgVirtualEventTownhall.md b/src/Bookings/v1.0/examples/Update-MgVirtualEventTownhall.md new file mode 100644 index 00000000000..d5563806c5c --- /dev/null +++ b/src/Bookings/v1.0/examples/Update-MgVirtualEventTownhall.md @@ -0,0 +1,22 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Bookings + +$params = @{ + startDateTime = @{ + dateTime = "2024-03-31T10:00:00" + timeZone = "Pacific Standard Time" + } + endDateTime = @{ + dateTime = "2024-03-31T17:00:00" + timeZone = "Pacific Standard Time" + } +} + +Update-MgVirtualEventTownhall -VirtualEventTownhallId $virtualEventTownhallId -BodyParameter $params + +``` +This example shows how to use the Update-MgVirtualEventTownhall Cmdlet. + diff --git a/src/Bookings/v1.0/examples/Update-MgVirtualEventWebinar.md b/src/Bookings/v1.0/examples/Update-MgVirtualEventWebinar.md new file mode 100644 index 00000000000..833768b98db --- /dev/null +++ b/src/Bookings/v1.0/examples/Update-MgVirtualEventWebinar.md @@ -0,0 +1,22 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Bookings + +$params = @{ + startDateTime = @{ + dateTime = "2024-03-31T10:00:00" + timeZone = "Pacific Standard Time" + } + endDateTime = @{ + dateTime = "2024-03-31T17:00:00" + timeZone = "Pacific Standard Time" + } +} + +Update-MgVirtualEventWebinar -VirtualEventWebinarId $virtualEventWebinarId -BodyParameter $params + +``` +This example shows how to use the Update-MgVirtualEventWebinar Cmdlet. + diff --git a/src/Bookings/v1.0/examples/Update-MgVirtualEventWebinarPresenter.md b/src/Bookings/v1.0/examples/Update-MgVirtualEventWebinarPresenter.md new file mode 100644 index 00000000000..ed666a861e5 --- /dev/null +++ b/src/Bookings/v1.0/examples/Update-MgVirtualEventWebinarPresenter.md @@ -0,0 +1,24 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Bookings + +$params = @{ + presenterDetails = @{ + bio = @{ + content = "Lead Product Manager of Contoso Sales department" + contentType = "text" + } + company = "Contoso" + jobTitle = "Product Manager" + linkedInProfileWebUrl = "https://linkedin.com/in/DianeDemoss" + personalSiteWebUrl = "https://DianeDemoss.com" + } +} + +Update-MgVirtualEventWebinarPresenter -VirtualEventWebinarId $virtualEventWebinarId -VirtualEventPresenterId $virtualEventPresenterId -BodyParameter $params + +``` +This example shows how to use the Update-MgVirtualEventWebinarPresenter Cmdlet. + diff --git a/src/BusinessScenario/beta/examples/Get-MgBetaSolutionBusinessScenario.md b/src/BusinessScenario/beta/examples/Get-MgBetaSolutionBusinessScenario.md new file mode 100644 index 00000000000..58c80ab1d1a --- /dev/null +++ b/src/BusinessScenario/beta/examples/Get-MgBetaSolutionBusinessScenario.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.BusinessScenario + +Get-MgBetaSolutionBusinessScenario + +``` +This example shows how to use the Get-MgBetaSolutionBusinessScenario Cmdlet. + diff --git a/src/BusinessScenario/beta/examples/Get-MgBetaSolutionBusinessScenarioByUniqueName.md b/src/BusinessScenario/beta/examples/Get-MgBetaSolutionBusinessScenarioByUniqueName.md new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/src/BusinessScenario/beta/examples/Get-MgBetaSolutionBusinessScenarioByUniqueName.md @@ -0,0 +1 @@ + diff --git a/src/BusinessScenario/beta/examples/Get-MgBetaSolutionBusinessScenarioPlanner.md b/src/BusinessScenario/beta/examples/Get-MgBetaSolutionBusinessScenarioPlanner.md new file mode 100644 index 00000000000..34c97f9c7b6 --- /dev/null +++ b/src/BusinessScenario/beta/examples/Get-MgBetaSolutionBusinessScenarioPlanner.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.BusinessScenario + +Get-MgBetaSolutionBusinessScenarioPlanner -BusinessScenarioId $businessScenarioId + +``` +This example shows how to use the Get-MgBetaSolutionBusinessScenarioPlanner Cmdlet. + diff --git a/src/BusinessScenario/beta/examples/Get-MgBetaSolutionBusinessScenarioPlannerPlanConfiguration.md b/src/BusinessScenario/beta/examples/Get-MgBetaSolutionBusinessScenarioPlannerPlanConfiguration.md new file mode 100644 index 00000000000..4b225a3deb4 --- /dev/null +++ b/src/BusinessScenario/beta/examples/Get-MgBetaSolutionBusinessScenarioPlannerPlanConfiguration.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.BusinessScenario + +Get-MgBetaSolutionBusinessScenarioPlannerPlanConfiguration -BusinessScenarioId $businessScenarioId + +``` +This example shows how to use the Get-MgBetaSolutionBusinessScenarioPlannerPlanConfiguration Cmdlet. + diff --git a/src/BusinessScenario/beta/examples/Get-MgBetaSolutionBusinessScenarioPlannerPlanConfigurationLocalization.md b/src/BusinessScenario/beta/examples/Get-MgBetaSolutionBusinessScenarioPlannerPlanConfigurationLocalization.md new file mode 100644 index 00000000000..fe94faf8ad3 --- /dev/null +++ b/src/BusinessScenario/beta/examples/Get-MgBetaSolutionBusinessScenarioPlannerPlanConfigurationLocalization.md @@ -0,0 +1,22 @@ +### Example 1: Get all localizations + +```powershell + +Import-Module Microsoft.Graph.Beta.BusinessScenario + +Get-MgBetaSolutionBusinessScenarioPlannerPlanConfigurationLocalization -BusinessScenarioId $businessScenarioId + +``` +This example will get all localizations + +### Example 2: Get localization for a specific language tag + +```powershell + +Import-Module Microsoft.Graph.Beta.BusinessScenario + +Get-MgBetaSolutionBusinessScenarioPlannerPlanConfigurationLocalization -BusinessScenarioId $businessScenarioId -Filter "languageTag eq 'en-us'" + +``` +This example will get localization for a specific language tag + diff --git a/src/BusinessScenario/beta/examples/Get-MgBetaSolutionBusinessScenarioPlannerTask.md b/src/BusinessScenario/beta/examples/Get-MgBetaSolutionBusinessScenarioPlannerTask.md new file mode 100644 index 00000000000..17d489ad586 --- /dev/null +++ b/src/BusinessScenario/beta/examples/Get-MgBetaSolutionBusinessScenarioPlannerTask.md @@ -0,0 +1,33 @@ +### Example 1: Get all tasks for a scenario + +```powershell + +Import-Module Microsoft.Graph.Beta.BusinessScenario + +Get-MgBetaSolutionBusinessScenarioPlannerTask -BusinessScenarioId $businessScenarioId + +``` +This example will get all tasks for a scenario + +### Example 2: Get tasks associated with a specific externalContextId + +```powershell + +Import-Module Microsoft.Graph.Beta.BusinessScenario + +Get-MgBetaSolutionBusinessScenarioPlannerTask -BusinessScenarioId $businessScenarioId -Filter "businessScenarioProperties/externalContextId eq 'Warehouse-CA-36'" + +``` +This example will get tasks associated with a specific externalcontextid + +### Example 3: Get scenario tasks created in a specific group + +```powershell + +Import-Module Microsoft.Graph.Beta.BusinessScenario + +Get-MgBetaSolutionBusinessScenarioPlannerTask -BusinessScenarioId $businessScenarioId -Filter "location/microsoft.graph.businessScenarioGroupTarget/groupId eq '7a339254-4b2b-4410-b295-c890a16776ee'" + +``` +This example will get scenario tasks created in a specific group + diff --git a/src/BusinessScenario/beta/examples/Get-MgBetaSolutionBusinessScenarioPlannerTaskConfiguration.md b/src/BusinessScenario/beta/examples/Get-MgBetaSolutionBusinessScenarioPlannerTaskConfiguration.md new file mode 100644 index 00000000000..2d26e1ce4d3 --- /dev/null +++ b/src/BusinessScenario/beta/examples/Get-MgBetaSolutionBusinessScenarioPlannerTaskConfiguration.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.BusinessScenario + +Get-MgBetaSolutionBusinessScenarioPlannerTaskConfiguration -BusinessScenarioId $businessScenarioId + +``` +This example shows how to use the Get-MgBetaSolutionBusinessScenarioPlannerTaskConfiguration Cmdlet. + diff --git a/src/BusinessScenario/beta/examples/New-MgBetaSolutionBusinessScenario.md b/src/BusinessScenario/beta/examples/New-MgBetaSolutionBusinessScenario.md new file mode 100644 index 00000000000..88880259122 --- /dev/null +++ b/src/BusinessScenario/beta/examples/New-MgBetaSolutionBusinessScenario.md @@ -0,0 +1,17 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.BusinessScenario + +$params = @{ + "@odata.type" = "#microsoft.graph.businessScenario" + displayName = "Contoso Order Tracking" + uniqueName = "com.contoso.apps.ordertracking" +} + +New-MgBetaSolutionBusinessScenario -BodyParameter $params + +``` +This example shows how to use the New-MgBetaSolutionBusinessScenario Cmdlet. + diff --git a/src/BusinessScenario/beta/examples/New-MgBetaSolutionBusinessScenarioPlannerTask.md b/src/BusinessScenario/beta/examples/New-MgBetaSolutionBusinessScenarioPlannerTask.md new file mode 100644 index 00000000000..efbfbf108ce --- /dev/null +++ b/src/BusinessScenario/beta/examples/New-MgBetaSolutionBusinessScenarioPlannerTask.md @@ -0,0 +1,29 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.BusinessScenario + +$params = @{ + title = "Customer order #12010" + percentComplete = 0 + priority = 5 + target = @{ + "@odata.type" = "microsoft.graph.businessScenarioGroupTarget" + taskTargetKind = "group" + groupId = "7a339254-4b2b-4410-b295-c890a16776ee" + } + businessScenarioProperties = @{ + externalObjectId = "Order#12010" + externalContextId = "Warehouse-CA-36" + externalObjectVersion = "000001" + webUrl = "https://ordertracking.contoso.com/view?id=12010" + externalBucketId = "deliveryBucket" + } +} + +New-MgBetaSolutionBusinessScenarioPlannerTask -BusinessScenarioId $businessScenarioId -BodyParameter $params + +``` +This example shows how to use the New-MgBetaSolutionBusinessScenarioPlannerTask Cmdlet. + diff --git a/src/BusinessScenario/beta/examples/Remove-MgBetaSolutionBusinessScenario.md b/src/BusinessScenario/beta/examples/Remove-MgBetaSolutionBusinessScenario.md new file mode 100644 index 00000000000..3e675ac179e --- /dev/null +++ b/src/BusinessScenario/beta/examples/Remove-MgBetaSolutionBusinessScenario.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.BusinessScenario + +Remove-MgBetaSolutionBusinessScenario -BusinessScenarioId $businessScenarioId + +``` +This example shows how to use the Remove-MgBetaSolutionBusinessScenario Cmdlet. + diff --git a/src/BusinessScenario/beta/examples/Remove-MgBetaSolutionBusinessScenarioByUniqueName.md b/src/BusinessScenario/beta/examples/Remove-MgBetaSolutionBusinessScenarioByUniqueName.md new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/src/BusinessScenario/beta/examples/Remove-MgBetaSolutionBusinessScenarioByUniqueName.md @@ -0,0 +1 @@ + diff --git a/src/BusinessScenario/beta/examples/Remove-MgBetaSolutionBusinessScenarioPlannerTask.md b/src/BusinessScenario/beta/examples/Remove-MgBetaSolutionBusinessScenarioPlannerTask.md new file mode 100644 index 00000000000..41696ee97af --- /dev/null +++ b/src/BusinessScenario/beta/examples/Remove-MgBetaSolutionBusinessScenarioPlannerTask.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.BusinessScenario + +Remove-MgBetaSolutionBusinessScenarioPlannerTask -BusinessScenarioId $businessScenarioId -BusinessScenarioTaskId $businessScenarioTaskId + +``` +This example shows how to use the Remove-MgBetaSolutionBusinessScenarioPlannerTask Cmdlet. + diff --git a/src/BusinessScenario/beta/examples/Update-MgBetaSolutionBusinessScenario.md b/src/BusinessScenario/beta/examples/Update-MgBetaSolutionBusinessScenario.md new file mode 100644 index 00000000000..6b6b8b3b34c --- /dev/null +++ b/src/BusinessScenario/beta/examples/Update-MgBetaSolutionBusinessScenario.md @@ -0,0 +1,18 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.BusinessScenario + +$params = @{ + ownerAppIds = @( + "44109254-4b2b-7a33-76ee-c890a167b295" +"13eb9d8b-1d63-4153-9417-3a69ab200a78" +) +} + +Update-MgBetaSolutionBusinessScenario -BusinessScenarioId $businessScenarioId -BodyParameter $params + +``` +This example shows how to use the Update-MgBetaSolutionBusinessScenario Cmdlet. + diff --git a/src/BusinessScenario/beta/examples/Update-MgBetaSolutionBusinessScenarioByUniqueName.md b/src/BusinessScenario/beta/examples/Update-MgBetaSolutionBusinessScenarioByUniqueName.md new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/src/BusinessScenario/beta/examples/Update-MgBetaSolutionBusinessScenarioByUniqueName.md @@ -0,0 +1 @@ + diff --git a/src/BusinessScenario/beta/examples/Update-MgBetaSolutionBusinessScenarioPlannerPlanConfiguration.md b/src/BusinessScenario/beta/examples/Update-MgBetaSolutionBusinessScenarioPlannerPlanConfiguration.md new file mode 100644 index 00000000000..e7b19d4dd4a --- /dev/null +++ b/src/BusinessScenario/beta/examples/Update-MgBetaSolutionBusinessScenarioPlannerPlanConfiguration.md @@ -0,0 +1,77 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.BusinessScenario + +$params = @{ + defaultLanguage = "en-us" + buckets = @( + @{ + externalBucketId = "deliveryBucket" + } + @{ + externalBucketId = "storePickupBucket" + } + @{ + externalBucketId = "specialOrdersBucket" + } + @{ + externalBucketId = "returnProcessingBucket" + } + ) + localizations = @( + @{ + id = "en-us" + languageTag = "en-us" + planTitle = "Order Tracking" + buckets = @( + @{ + externalBucketId = "deliveryBucket" + name = "Deliveries" + } + @{ + externalBucketId = "storePickupBucket" + name = "Pickup" + } + @{ + externalBucketId = "specialOrdersBucket" + name = "Special Orders" + } + @{ + externalBucketId = "returnProcessingBucket" + name = "Customer Returns" + } + ) + } + @{ + id = "es-es" + languageTag = "es-es" + planTitle = "Seguimiento de pedidos" + buckets = @( + @{ + externalBucketId = "deliveryBucket" + name = "Entregas" + } + @{ + externalBucketId = "storePickupBucket" + name = "Recogida" + } + @{ + externalBucketId = "specialOrdersBucket" + name = "Pedidos especiales" + } + @{ + externalBucketId = "specialOrdersBucket" + name = "Devoluciones de clientes" + } + ) + } + ) +} + +Update-MgBetaSolutionBusinessScenarioPlannerPlanConfiguration -BusinessScenarioId $businessScenarioId -BodyParameter $params + +``` +This example shows how to use the Update-MgBetaSolutionBusinessScenarioPlannerPlanConfiguration Cmdlet. + diff --git a/src/BusinessScenario/beta/examples/Update-MgBetaSolutionBusinessScenarioPlannerTask.md b/src/BusinessScenario/beta/examples/Update-MgBetaSolutionBusinessScenarioPlannerTask.md new file mode 100644 index 00000000000..cf71681fbfb --- /dev/null +++ b/src/BusinessScenario/beta/examples/Update-MgBetaSolutionBusinessScenarioPlannerTask.md @@ -0,0 +1,20 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.BusinessScenario + +$params = @{ + title = "Customer order #12010" + percentComplete = 20 + priority = 1 + businessScenarioProperties = @{ + externalObjectVersion = "000003" + } +} + +Update-MgBetaSolutionBusinessScenarioPlannerTask -BusinessScenarioId $businessScenarioId -BusinessScenarioTaskId $businessScenarioTaskId -BodyParameter $params + +``` +This example shows how to use the Update-MgBetaSolutionBusinessScenarioPlannerTask Cmdlet. + diff --git a/src/BusinessScenario/beta/examples/Update-MgBetaSolutionBusinessScenarioPlannerTaskConfiguration.md b/src/BusinessScenario/beta/examples/Update-MgBetaSolutionBusinessScenarioPlannerTaskConfiguration.md new file mode 100644 index 00000000000..1d338b16bda --- /dev/null +++ b/src/BusinessScenario/beta/examples/Update-MgBetaSolutionBusinessScenarioPlannerTaskConfiguration.md @@ -0,0 +1,127 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.BusinessScenario + +$params = @{ + "@odata.type" = "#microsoft.graph.plannerTaskConfiguration" + editPolicy = @{ + rules = @( + @{ + defaultRule = "block" + role = @{ + "@odata.type" = "#microsoft.graph.plannerRelationshipBasedUserType" + roleKind = "relationship" + role = "defaultRules" + } + propertyRule = @{ + percentComplete = @( + "allow" + ) + ruleKind = "taskRule" + assignments = @{ + defaultRules = @( + "addSelf" + ) + overrides = @( + ) + } + } + } + @{ + defaultRule = "block" + role = @{ + "@odata.type" = "#microsoft.graph.plannerRelationshipBasedUserType" + roleKind = "relationship" + role = "taskAssignees" + } + propertyRule = @{ + startDate = @( + "allow" + ) + dueDate = @( + "allow" + ) + percentComplete = @( + "allow" +) +order = @( +"allow" +) +ruleKind = "taskRule" +references = @{ +defaultRules = @( +"allow" +) +overrides = @( +@{ + name = "userCreated" + rules = @( + "allow" +) +} +@{ +name = "applicationCreated" +rules = @( +"block" +) +} +) +} +checkLists = @{ +defaultRules = @( +"allow" +) +overrides = @( +@{ +name = "userCreated" +rules = @( +"allow" +) +} +@{ +name = "applicationCreated" +rules = @( +"check" +) +} +) +} +assignments = @{ +defaultRules = @( +"block" +) +overrides = @( +@{ +name = "userCreated" +rules = @( +"removeSelf" +) +} +@{ +name = "applicationCreated" +rules = @( +"check" +) +} +) +} +appliedCategories = @{ +defaultRules = @( +"allow" +) +overrides = @( +) +} +} +} +) +} +} + +Update-MgBetaSolutionBusinessScenarioPlannerTaskConfiguration -BusinessScenarioId $businessScenarioId -BodyParameter $params + +``` +This example shows how to use the Update-MgBetaSolutionBusinessScenarioPlannerTaskConfiguration Cmdlet. + diff --git a/src/DeviceManagement.Administration/v1.0/examples/Update-MgDeviceManagementRoleDefinition.md b/src/DeviceManagement.Administration/v1.0/examples/Update-MgDeviceManagementRoleDefinition.md index 7708e23aa12..8005d1d886b 100644 --- a/src/DeviceManagement.Administration/v1.0/examples/Update-MgDeviceManagementRoleDefinition.md +++ b/src/DeviceManagement.Administration/v1.0/examples/Update-MgDeviceManagementRoleDefinition.md @@ -5,7 +5,7 @@ Import-Module Microsoft.Graph.DeviceManagement.Administration $params = @{ - "@odata.type" = "#microsoft.graph.deviceAndAppManagementRoleDefinition" + "@odata.type" = "#microsoft.graph.roleDefinition" displayName = "Display Name value" description = "Description value" rolePermissions = @( diff --git a/src/DeviceManagement/v1.0/examples/New-MgDeviceManagementDeviceCompliancePolicy.md b/src/DeviceManagement/v1.0/examples/New-MgDeviceManagementDeviceCompliancePolicy.md index 67a6685dd18..162557f5342 100644 --- a/src/DeviceManagement/v1.0/examples/New-MgDeviceManagementDeviceCompliancePolicy.md +++ b/src/DeviceManagement/v1.0/examples/New-MgDeviceManagementDeviceCompliancePolicy.md @@ -5,31 +5,27 @@ Import-Module Microsoft.Graph.DeviceManagement $params = @{ - "@odata.type" = "#microsoft.graph.androidWorkProfileCompliancePolicy" + "@odata.type" = "#microsoft.graph.macOSCompliancePolicy" description = "Description value" displayName = "Display Name value" version = 7 passwordRequired = $true + passwordBlockSimple = $true + passwordExpirationDays = passwordMinimumLength = - passwordRequiredType = "alphabetic" passwordMinutesOfInactivityBeforeLock = - passwordExpirationDays = passwordPreviousPasswordBlockCount = - securityPreventInstallAppsFromUnknownSources = $true - securityDisableUsbDebugging = $true - securityRequireVerifyApps = $true - deviceThreatProtectionEnabled = $true - deviceThreatProtectionRequiredSecurityLevel = "secured" - securityBlockJailbrokenDevices = $true + passwordMinimumCharacterSetCount = + passwordRequiredType = "alphanumeric" osMinimumVersion = "Os Minimum Version value" osMaximumVersion = "Os Maximum Version value" - minAndroidSecurityPatchLevel = "Min Android Security Patch Level value" + systemIntegrityProtectionEnabled = $true + deviceThreatProtectionEnabled = $true + deviceThreatProtectionRequiredSecurityLevel = "secured" storageRequireEncryption = $true - securityRequireSafetyNetAttestationBasicIntegrity = $true - securityRequireSafetyNetAttestationCertifiedDevice = $true - securityRequireGooglePlayServices = $true - securityRequireUpToDateSecurityProviders = $true - securityRequireCompanyPortalAppIntegrity = $true + firewallEnabled = $true + firewallBlockAllIncoming = $true + firewallEnableStealthMode = $true } New-MgDeviceManagementDeviceCompliancePolicy -BodyParameter $params diff --git a/src/DeviceManagement/v1.0/examples/New-MgDeviceManagementDeviceConfiguration.md b/src/DeviceManagement/v1.0/examples/New-MgDeviceManagementDeviceConfiguration.md index 90c7bfbc5e3..9d502306eb7 100644 --- a/src/DeviceManagement/v1.0/examples/New-MgDeviceManagementDeviceConfiguration.md +++ b/src/DeviceManagement/v1.0/examples/New-MgDeviceManagementDeviceConfiguration.md @@ -5,99 +5,50 @@ Import-Module Microsoft.Graph.DeviceManagement $params = @{ - "@odata.type" = "#microsoft.graph.windows10EndpointProtectionConfiguration" + "@odata.type" = "#microsoft.graph.windowsUpdateForBusinessConfiguration" description = "Description value" displayName = "Display Name value" version = 7 - firewallBlockStatefulFTP = $true - firewallIdleTimeoutForSecurityAssociationInSeconds = - firewallPreSharedKeyEncodingMethod = "none" - firewallIPSecExemptionsAllowNeighborDiscovery = $true - firewallIPSecExemptionsAllowICMP = $true - firewallIPSecExemptionsAllowRouterDiscovery = $true - firewallIPSecExemptionsAllowDHCP = $true - firewallCertificateRevocationListCheckMethod = "none" - firewallMergeKeyingModuleSettings = $true - firewallPacketQueueingMethod = "disabled" - firewallProfileDomain = @{ - "@odata.type" = "microsoft.graph.windowsFirewallNetworkProfile" - firewallEnabled = "blocked" - stealthModeBlocked = $true - incomingTrafficBlocked = $true - unicastResponsesToMulticastBroadcastsBlocked = $true - inboundNotificationsBlocked = $true - authorizedApplicationRulesFromGroupPolicyMerged = $true - globalPortRulesFromGroupPolicyMerged = $true - connectionSecurityRulesFromGroupPolicyMerged = $true - outboundConnectionsBlocked = $true - inboundConnectionsBlocked = $true - securedPacketExemptionAllowed = $true - policyRulesFromGroupPolicyMerged = $true + deliveryOptimizationMode = "httpOnly" + prereleaseFeatures = "settingsOnly" + automaticUpdateMode = "notifyDownload" + microsoftUpdateServiceAllowed = $true + driversExcluded = $true + installationSchedule = @{ + "@odata.type" = "microsoft.graph.windowsUpdateScheduledInstall" + scheduledInstallDay = "everyday" + scheduledInstallTime = "11:59:31.3170000" } - firewallProfilePublic = @{ - "@odata.type" = "microsoft.graph.windowsFirewallNetworkProfile" - firewallEnabled = "blocked" - stealthModeBlocked = $true - incomingTrafficBlocked = $true - unicastResponsesToMulticastBroadcastsBlocked = $true - inboundNotificationsBlocked = $true - authorizedApplicationRulesFromGroupPolicyMerged = $true - globalPortRulesFromGroupPolicyMerged = $true - connectionSecurityRulesFromGroupPolicyMerged = $true - outboundConnectionsBlocked = $true - inboundConnectionsBlocked = $true - securedPacketExemptionAllowed = $true - policyRulesFromGroupPolicyMerged = $true - } - firewallProfilePrivate = @{ - "@odata.type" = "microsoft.graph.windowsFirewallNetworkProfile" - firewallEnabled = "blocked" - stealthModeBlocked = $true - incomingTrafficBlocked = $true - unicastResponsesToMulticastBroadcastsBlocked = $true - inboundNotificationsBlocked = $true - authorizedApplicationRulesFromGroupPolicyMerged = $true - globalPortRulesFromGroupPolicyMerged = $true - connectionSecurityRulesFromGroupPolicyMerged = $true - outboundConnectionsBlocked = $true - inboundConnectionsBlocked = $true - securedPacketExemptionAllowed = $true - policyRulesFromGroupPolicyMerged = $true - } - defenderAttackSurfaceReductionExcludedPaths = @( - "Defender Attack Surface Reduction Excluded Paths value" -) -defenderGuardedFoldersAllowedAppPaths = @( -"Defender Guarded Folders Allowed App Paths value" -) -defenderAdditionalGuardedFolders = @( -"Defender Additional Guarded Folders value" -) -defenderExploitProtectionXml = "ZGVmZW5kZXJFeHBsb2l0UHJvdGVjdGlvblhtbA==" -defenderExploitProtectionXmlFileName = "Defender Exploit Protection Xml File Name value" -defenderSecurityCenterBlockExploitProtectionOverride = $true -appLockerApplicationControl = "enforceComponentsAndStoreApps" -smartScreenEnableInShell = $true -smartScreenBlockOverrideForFiles = $true -applicationGuardEnabled = $true -applicationGuardBlockFileTransfer = "blockImageAndTextFile" -applicationGuardBlockNonEnterpriseContent = $true -applicationGuardAllowPersistence = $true -applicationGuardForceAuditing = $true -applicationGuardBlockClipboardSharing = "blockBoth" -applicationGuardAllowPrintToPDF = $true -applicationGuardAllowPrintToXPS = $true -applicationGuardAllowPrintToLocalPrinters = $true -applicationGuardAllowPrintToNetworkPrinters = $true -bitLockerDisableWarningForOtherDiskEncryption = $true -bitLockerEnableStorageCardEncryptionOnMobile = $true -bitLockerEncryptDevice = $true -bitLockerRemovableDrivePolicy = @{ -"@odata.type" = "microsoft.graph.bitLockerRemovableDrivePolicy" -encryptionMethod = "aesCbc256" -requireEncryptionForWriteAccess = $true -blockCrossOrganizationWriteAccess = $true -} + qualityUpdatesDeferralPeriodInDays = + featureUpdatesDeferralPeriodInDays = + qualityUpdatesPaused = $true + featureUpdatesPaused = $true + qualityUpdatesPauseExpiryDateTime = "2017-01-01T00:00:22.9594683-08:00" + featureUpdatesPauseExpiryDateTime = "2016-12-31T23:58:08.068669-08:00" + businessReadyUpdatesOnly = "all" + skipChecksBeforeRestart = $true + updateWeeks = "firstWeek" + qualityUpdatesPauseStartDate = "2016-12-31" + featureUpdatesPauseStartDate = "2016-12-31" + featureUpdatesRollbackWindowInDays = + qualityUpdatesWillBeRolledBack = $true + featureUpdatesWillBeRolledBack = $true + qualityUpdatesRollbackStartDateTime = "2016-12-31T23:57:01.05526-08:00" + featureUpdatesRollbackStartDateTime = "2017-01-01T00:03:21.6080517-08:00" + engagedRestartDeadlineInDays = + engagedRestartSnoozeScheduleInDays = + engagedRestartTransitionScheduleInDays = + deadlineForFeatureUpdatesInDays = + deadlineForQualityUpdatesInDays = + deadlineGracePeriodInDays = + postponeRebootUntilAfterDeadline = $true + autoRestartNotificationDismissal = "automatic" + scheduleRestartWarningInHours = + scheduleImminentRestartWarningInMinutes = + userPauseAccess = "enabled" + userWindowsUpdateScanAccess = "enabled" + updateNotificationLevel = "defaultNotifications" + allowWindows11Upgrade = $true } New-MgDeviceManagementDeviceConfiguration -BodyParameter $params diff --git a/src/DeviceManagement/v1.0/examples/Update-MgDeviceManagementDeviceCompliancePolicy.md b/src/DeviceManagement/v1.0/examples/Update-MgDeviceManagementDeviceCompliancePolicy.md index 47bf580e429..3617b2ef9eb 100644 --- a/src/DeviceManagement/v1.0/examples/Update-MgDeviceManagementDeviceCompliancePolicy.md +++ b/src/DeviceManagement/v1.0/examples/Update-MgDeviceManagementDeviceCompliancePolicy.md @@ -5,29 +5,27 @@ Import-Module Microsoft.Graph.DeviceManagement $params = @{ - "@odata.type" = "#microsoft.graph.windows10CompliancePolicy" + "@odata.type" = "#microsoft.graph.macOSCompliancePolicy" description = "Description value" displayName = "Display Name value" version = 7 passwordRequired = $true passwordBlockSimple = $true - passwordRequiredToUnlockFromIdle = $true - passwordMinutesOfInactivityBeforeLock = passwordExpirationDays = passwordMinimumLength = + passwordMinutesOfInactivityBeforeLock = + passwordPreviousPasswordBlockCount = passwordMinimumCharacterSetCount = passwordRequiredType = "alphanumeric" - passwordPreviousPasswordBlockCount = - requireHealthyDeviceReport = $true osMinimumVersion = "Os Minimum Version value" osMaximumVersion = "Os Maximum Version value" - mobileOsMinimumVersion = "Mobile Os Minimum Version value" - mobileOsMaximumVersion = "Mobile Os Maximum Version value" - earlyLaunchAntiMalwareDriverEnabled = $true - bitLockerEnabled = $true - secureBootEnabled = $true - codeIntegrityEnabled = $true + systemIntegrityProtectionEnabled = $true + deviceThreatProtectionEnabled = $true + deviceThreatProtectionRequiredSecurityLevel = "secured" storageRequireEncryption = $true + firewallEnabled = $true + firewallBlockAllIncoming = $true + firewallEnableStealthMode = $true } Update-MgDeviceManagementDeviceCompliancePolicy -DeviceCompliancePolicyId $deviceCompliancePolicyId -BodyParameter $params diff --git a/src/DeviceManagement/v1.0/examples/Update-MgDeviceManagementDeviceConfiguration.md b/src/DeviceManagement/v1.0/examples/Update-MgDeviceManagementDeviceConfiguration.md index cd7630598eb..1f25f3711d0 100644 --- a/src/DeviceManagement/v1.0/examples/Update-MgDeviceManagementDeviceConfiguration.md +++ b/src/DeviceManagement/v1.0/examples/Update-MgDeviceManagementDeviceConfiguration.md @@ -5,32 +5,50 @@ Import-Module Microsoft.Graph.DeviceManagement $params = @{ - "@odata.type" = "#microsoft.graph.macOSGeneralDeviceConfiguration" + "@odata.type" = "#microsoft.graph.windowsUpdateForBusinessConfiguration" description = "Description value" displayName = "Display Name value" version = 7 - compliantAppsList = @( - @{ - "@odata.type" = "microsoft.graph.appListItem" - name = "Name value" - publisher = "Publisher value" - appStoreUrl = "https://example.com/appStoreUrl/" - appId = "App Id value" - } - ) - compliantAppListType = "appsInListCompliant" - emailInDomainSuffixes = @( - "Email In Domain Suffixes value" -) -passwordBlockSimple = $true -passwordExpirationDays = -passwordMinimumCharacterSetCount = -passwordMinimumLength = -passwordMinutesOfInactivityBeforeLock = -passwordMinutesOfInactivityBeforeScreenTimeout = -passwordPreviousPasswordBlockCount = -passwordRequiredType = "alphanumeric" -passwordRequired = $true + deliveryOptimizationMode = "httpOnly" + prereleaseFeatures = "settingsOnly" + automaticUpdateMode = "notifyDownload" + microsoftUpdateServiceAllowed = $true + driversExcluded = $true + installationSchedule = @{ + "@odata.type" = "microsoft.graph.windowsUpdateScheduledInstall" + scheduledInstallDay = "everyday" + scheduledInstallTime = "11:59:31.3170000" + } + qualityUpdatesDeferralPeriodInDays = + featureUpdatesDeferralPeriodInDays = + qualityUpdatesPaused = $true + featureUpdatesPaused = $true + qualityUpdatesPauseExpiryDateTime = "2017-01-01T00:00:22.9594683-08:00" + featureUpdatesPauseExpiryDateTime = "2016-12-31T23:58:08.068669-08:00" + businessReadyUpdatesOnly = "all" + skipChecksBeforeRestart = $true + updateWeeks = "firstWeek" + qualityUpdatesPauseStartDate = "2016-12-31" + featureUpdatesPauseStartDate = "2016-12-31" + featureUpdatesRollbackWindowInDays = + qualityUpdatesWillBeRolledBack = $true + featureUpdatesWillBeRolledBack = $true + qualityUpdatesRollbackStartDateTime = "2016-12-31T23:57:01.05526-08:00" + featureUpdatesRollbackStartDateTime = "2017-01-01T00:03:21.6080517-08:00" + engagedRestartDeadlineInDays = + engagedRestartSnoozeScheduleInDays = + engagedRestartTransitionScheduleInDays = + deadlineForFeatureUpdatesInDays = + deadlineForQualityUpdatesInDays = + deadlineGracePeriodInDays = + postponeRebootUntilAfterDeadline = $true + autoRestartNotificationDismissal = "automatic" + scheduleRestartWarningInHours = + scheduleImminentRestartWarningInMinutes = + userPauseAccess = "enabled" + userWindowsUpdateScanAccess = "enabled" + updateNotificationLevel = "defaultNotifications" + allowWindows11Upgrade = $true } Update-MgDeviceManagementDeviceConfiguration -DeviceConfigurationId $deviceConfigurationId -BodyParameter $params diff --git a/src/Devices.CorporateManagement/v1.0/examples/Invoke-MgTargetDeviceAppManagementManagedAppRegistrationAppliedPolicyApp.md b/src/Devices.CorporateManagement/v1.0/examples/Invoke-MgTargetDeviceAppManagementManagedAppRegistrationAppliedPolicyApp.md index 8b137891791..e69de29bb2d 100644 --- a/src/Devices.CorporateManagement/v1.0/examples/Invoke-MgTargetDeviceAppManagementManagedAppRegistrationAppliedPolicyApp.md +++ b/src/Devices.CorporateManagement/v1.0/examples/Invoke-MgTargetDeviceAppManagementManagedAppRegistrationAppliedPolicyApp.md @@ -1 +0,0 @@ - diff --git a/src/Devices.CorporateManagement/v1.0/examples/Invoke-MgTargetDeviceAppManagementManagedAppRegistrationIntendedPolicyApp.md b/src/Devices.CorporateManagement/v1.0/examples/Invoke-MgTargetDeviceAppManagementManagedAppRegistrationIntendedPolicyApp.md index 8b137891791..e69de29bb2d 100644 --- a/src/Devices.CorporateManagement/v1.0/examples/Invoke-MgTargetDeviceAppManagementManagedAppRegistrationIntendedPolicyApp.md +++ b/src/Devices.CorporateManagement/v1.0/examples/Invoke-MgTargetDeviceAppManagementManagedAppRegistrationIntendedPolicyApp.md @@ -1 +0,0 @@ - diff --git a/src/Devices.CorporateManagement/v1.0/examples/New-MgDeviceAppManagementManagedEBookAssignment.md b/src/Devices.CorporateManagement/v1.0/examples/New-MgDeviceAppManagementManagedEBookAssignment.md index 07a29075ba1..5375680d306 100644 --- a/src/Devices.CorporateManagement/v1.0/examples/New-MgDeviceAppManagementManagedEBookAssignment.md +++ b/src/Devices.CorporateManagement/v1.0/examples/New-MgDeviceAppManagementManagedEBookAssignment.md @@ -5,9 +5,9 @@ Import-Module Microsoft.Graph.Devices.CorporateManagement $params = @{ - "@odata.type" = "#microsoft.graph.iosVppEBookAssignment" + "@odata.type" = "#microsoft.graph.managedEBookAssignment" target = @{ - "@odata.type" = "microsoft.graph.deviceAndAppManagementAssignmentTarget" + "@odata.type" = "microsoft.graph.allLicensedUsersAssignmentTarget" } installIntent = "required" } diff --git a/src/Devices.CorporateManagement/v1.0/examples/New-MgDeviceAppManagementMobileApp.md b/src/Devices.CorporateManagement/v1.0/examples/New-MgDeviceAppManagementMobileApp.md index b4b71b81d7d..31ebc53f88a 100644 --- a/src/Devices.CorporateManagement/v1.0/examples/New-MgDeviceAppManagementMobileApp.md +++ b/src/Devices.CorporateManagement/v1.0/examples/New-MgDeviceAppManagementMobileApp.md @@ -5,7 +5,7 @@ Import-Module Microsoft.Graph.Devices.CorporateManagement $params = @{ - "@odata.type" = "#microsoft.graph.iosiPadOSWebClip" + "@odata.type" = "#microsoft.graph.androidStoreApp" displayName = "Display Name value" description = "Description value" publisher = "Publisher value" @@ -21,8 +21,27 @@ $params = @{ developer = "Developer value" notes = "Notes value" publishingState = "processing" - appUrl = "https://example.com/appUrl/" - useManagedBrowser = $true + packageId = "Package Id value" + appStoreUrl = "https://example.com/appStoreUrl/" + minimumSupportedOperatingSystem = @{ + "@odata.type" = "microsoft.graph.androidMinimumOperatingSystem" + v4_0 = $true + v4_0_3 = $true + v4_1 = $true + v4_2 = $true + v4_3 = $true + v4_4 = $true + v5_0 = $true + v5_1 = $true + v6_0 = $true + v7_0 = $true + v7_1 = $true + v8_0 = $true + v8_1 = $true + v9_0 = $true + v10_0 = $true + v11_0 = $true + } } New-MgDeviceAppManagementMobileApp -BodyParameter $params diff --git a/src/Devices.CorporateManagement/v1.0/examples/Update-MgDeviceAppManagement.md b/src/Devices.CorporateManagement/v1.0/examples/Update-MgDeviceAppManagement.md index 080b5371f8f..383de5fcb93 100644 --- a/src/Devices.CorporateManagement/v1.0/examples/Update-MgDeviceAppManagement.md +++ b/src/Devices.CorporateManagement/v1.0/examples/Update-MgDeviceAppManagement.md @@ -6,10 +6,6 @@ Import-Module Microsoft.Graph.Devices.CorporateManagement $params = @{ "@odata.type" = "#microsoft.graph.deviceAppManagement" - microsoftStoreForBusinessLastSuccessfulSyncDateTime = [System.DateTime]::Parse("2016-12-31T23:57:45.2453148-08:00") - isEnabledForMicrosoftStoreForBusiness = $true - microsoftStoreForBusinessLanguage = "Microsoft Store For Business Language value" - microsoftStoreForBusinessLastCompletedApplicationSyncTime = [System.DateTime]::Parse("2017-01-01T00:02:00.0421137-08:00") } Update-MgDeviceAppManagement -BodyParameter $params diff --git a/src/Devices.CorporateManagement/v1.0/examples/Update-MgDeviceAppManagementMobileApp.md b/src/Devices.CorporateManagement/v1.0/examples/Update-MgDeviceAppManagementMobileApp.md index a103174d429..80da8755774 100644 --- a/src/Devices.CorporateManagement/v1.0/examples/Update-MgDeviceAppManagementMobileApp.md +++ b/src/Devices.CorporateManagement/v1.0/examples/Update-MgDeviceAppManagementMobileApp.md @@ -5,7 +5,7 @@ Import-Module Microsoft.Graph.Devices.CorporateManagement $params = @{ - "@odata.type" = "#microsoft.graph.windowsWebApp" + "@odata.type" = "#microsoft.graph.iosLobApp" displayName = "Display Name value" description = "Description value" publisher = "Publisher value" @@ -21,7 +21,29 @@ $params = @{ developer = "Developer value" notes = "Notes value" publishingState = "processing" - appUrl = "https://example.com/appUrl/" + committedContentVersion = "Committed Content Version value" + fileName = "File Name value" + size = + bundleId = "Bundle Id value" + applicableDeviceType = @{ + "@odata.type" = "microsoft.graph.iosDeviceType" + iPad = $true + iPhoneAndIPod = $true + } + minimumSupportedOperatingSystem = @{ + "@odata.type" = "microsoft.graph.iosMinimumOperatingSystem" + v8_0 = $true + v9_0 = $true + v10_0 = $true + v11_0 = $true + v12_0 = $true + v13_0 = $true + v14_0 = $true + v15_0 = $true + } + expirationDateTime = "2016-12-31T23:57:57.2481234-08:00" + versionNumber = "Version Number value" + buildNumber = "Build Number value" } Update-MgDeviceAppManagementMobileApp -MobileAppId $mobileAppId -BodyParameter $params diff --git a/src/Files/beta/examples/Remove-MgBetaDriveItemCheckout.md b/src/Files/beta/examples/Remove-MgBetaDriveItemCheckout.md new file mode 100644 index 00000000000..8fe84d6503e --- /dev/null +++ b/src/Files/beta/examples/Remove-MgBetaDriveItemCheckout.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Files + +Remove-MgBetaDriveItemCheckout -DriveId $driveId -DriveItemId $driveItemId + +``` +This example shows how to use the Remove-MgBetaDriveItemCheckout Cmdlet. + diff --git a/src/Files/beta/examples/Remove-MgBetaDriveRootCheckout.md b/src/Files/beta/examples/Remove-MgBetaDriveRootCheckout.md new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/src/Files/beta/examples/Remove-MgBetaDriveRootCheckout.md @@ -0,0 +1 @@ + diff --git a/src/Files/beta/examples/Update-MgBetaDriveItemRetentionLabel.md b/src/Files/beta/examples/Update-MgBetaDriveItemRetentionLabel.md index f87bb75b398..50f0d9d2200 100644 --- a/src/Files/beta/examples/Update-MgBetaDriveItemRetentionLabel.md +++ b/src/Files/beta/examples/Update-MgBetaDriveItemRetentionLabel.md @@ -5,9 +5,7 @@ Import-Module Microsoft.Graph.Beta.Files $params = @{ - retentionSettings = @{ - isRecordLocked = $true - } + name = "Retention label for Contracts" } Update-MgBetaDriveItemRetentionLabel -DriveId $driveId -DriveItemId $driveItemId -BodyParameter $params diff --git a/src/Groups/beta/examples/Remove-MgBetaGroupCalendarEventPermanent.md b/src/Groups/beta/examples/Remove-MgBetaGroupCalendarEventPermanent.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Groups/beta/examples/Remove-MgBetaGroupCalendarPermanent.md b/src/Groups/beta/examples/Remove-MgBetaGroupCalendarPermanent.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Groups/beta/examples/Remove-MgBetaGroupDriveItemCheckout.md b/src/Groups/beta/examples/Remove-MgBetaGroupDriveItemCheckout.md new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/src/Groups/beta/examples/Remove-MgBetaGroupDriveItemCheckout.md @@ -0,0 +1 @@ + diff --git a/src/Groups/beta/examples/Remove-MgBetaGroupDriveRootCheckout.md b/src/Groups/beta/examples/Remove-MgBetaGroupDriveRootCheckout.md new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/src/Groups/beta/examples/Remove-MgBetaGroupDriveRootCheckout.md @@ -0,0 +1 @@ + diff --git a/src/Groups/beta/examples/Remove-MgBetaGroupEventPermanent.md b/src/Groups/beta/examples/Remove-MgBetaGroupEventPermanent.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Groups/beta/examples/Remove-MgBetaGroupSiteContentModelFromDrive.md b/src/Groups/beta/examples/Remove-MgBetaGroupSiteContentModelFromDrive.md new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/src/Groups/beta/examples/Remove-MgBetaGroupSiteContentModelFromDrive.md @@ -0,0 +1 @@ + diff --git a/src/Groups/beta/examples/Remove-MgBetaGroupSiteContentModelGetByNameFromDrive.md b/src/Groups/beta/examples/Remove-MgBetaGroupSiteContentModelGetByNameFromDrive.md new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/src/Groups/beta/examples/Remove-MgBetaGroupSiteContentModelGetByNameFromDrive.md @@ -0,0 +1 @@ + diff --git a/src/Identity.DirectoryManagement/beta/examples/New-MgBetaAdminPeopleProfileCardProperty.md b/src/Identity.DirectoryManagement/beta/examples/New-MgBetaAdminPeopleProfileCardProperty.md new file mode 100644 index 00000000000..303aadc3a6c --- /dev/null +++ b/src/Identity.DirectoryManagement/beta/examples/New-MgBetaAdminPeopleProfileCardProperty.md @@ -0,0 +1,26 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +$params = @{ + directoryPropertyName = "CustomAttribute1" + annotations = @( + @{ + displayName = "Cost Center" + localizations = @( + @{ + languageTag = "ru" + displayName = "центр затрат" + } + ) + } + ) +} + +New-MgBetaAdminPeopleProfileCardProperty -BodyParameter $params + +``` +This example shows how to use the New-MgBetaAdminPeopleProfileCardProperty Cmdlet. + diff --git a/src/Identity.DirectoryManagement/beta/examples/New-MgBetaAdministrativeUnitMember.md b/src/Identity.DirectoryManagement/beta/examples/New-MgBetaAdministrativeUnitMember.md new file mode 100644 index 00000000000..7272f543953 --- /dev/null +++ b/src/Identity.DirectoryManagement/beta/examples/New-MgBetaAdministrativeUnitMember.md @@ -0,0 +1,23 @@ +### Example 1: Create a new group + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +$params = @{ + "@odata.type" = "#microsoft.graph.group" + description = "Self help community for golf" + displayName = "Golf Assist" + groupTypes = @( + "Unified" +) +mailEnabled = $true +mailNickname = "golfassist" +securityEnabled = $false +} + +New-MgBetaAdministrativeUnitMember -AdministrativeUnitId $administrativeUnitId -BodyParameter $params + +``` +This example will create a new group + diff --git a/src/Identity.DirectoryManagement/beta/examples/New-MgBetaAdministrativeUnitMemberByRef.md b/src/Identity.DirectoryManagement/beta/examples/New-MgBetaAdministrativeUnitMemberByRef.md index 4d356b4337f..551a6fb03bd 100644 --- a/src/Identity.DirectoryManagement/beta/examples/New-MgBetaAdministrativeUnitMemberByRef.md +++ b/src/Identity.DirectoryManagement/beta/examples/New-MgBetaAdministrativeUnitMemberByRef.md @@ -1,10 +1,15 @@ -### Example 1: Using the New-MgBetaAdministrativeUnitMemberByRef Cmdlet +### Example 1: Add an existing user or group + ```powershell + Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + $params = @{ "@odata.id" = "https://graph.microsoft.com/beta/groups/{id}" } + New-MgBetaAdministrativeUnitMemberByRef -AdministrativeUnitId $administrativeUnitId -BodyParameter $params + ``` -This example shows how to use the New-MgBetaAdministrativeUnitMemberByRef Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +This example will add an existing user or group + diff --git a/src/Identity.DirectoryManagement/beta/examples/New-MgBetaAdministrativeUnitScopedRoleMember.md b/src/Identity.DirectoryManagement/beta/examples/New-MgBetaAdministrativeUnitScopedRoleMember.md index 97c4bbd1067..f2500b078e4 100644 --- a/src/Identity.DirectoryManagement/beta/examples/New-MgBetaAdministrativeUnitScopedRoleMember.md +++ b/src/Identity.DirectoryManagement/beta/examples/New-MgBetaAdministrativeUnitScopedRoleMember.md @@ -1,13 +1,18 @@ -### Example 1: Using the New-MgBetaAdministrativeUnitScopedRoleMember Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + $params = @{ - RoleId = "roleId-value" - RoleMemberInfo = @{ - Id = "id-value" + roleId = "roleId-value" + roleMemberInfo = @{ + id = "id-value" } } + New-MgBetaAdministrativeUnitScopedRoleMember -AdministrativeUnitId $administrativeUnitId -BodyParameter $params + ``` This example shows how to use the New-MgBetaAdministrativeUnitScopedRoleMember Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/beta/examples/New-MgBetaDeviceRegisteredUserByRef.md b/src/Identity.DirectoryManagement/beta/examples/New-MgBetaDeviceRegisteredUserByRef.md new file mode 100644 index 00000000000..c7202b3176b --- /dev/null +++ b/src/Identity.DirectoryManagement/beta/examples/New-MgBetaDeviceRegisteredUserByRef.md @@ -0,0 +1,15 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +$params = @{ + "@odata.id" = "https://graph.microsoft.com/beta/directoryObjects/{id}" +} + +New-MgBetaDeviceRegisteredUserByRef -DeviceId $deviceId -BodyParameter $params + +``` +This example shows how to use the New-MgBetaDeviceRegisteredUserByRef Cmdlet. + diff --git a/src/Identity.DirectoryManagement/beta/examples/New-MgBetaDirectoryCertificateAuthorityCertificateBasedApplicationConfigurationTrustedCertificateAuthority.md b/src/Identity.DirectoryManagement/beta/examples/New-MgBetaDirectoryCertificateAuthorityCertificateBasedApplicationConfigurationTrustedCertificateAuthority.md new file mode 100644 index 00000000000..66ef7f7bc6f --- /dev/null +++ b/src/Identity.DirectoryManagement/beta/examples/New-MgBetaDirectoryCertificateAuthorityCertificateBasedApplicationConfigurationTrustedCertificateAuthority.md @@ -0,0 +1,18 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +$params = @{ + isRootAuthority = $true + certificate = [System.Text.Encoding]::ASCII.GetBytes("MIIGrDCCBJSgAwIBAgITWgACAdWQXvWynRA6/AABAAIB....") + issuer = "ExampleIssuer" + issuerSubjectKeyIdentifier = " BA:AF:4A:02:4D:AA:A6:F1:3C:25:8E:AD:FA:38:98:CE:D9:23:32:D9" +} + +New-MgBetaDirectoryCertificateAuthorityCertificateBasedApplicationConfigurationTrustedCertificateAuthority -CertificateBasedApplicationConfigurationId $certificateBasedApplicationConfigurationId -BodyParameter $params + +``` +This example shows how to use the New-MgBetaDirectoryCertificateAuthorityCertificateBasedApplicationConfigurationTrustedCertificateAuthority Cmdlet. + diff --git a/src/Identity.DirectoryManagement/beta/examples/New-MgBetaDirectoryPendingExternalUserProfile.md b/src/Identity.DirectoryManagement/beta/examples/New-MgBetaDirectoryPendingExternalUserProfile.md new file mode 100644 index 00000000000..fd00ae2307e --- /dev/null +++ b/src/Identity.DirectoryManagement/beta/examples/New-MgBetaDirectoryPendingExternalUserProfile.md @@ -0,0 +1,16 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +$params = @{ + phoneNumber = "+15555555555" + displayName = "Bob Henry" +} + +New-MgBetaDirectoryPendingExternalUserProfile -BodyParameter $params + +``` +This example shows how to use the New-MgBetaDirectoryPendingExternalUserProfile Cmdlet. + diff --git a/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaAdminPeopleProfileCardProperty.md b/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaAdminPeopleProfileCardProperty.md new file mode 100644 index 00000000000..d5bd4c939b0 --- /dev/null +++ b/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaAdminPeopleProfileCardProperty.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +Remove-MgBetaAdminPeopleProfileCardProperty -ProfileCardPropertyId $profileCardPropertyId + +``` +This example shows how to use the Remove-MgBetaAdminPeopleProfileCardProperty Cmdlet. + diff --git a/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaAdministrativeUnitScopedRoleMember.md b/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaAdministrativeUnitScopedRoleMember.md index d5001f39325..8276f54f750 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaAdministrativeUnitScopedRoleMember.md +++ b/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaAdministrativeUnitScopedRoleMember.md @@ -1,7 +1,11 @@ -### Example 1: Using the Remove-MgBetaAdministrativeUnitScopedRoleMember Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + Remove-MgBetaAdministrativeUnitScopedRoleMember -AdministrativeUnitId $administrativeUnitId -ScopedRoleMembershipId $scopedRoleMembershipId + ``` This example shows how to use the Remove-MgBetaAdministrativeUnitScopedRoleMember Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDeviceRegisteredOwnerDirectoryObjectByRef.md b/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDeviceRegisteredOwnerDirectoryObjectByRef.md new file mode 100644 index 00000000000..b6743a7331a --- /dev/null +++ b/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDeviceRegisteredOwnerDirectoryObjectByRef.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +Remove-MgBetaDeviceRegisteredOwnerDirectoryObjectByRef -DeviceId $deviceId -DirectoryObjectId $directoryObjectId + +``` +This example shows how to use the Remove-MgBetaDeviceRegisteredOwnerDirectoryObjectByRef Cmdlet. + diff --git a/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDeviceRegisteredUserDirectoryObjectByRef.md b/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDeviceRegisteredUserDirectoryObjectByRef.md new file mode 100644 index 00000000000..acbfdeeef58 --- /dev/null +++ b/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDeviceRegisteredUserDirectoryObjectByRef.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +Remove-MgBetaDeviceRegisteredUserDirectoryObjectByRef -DeviceId $deviceId -DirectoryObjectId $directoryObjectId + +``` +This example shows how to use the Remove-MgBetaDeviceRegisteredUserDirectoryObjectByRef Cmdlet. + diff --git a/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDirectoryCertificateAuthorityCertificateBasedApplicationConfiguration.md b/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDirectoryCertificateAuthorityCertificateBasedApplicationConfiguration.md new file mode 100644 index 00000000000..d8ccc1d2275 --- /dev/null +++ b/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDirectoryCertificateAuthorityCertificateBasedApplicationConfiguration.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +Remove-MgBetaDirectoryCertificateAuthorityCertificateBasedApplicationConfiguration -CertificateBasedApplicationConfigurationId $certificateBasedApplicationConfigurationId + +``` +This example shows how to use the Remove-MgBetaDirectoryCertificateAuthorityCertificateBasedApplicationConfiguration Cmdlet. + diff --git a/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDirectoryCertificateAuthorityCertificateBasedApplicationConfigurationTrustedCertificateAuthority.md b/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDirectoryCertificateAuthorityCertificateBasedApplicationConfigurationTrustedCertificateAuthority.md new file mode 100644 index 00000000000..a0ecb79b265 --- /dev/null +++ b/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDirectoryCertificateAuthorityCertificateBasedApplicationConfigurationTrustedCertificateAuthority.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +Remove-MgBetaDirectoryCertificateAuthorityCertificateBasedApplicationConfigurationTrustedCertificateAuthority -CertificateBasedApplicationConfigurationId $certificateBasedApplicationConfigurationId -CertificateAuthorityAsEntityId $certificateAuthorityAsEntityId + +``` +This example shows how to use the Remove-MgBetaDirectoryCertificateAuthorityCertificateBasedApplicationConfigurationTrustedCertificateAuthority Cmdlet. + diff --git a/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDirectoryExternalUserProfile.md b/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDirectoryExternalUserProfile.md new file mode 100644 index 00000000000..ab98146e0e0 --- /dev/null +++ b/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDirectoryExternalUserProfile.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +Remove-MgBetaDirectoryExternalUserProfile -ExternalUserProfileId $externalUserProfileId + +``` +This example shows how to use the Remove-MgBetaDirectoryExternalUserProfile Cmdlet. + diff --git a/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDirectoryPendingExternalUserProfile.md b/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDirectoryPendingExternalUserProfile.md new file mode 100644 index 00000000000..c1b0bf58ca5 --- /dev/null +++ b/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDirectoryPendingExternalUserProfile.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +Remove-MgBetaDirectoryPendingExternalUserProfile -PendingExternalUserProfileId $pendingExternalUserProfileId + +``` +This example shows how to use the Remove-MgBetaDirectoryPendingExternalUserProfile Cmdlet. + diff --git a/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDirectoryRoleMemberDirectoryObjectByRef.md b/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDirectoryRoleMemberDirectoryObjectByRef.md new file mode 100644 index 00000000000..f38884f3a8a --- /dev/null +++ b/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDirectoryRoleMemberDirectoryObjectByRef.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +Remove-MgBetaDirectoryRoleMemberDirectoryObjectByRef -DirectoryRoleId $directoryRoleId -DirectoryObjectId $directoryObjectId + +``` +This example shows how to use the Remove-MgBetaDirectoryRoleMemberDirectoryObjectByRef Cmdlet. + diff --git a/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaOrganizationBranding.md b/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaOrganizationBranding.md index e69de29bb2d..6467c1dd0df 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaOrganizationBranding.md +++ b/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaOrganizationBranding.md @@ -0,0 +1,15 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +$params = @{ + id = "0" +} + +Remove-MgBetaOrganizationBranding -OrganizationId $organizationId -BodyParameter $params + +``` +This example shows how to use the Remove-MgBetaOrganizationBranding Cmdlet. + diff --git a/src/Identity.DirectoryManagement/beta/examples/Set-MgBetaOrganizationBrandingLocalizationBannerLogo.md b/src/Identity.DirectoryManagement/beta/examples/Set-MgBetaOrganizationBrandingLocalizationBannerLogo.md index e69de29bb2d..2b10fb178f0 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Set-MgBetaOrganizationBrandingLocalizationBannerLogo.md +++ b/src/Identity.DirectoryManagement/beta/examples/Set-MgBetaOrganizationBrandingLocalizationBannerLogo.md @@ -0,0 +1,13 @@ +### Example 1: Setting **bannerLogo** for the fr-FR localization using PUT + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +$params = Binary data for the image + +Set-MgBetaOrganizationBrandingLocalizationBannerLogo -OrganizationId $organizationId -OrganizationalBrandingLocalizationId $organizationalBrandingLocalizationId -BodyParameter $params + +``` +This example shows setting **bannerlogo** for the fr-fr localization using put + diff --git a/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaAdminPeopleItemInsight.md b/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaAdminPeopleItemInsight.md new file mode 100644 index 00000000000..15200f4e866 --- /dev/null +++ b/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaAdminPeopleItemInsight.md @@ -0,0 +1,15 @@ +### Example 1: Update settings for item insights + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +$params = @{ + disabledForGroup = "edbfe4fb-ec70-4300-928f-dbb2ae86c981" +} + +Update-MgBetaAdminPeopleItemInsight -BodyParameter $params + +``` +This example will update settings for item insights + diff --git a/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaAdminPeopleProfileCardProperty.md b/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaAdminPeopleProfileCardProperty.md new file mode 100644 index 00000000000..c1750082147 --- /dev/null +++ b/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaAdminPeopleProfileCardProperty.md @@ -0,0 +1,25 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +$params = @{ + annotations = @( + @{ + displayName = "Cost Center" + localizations = @( + @{ + languageTag = "no" + displayName = "Kostnadssenter" + } + ) + } + ) +} + +Update-MgBetaAdminPeopleProfileCardProperty -ProfileCardPropertyId $profileCardPropertyId -BodyParameter $params + +``` +This example shows how to use the Update-MgBetaAdminPeopleProfileCardProperty Cmdlet. + diff --git a/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaAdminPeoplePronoun.md b/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaAdminPeoplePronoun.md new file mode 100644 index 00000000000..69edbff1d83 --- /dev/null +++ b/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaAdminPeoplePronoun.md @@ -0,0 +1,15 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +$params = @{ + isEnabledInOrganization = $true +} + +Update-MgBetaAdminPeoplePronoun -BodyParameter $params + +``` +This example shows how to use the Update-MgBetaAdminPeoplePronoun Cmdlet. + diff --git a/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaDirectoryCertificateAuthorityCertificateBasedApplicationConfiguration.md b/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaDirectoryCertificateAuthorityCertificateBasedApplicationConfiguration.md new file mode 100644 index 00000000000..a27e72c015c --- /dev/null +++ b/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaDirectoryCertificateAuthorityCertificateBasedApplicationConfiguration.md @@ -0,0 +1,17 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +$params = @{ + "@odata.type" = "#microsoft.graph.certificateBasedApplicationConfiguration" + displayName = "New display name" + description = "New description text" +} + +Update-MgBetaDirectoryCertificateAuthorityCertificateBasedApplicationConfiguration -CertificateBasedApplicationConfigurationId $certificateBasedApplicationConfigurationId -BodyParameter $params + +``` +This example shows how to use the Update-MgBetaDirectoryCertificateAuthorityCertificateBasedApplicationConfiguration Cmdlet. + diff --git a/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaDirectoryCertificateAuthorityCertificateBasedApplicationConfigurationTrustedCertificateAuthority.md b/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaDirectoryCertificateAuthorityCertificateBasedApplicationConfigurationTrustedCertificateAuthority.md new file mode 100644 index 00000000000..fc9d318bc08 --- /dev/null +++ b/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaDirectoryCertificateAuthorityCertificateBasedApplicationConfigurationTrustedCertificateAuthority.md @@ -0,0 +1,15 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +$params = @{ + isRootAuthority = $true +} + +Update-MgBetaDirectoryCertificateAuthorityCertificateBasedApplicationConfigurationTrustedCertificateAuthority -CertificateBasedApplicationConfigurationId $certificateBasedApplicationConfigurationId -CertificateAuthorityAsEntityId $certificateAuthorityAsEntityId -BodyParameter $params + +``` +This example shows how to use the Update-MgBetaDirectoryCertificateAuthorityCertificateBasedApplicationConfigurationTrustedCertificateAuthority Cmdlet. + diff --git a/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaDirectoryExternalUserProfile.md b/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaDirectoryExternalUserProfile.md new file mode 100644 index 00000000000..3ac59fe526f --- /dev/null +++ b/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaDirectoryExternalUserProfile.md @@ -0,0 +1,15 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +$params = @{ + jobTitle = "Contractor" +} + +Update-MgBetaDirectoryExternalUserProfile -ExternalUserProfileId $externalUserProfileId -BodyParameter $params + +``` +This example shows how to use the Update-MgBetaDirectoryExternalUserProfile Cmdlet. + diff --git a/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaDirectoryOnPremiseSynchronization.md b/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaDirectoryOnPremiseSynchronization.md new file mode 100644 index 00000000000..cc14a654a1f --- /dev/null +++ b/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaDirectoryOnPremiseSynchronization.md @@ -0,0 +1,25 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +$params = @{ + configuration = @{ + accidentalDeletionPrevention = @{ + synchronizationPreventionType = "enabledForCount" + alertThreshold = 500 + } + synchronizationInterval = "PT30M" + customerRequestedSynchronizationInterval = "PT1H" + } + features = @{ + groupWriteBackEnabled = $true + } +} + +Update-MgBetaDirectoryOnPremiseSynchronization -OnPremisesDirectorySynchronizationId $onPremisesDirectorySynchronizationId -BodyParameter $params + +``` +This example shows how to use the Update-MgBetaDirectoryOnPremiseSynchronization Cmdlet. + diff --git a/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaDirectoryPendingExternalUserProfile.md b/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaDirectoryPendingExternalUserProfile.md new file mode 100644 index 00000000000..3a5402e7785 --- /dev/null +++ b/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaDirectoryPendingExternalUserProfile.md @@ -0,0 +1,15 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +$params = @{ + jobTitle = "Contractor" +} + +Update-MgBetaDirectoryPendingExternalUserProfile -PendingExternalUserProfileId $pendingExternalUserProfileId -BodyParameter $params + +``` +This example shows how to use the Update-MgBetaDirectoryPendingExternalUserProfile Cmdlet. + diff --git a/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaOrganizationSettingContactInsight.md b/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaOrganizationSettingContactInsight.md index cac439083ed..3bf48e6da7b 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaOrganizationSettingContactInsight.md +++ b/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaOrganizationSettingContactInsight.md @@ -1,11 +1,16 @@ -### Example 1: Using the Update-MgBetaOrganizationSettingContactInsight Cmdlet +### Example 1: Update settings for contact insights + ```powershell + Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + $params = @{ - IsEnabledInOrganization = $true - DisabledForGroup = "edbfe4fb-ec70-4300-928f-dbb2ae86c981" + isEnabledInOrganization = $true + disabledForGroup = "edbfe4fb-ec70-4300-928f-dbb2ae86c981" } + Update-MgBetaOrganizationSettingContactInsight -OrganizationId $organizationId -BodyParameter $params + ``` -This example shows how to use the Update-MgBetaOrganizationSettingContactInsight Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +This example will update settings for contact insights + diff --git a/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaOrganizationSettingMicrosoftApplicationDataAccess.md b/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaOrganizationSettingMicrosoftApplicationDataAccess.md index 7b735f9af84..faf05d35dce 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaOrganizationSettingMicrosoftApplicationDataAccess.md +++ b/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaOrganizationSettingMicrosoftApplicationDataAccess.md @@ -1,10 +1,15 @@ -### Example 1: Using the Update-MgBetaOrganizationSettingMicrosoftApplicationDataAccess Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + $params = @{ - DisabledForGroup = "edbfe4fb-ec70-4300-928f-dbb2ae86c981" + disabledForGroup = "edbfe4fb-ec70-4300-928f-dbb2ae86c981" } + Update-MgBetaOrganizationSettingMicrosoftApplicationDataAccess -OrganizationId $organizationId -BodyParameter $params + ``` This example shows how to use the Update-MgBetaOrganizationSettingMicrosoftApplicationDataAccess Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaOrganizationSettingPersonInsight.md b/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaOrganizationSettingPersonInsight.md index f7168e2e9eb..7e7bca82028 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaOrganizationSettingPersonInsight.md +++ b/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaOrganizationSettingPersonInsight.md @@ -1,11 +1,16 @@ -### Example 1: Using the Update-MgBetaOrganizationSettingPersonInsight Cmdlet +### Example 1: Update settings for people insights + ```powershell + Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + $params = @{ - IsEnabledInOrganization = $true - DisabledForGroup = "edbfe4fb-ec70-4300-928f-dbb2ae86c981" + isEnabledInOrganization = $true + disabledForGroup = "edbfe4fb-ec70-4300-928f-dbb2ae86c981" } + Update-MgBetaOrganizationSettingPersonInsight -OrganizationId $organizationId -BodyParameter $params + ``` -This example shows how to use the Update-MgBetaOrganizationSettingPersonInsight Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +This example will update settings for people insights + diff --git a/src/Identity.Governance/beta/examples/Get-MgBetaEntitlementManagementAccessPackageByUniqueName.md b/src/Identity.Governance/beta/examples/Get-MgBetaEntitlementManagementAccessPackageByUniqueName.md new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/src/Identity.Governance/beta/examples/Get-MgBetaEntitlementManagementAccessPackageByUniqueName.md @@ -0,0 +1 @@ + diff --git a/src/Identity.Governance/beta/examples/Get-MgBetaEntitlementManagementAccessPackageCatalogByUniqueName.md b/src/Identity.Governance/beta/examples/Get-MgBetaEntitlementManagementAccessPackageCatalogByUniqueName.md new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/src/Identity.Governance/beta/examples/Get-MgBetaEntitlementManagementAccessPackageCatalogByUniqueName.md @@ -0,0 +1 @@ + diff --git a/src/Identity.Governance/beta/examples/Remove-MgBetaEntitlementManagementAccessPackageByUniqueName.md b/src/Identity.Governance/beta/examples/Remove-MgBetaEntitlementManagementAccessPackageByUniqueName.md new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/src/Identity.Governance/beta/examples/Remove-MgBetaEntitlementManagementAccessPackageByUniqueName.md @@ -0,0 +1 @@ + diff --git a/src/Identity.Governance/beta/examples/Remove-MgBetaEntitlementManagementAccessPackageCatalogByUniqueName.md b/src/Identity.Governance/beta/examples/Remove-MgBetaEntitlementManagementAccessPackageCatalogByUniqueName.md new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/src/Identity.Governance/beta/examples/Remove-MgBetaEntitlementManagementAccessPackageCatalogByUniqueName.md @@ -0,0 +1 @@ + diff --git a/src/Identity.Governance/beta/examples/Update-MgBetaEntitlementManagementAccessPackageByUniqueName.md b/src/Identity.Governance/beta/examples/Update-MgBetaEntitlementManagementAccessPackageByUniqueName.md new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/src/Identity.Governance/beta/examples/Update-MgBetaEntitlementManagementAccessPackageByUniqueName.md @@ -0,0 +1 @@ + diff --git a/src/Identity.Governance/beta/examples/Update-MgBetaEntitlementManagementAccessPackageCatalogByUniqueName.md b/src/Identity.Governance/beta/examples/Update-MgBetaEntitlementManagementAccessPackageCatalogByUniqueName.md new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/src/Identity.Governance/beta/examples/Update-MgBetaEntitlementManagementAccessPackageCatalogByUniqueName.md @@ -0,0 +1 @@ + diff --git a/src/Identity.Governance/v1.0/examples/Invoke-MgGraphIdentityGovernanceLifecycleWorkflowInsight.md b/src/Identity.Governance/v1.0/examples/Invoke-MgGraphIdentityGovernanceLifecycleWorkflowInsight.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Identity.Governance/v1.0/examples/Invoke-MgTopIdentityGovernanceLifecycleWorkflowInsightTaskProcessedSummary.md b/src/Identity.Governance/v1.0/examples/Invoke-MgTopIdentityGovernanceLifecycleWorkflowInsightTaskProcessedSummary.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Identity.Governance/v1.0/examples/Invoke-MgTopIdentityGovernanceLifecycleWorkflowInsightWorkflowProcessedSummary.md b/src/Identity.Governance/v1.0/examples/Invoke-MgTopIdentityGovernanceLifecycleWorkflowInsightWorkflowProcessedSummary.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Identity.Governance/v1.0/examples/Invoke-MgWorkflowIdentityGovernanceLifecycleWorkflowInsightProcessedSummary.md b/src/Identity.Governance/v1.0/examples/Invoke-MgWorkflowIdentityGovernanceLifecycleWorkflowInsightProcessedSummary.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Identity.SignIns/beta/examples/Get-MgBetaUserAuthenticationOperation.md b/src/Identity.SignIns/beta/examples/Get-MgBetaUserAuthenticationOperation.md index 91004da978c..c3739d1d030 100644 --- a/src/Identity.SignIns/beta/examples/Get-MgBetaUserAuthenticationOperation.md +++ b/src/Identity.SignIns/beta/examples/Get-MgBetaUserAuthenticationOperation.md @@ -1,4 +1,4 @@ -### Example 1: Code snippet +### Example 1: Retrieve the status of a password authentication method reset operation. ```powershell @@ -7,5 +7,5 @@ Import-Module Microsoft.Graph.Beta.Identity.SignIns Get-MgBetaUserAuthenticationOperation -UserId $userId -LongRunningOperationId $longRunningOperationId ``` -This example shows how to use the Get-MgBetaUserAuthenticationOperation Cmdlet. +This example will retrieve the status of a password authentication method reset operation. diff --git a/src/Identity.SignIns/beta/examples/Remove-MgBetaIdentityAuthenticationEventFlowAsOnGraphAPretributeCollectionExternalUserSelfServiceSignUpAttributeIdentityUserFlowAttributeByRef.md b/src/Identity.SignIns/beta/examples/Remove-MgBetaIdentityAuthenticationEventFlowAsOnGraphAPretributeCollectionExternalUserSelfServiceSignUpAttributeIdentityUserFlowAttributeByRef.md index 8b137891791..e69de29bb2d 100644 --- a/src/Identity.SignIns/beta/examples/Remove-MgBetaIdentityAuthenticationEventFlowAsOnGraphAPretributeCollectionExternalUserSelfServiceSignUpAttributeIdentityUserFlowAttributeByRef.md +++ b/src/Identity.SignIns/beta/examples/Remove-MgBetaIdentityAuthenticationEventFlowAsOnGraphAPretributeCollectionExternalUserSelfServiceSignUpAttributeIdentityUserFlowAttributeByRef.md @@ -1 +0,0 @@ - diff --git a/src/Identity.SignIns/v1.0/examples/Get-MgIdentityAuthenticationEventFlow.md b/src/Identity.SignIns/v1.0/examples/Get-MgIdentityAuthenticationEventFlow.md new file mode 100644 index 00000000000..932d4f348b2 --- /dev/null +++ b/src/Identity.SignIns/v1.0/examples/Get-MgIdentityAuthenticationEventFlow.md @@ -0,0 +1,44 @@ +### Example 1: List all user flows + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +Get-MgIdentityAuthenticationEventFlow + +``` +This example will list all user flows + +### Example 2: List all user flows that include Google as an identity provider + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +Get-MgIdentityAuthenticationEventFlow -Filter "microsoft.graph.externalUsersSelfServiceSignUpEventsFlow/onAuthenticationMethodLoadStart/microsoft.graph.onAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp/identityProviders/any(idp:idp/id eq 'Google-OAUTH')" + +``` +This example will list all user flows that include google as an identity provider + +### Example 3: List all user flows that collect 'city' during attribute collection at account creation + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +Get-MgIdentityAuthenticationEventFlow -Filter "microsoft.graph.externalUsersSelfServiceSignUpEventsFlow/onAttributeCollection/microsoft.graph.onAttributeCollectionExternalUsersSelfServiceSignUp/attributes/any(attribute:attribute/id eq 'city')" + +``` +This example will list all user flows that collect 'city' during attribute collection at account creation + +### Example 4: List user flow associated with specific application ID + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +Get-MgIdentityAuthenticationEventFlow -Filter "microsoft.graph.externalUsersSelfServiceSignUpEventsFlow/conditions/applications/includeApplications/any(appId:appId/appId eq '63856651-13d9-4784-9abf-20758d509e19')" + +``` +This example will list user flow associated with specific application id + diff --git a/src/Identity.SignIns/v1.0/examples/Get-MgIdentityAuthenticationEventFlowAsOnAttributeCollectionExternalUserSelfServiceSignUpAttribute.md b/src/Identity.SignIns/v1.0/examples/Get-MgIdentityAuthenticationEventFlowAsOnAttributeCollectionExternalUserSelfServiceSignUpAttribute.md new file mode 100644 index 00000000000..8a236f42ee7 --- /dev/null +++ b/src/Identity.SignIns/v1.0/examples/Get-MgIdentityAuthenticationEventFlowAsOnAttributeCollectionExternalUserSelfServiceSignUpAttribute.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +Get-MgIdentityAuthenticationEventFlowAsOnAttributeCollectionExternalUserSelfServiceSignUpAttribute -AuthenticationEventsFlowId $authenticationEventsFlowId + +``` +This example shows how to use the Get-MgIdentityAuthenticationEventFlowAsOnAttributeCollectionExternalUserSelfServiceSignUpAttribute Cmdlet. + diff --git a/src/Identity.SignIns/v1.0/examples/Get-MgIdentityAuthenticationEventFlowAsOnAuthenticationMethodLoadStartExternalUserSelfServiceSignUpIdentityProvider.md b/src/Identity.SignIns/v1.0/examples/Get-MgIdentityAuthenticationEventFlowAsOnAuthenticationMethodLoadStartExternalUserSelfServiceSignUpIdentityProvider.md new file mode 100644 index 00000000000..83212e72961 --- /dev/null +++ b/src/Identity.SignIns/v1.0/examples/Get-MgIdentityAuthenticationEventFlowAsOnAuthenticationMethodLoadStartExternalUserSelfServiceSignUpIdentityProvider.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +Get-MgIdentityAuthenticationEventFlowAsOnAuthenticationMethodLoadStartExternalUserSelfServiceSignUpIdentityProvider -AuthenticationEventsFlowId $authenticationEventsFlowId + +``` +This example shows how to use the Get-MgIdentityAuthenticationEventFlowAsOnAuthenticationMethodLoadStartExternalUserSelfServiceSignUpIdentityProvider Cmdlet. + diff --git a/src/Identity.SignIns/v1.0/examples/Get-MgIdentityAuthenticationEventFlowAsOnAuthenticationMethodLoadStartExternalUserSelfServiceSignUpIdentityProviderByRef.md b/src/Identity.SignIns/v1.0/examples/Get-MgIdentityAuthenticationEventFlowAsOnAuthenticationMethodLoadStartExternalUserSelfServiceSignUpIdentityProviderByRef.md new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/src/Identity.SignIns/v1.0/examples/Get-MgIdentityAuthenticationEventFlowAsOnAuthenticationMethodLoadStartExternalUserSelfServiceSignUpIdentityProviderByRef.md @@ -0,0 +1 @@ + diff --git a/src/Identity.SignIns/v1.0/examples/Get-MgIdentityAuthenticationEventFlowAsOnGraphAPretributeCollectionExternalUserSelfServiceSignUpAttributeByRef.md b/src/Identity.SignIns/v1.0/examples/Get-MgIdentityAuthenticationEventFlowAsOnGraphAPretributeCollectionExternalUserSelfServiceSignUpAttributeByRef.md new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/src/Identity.SignIns/v1.0/examples/Get-MgIdentityAuthenticationEventFlowAsOnGraphAPretributeCollectionExternalUserSelfServiceSignUpAttributeByRef.md @@ -0,0 +1 @@ + diff --git a/src/Identity.SignIns/v1.0/examples/Get-MgIdentityAuthenticationEventFlowIncludeApplication.md b/src/Identity.SignIns/v1.0/examples/Get-MgIdentityAuthenticationEventFlowIncludeApplication.md new file mode 100644 index 00000000000..7cde6bca04f --- /dev/null +++ b/src/Identity.SignIns/v1.0/examples/Get-MgIdentityAuthenticationEventFlowIncludeApplication.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +Get-MgIdentityAuthenticationEventFlowIncludeApplication -AuthenticationEventsFlowId $authenticationEventsFlowId + +``` +This example shows how to use the Get-MgIdentityAuthenticationEventFlowIncludeApplication Cmdlet. + diff --git a/src/Identity.SignIns/v1.0/examples/Get-MgIdentityAuthenticationEventListener.md b/src/Identity.SignIns/v1.0/examples/Get-MgIdentityAuthenticationEventListener.md new file mode 100644 index 00000000000..744c509874c --- /dev/null +++ b/src/Identity.SignIns/v1.0/examples/Get-MgIdentityAuthenticationEventListener.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +Get-MgIdentityAuthenticationEventListener + +``` +This example shows how to use the Get-MgIdentityAuthenticationEventListener Cmdlet. + diff --git a/src/Identity.SignIns/v1.0/examples/Get-MgIdentityB2XUserFlowApiConnectorConfiguration.md b/src/Identity.SignIns/v1.0/examples/Get-MgIdentityB2XUserFlowApiConnectorConfiguration.md new file mode 100644 index 00000000000..0561153690c --- /dev/null +++ b/src/Identity.SignIns/v1.0/examples/Get-MgIdentityB2XUserFlowApiConnectorConfiguration.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +Get-MgIdentityB2XUserFlowApiConnectorConfiguration -B2xIdentityUserFlowId $b2xIdentityUserFlowId -ExpandProperty "postFederationSignup,postAttributeCollection" + +``` +This example shows how to use the Get-MgIdentityB2XUserFlowApiConnectorConfiguration Cmdlet. + diff --git a/src/Identity.SignIns/v1.0/examples/Get-MgIdentityB2XUserFlowLanguageDefaultPage.md b/src/Identity.SignIns/v1.0/examples/Get-MgIdentityB2XUserFlowLanguageDefaultPage.md index e69de29bb2d..8b137891791 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgIdentityB2XUserFlowLanguageDefaultPage.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgIdentityB2XUserFlowLanguageDefaultPage.md @@ -0,0 +1 @@ + diff --git a/src/Identity.SignIns/v1.0/examples/Get-MgIdentityB2XUserFlowLanguageDefaultPageContent.md b/src/Identity.SignIns/v1.0/examples/Get-MgIdentityB2XUserFlowLanguageDefaultPageContent.md index e69de29bb2d..bf10780d7c9 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgIdentityB2XUserFlowLanguageDefaultPageContent.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgIdentityB2XUserFlowLanguageDefaultPageContent.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +Get-MgIdentityB2XUserFlowLanguageDefaultPageContent -B2xIdentityUserFlowId $b2xIdentityUserFlowId -UserFlowLanguageConfigurationId $userFlowLanguageConfigurationId -UserFlowLanguagePageId $userFlowLanguagePageId -OutFile $outFileId + +``` +This example shows how to use the Get-MgIdentityB2XUserFlowLanguageDefaultPageContent Cmdlet. + diff --git a/src/Identity.SignIns/v1.0/examples/Get-MgIdentityB2XUserFlowLanguageOverridePageContent.md b/src/Identity.SignIns/v1.0/examples/Get-MgIdentityB2XUserFlowLanguageOverridePageContent.md index e69de29bb2d..8b137891791 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgIdentityB2XUserFlowLanguageOverridePageContent.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgIdentityB2XUserFlowLanguageOverridePageContent.md @@ -0,0 +1 @@ + diff --git a/src/Identity.SignIns/v1.0/examples/Get-MgIdentityConditionalAccessTemplate.md b/src/Identity.SignIns/v1.0/examples/Get-MgIdentityConditionalAccessTemplate.md new file mode 100644 index 00000000000..e58901f36bc --- /dev/null +++ b/src/Identity.SignIns/v1.0/examples/Get-MgIdentityConditionalAccessTemplate.md @@ -0,0 +1,22 @@ +### Example 1: Get the properties a template by ID + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +Get-MgIdentityConditionalAccessTemplate -ConditionalAccessTemplateId $conditionalAccessTemplateId + +``` +This example will get the properties a template by id + +### Example 2: Select details of a template + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +Get-MgIdentityConditionalAccessTemplate -ConditionalAccessTemplateId $conditionalAccessTemplateId -Property "details" + +``` +This example will select details of a template + diff --git a/src/Identity.SignIns/v1.0/examples/Get-MgIdentityCustomAuthenticationExtension.md b/src/Identity.SignIns/v1.0/examples/Get-MgIdentityCustomAuthenticationExtension.md new file mode 100644 index 00000000000..4e5bbd65dd0 --- /dev/null +++ b/src/Identity.SignIns/v1.0/examples/Get-MgIdentityCustomAuthenticationExtension.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +Get-MgIdentityCustomAuthenticationExtension -Filter "isOf('microsoft.graph.onTokenIssuanceStartCustomExtension')" + +``` +This example shows how to use the Get-MgIdentityCustomAuthenticationExtension Cmdlet. + diff --git a/src/Identity.SignIns/v1.0/examples/Get-MgPolicyAppManagementPolicy.md b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyAppManagementPolicy.md new file mode 100644 index 00000000000..57b02ada28f --- /dev/null +++ b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyAppManagementPolicy.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +Get-MgPolicyAppManagementPolicy + +``` +This example shows how to use the Get-MgPolicyAppManagementPolicy Cmdlet. + diff --git a/src/Identity.SignIns/v1.0/examples/Get-MgPolicyAppManagementPolicyApplyTo.md b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyAppManagementPolicyApplyTo.md new file mode 100644 index 00000000000..67450b26965 --- /dev/null +++ b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyAppManagementPolicyApplyTo.md @@ -0,0 +1,22 @@ +### Example 1: Get applications and service principal objects applied to an app management policy + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +Get-MgPolicyAppManagementPolicyApplyTo -AppManagementPolicyId $appManagementPolicyId + +``` +This example will get applications and service principal objects applied to an app management policy + +### Example 2: Get specific properties of applications and service principal objects applied to an app management policy using $select query option + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +Get-MgPolicyAppManagementPolicyApplyTo -AppManagementPolicyId $appManagementPolicyId -Property "id,appId,displayName,createdDateTime" + +``` +This example will get specific properties of applications and service principal objects applied to an app management policy using $select query option + diff --git a/src/Identity.SignIns/v1.0/examples/Get-MgPolicyAuthenticationStrengthPolicy.md b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyAuthenticationStrengthPolicy.md new file mode 100644 index 00000000000..5cdc3bc1469 --- /dev/null +++ b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyAuthenticationStrengthPolicy.md @@ -0,0 +1,22 @@ +### Example 1: Get all authentication strength policies + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +Get-MgPolicyAuthenticationStrengthPolicy + +``` +This example will get all authentication strength policies + +### Example 2: Get policies that include specific authentication method modes + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +Get-MgPolicyAuthenticationStrengthPolicy -Filter "allowedCombinations/any(x:x has 'sms, password')" + +``` +This example will get policies that include specific authentication method modes + diff --git a/src/Identity.SignIns/v1.0/examples/Get-MgPolicyClaimMappingPolicyApplyTo.md b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyClaimMappingPolicyApplyTo.md new file mode 100644 index 00000000000..b6a72144b3a --- /dev/null +++ b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyClaimMappingPolicyApplyTo.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +Get-MgPolicyClaimMappingPolicyApplyTo -ClaimsMappingPolicyId $claimsMappingPolicyId + +``` +This example shows how to use the Get-MgPolicyClaimMappingPolicyApplyTo Cmdlet. + diff --git a/src/Identity.SignIns/v1.0/examples/Get-MgPolicyCrossTenantAccessPolicyPartnerIdentitySynchronization.md b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyCrossTenantAccessPolicyPartnerIdentitySynchronization.md new file mode 100644 index 00000000000..5bb8f8885fb --- /dev/null +++ b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyCrossTenantAccessPolicyPartnerIdentitySynchronization.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +Get-MgPolicyCrossTenantAccessPolicyPartnerIdentitySynchronization -CrossTenantAccessPolicyConfigurationPartnerTenantId $crossTenantAccessPolicyConfigurationPartnerTenantId + +``` +This example shows how to use the Get-MgPolicyCrossTenantAccessPolicyPartnerIdentitySynchronization Cmdlet. + diff --git a/src/Identity.SignIns/v1.0/examples/Get-MgPolicyCrossTenantAccessPolicyTemplateMultiTenantOrganizationIdentitySynchronization.md b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyCrossTenantAccessPolicyTemplateMultiTenantOrganizationIdentitySynchronization.md new file mode 100644 index 00000000000..ccbca96397b --- /dev/null +++ b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyCrossTenantAccessPolicyTemplateMultiTenantOrganizationIdentitySynchronization.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +Get-MgPolicyCrossTenantAccessPolicyTemplateMultiTenantOrganizationIdentitySynchronization + +``` +This example shows how to use the Get-MgPolicyCrossTenantAccessPolicyTemplateMultiTenantOrganizationIdentitySynchronization Cmdlet. + diff --git a/src/Identity.SignIns/v1.0/examples/Get-MgPolicyCrossTenantAccessPolicyTemplateMultiTenantOrganizationPartnerConfiguration.md b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyCrossTenantAccessPolicyTemplateMultiTenantOrganizationPartnerConfiguration.md new file mode 100644 index 00000000000..42ad711b08b --- /dev/null +++ b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyCrossTenantAccessPolicyTemplateMultiTenantOrganizationPartnerConfiguration.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +Get-MgPolicyCrossTenantAccessPolicyTemplateMultiTenantOrganizationPartnerConfiguration + +``` +This example shows how to use the Get-MgPolicyCrossTenantAccessPolicyTemplateMultiTenantOrganizationPartnerConfiguration Cmdlet. + diff --git a/src/Identity.SignIns/v1.0/examples/Get-MgPolicyDefaultAppManagementPolicy.md b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyDefaultAppManagementPolicy.md new file mode 100644 index 00000000000..bcb9206c829 --- /dev/null +++ b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyDefaultAppManagementPolicy.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +Get-MgPolicyDefaultAppManagementPolicy + +``` +This example shows how to use the Get-MgPolicyDefaultAppManagementPolicy Cmdlet. + diff --git a/src/Identity.SignIns/v1.0/examples/Get-MgPolicyHomeRealmDiscoveryPolicy.md b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyHomeRealmDiscoveryPolicy.md index cecb7e5d57f..78885e180b8 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgPolicyHomeRealmDiscoveryPolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyHomeRealmDiscoveryPolicy.md @@ -1,11 +1,11 @@ ### Example 1: Code snippet ```powershell + Import-Module Microsoft.Graph.Identity.SignIns -Get-MgPolicyHomeRealmDiscoveryPolicy -HomeRealmDiscoveryPolicyId $homeRealmDiscoveryPolicyId +Get-MgPolicyHomeRealmDiscoveryPolicy + ``` This example shows how to use the Get-MgPolicyHomeRealmDiscoveryPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.SignIns/v1.0/examples/Get-MgPolicyHomeRealmDiscoveryPolicyApplyTo.md b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyHomeRealmDiscoveryPolicyApplyTo.md new file mode 100644 index 00000000000..b20fe0c34ef --- /dev/null +++ b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyHomeRealmDiscoveryPolicyApplyTo.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +Get-MgPolicyHomeRealmDiscoveryPolicyApplyTo -HomeRealmDiscoveryPolicyId $homeRealmDiscoveryPolicyId + +``` +This example shows how to use the Get-MgPolicyHomeRealmDiscoveryPolicyApplyTo Cmdlet. + diff --git a/src/Identity.SignIns/v1.0/examples/Get-MgPolicyIdentitySecurityDefaultEnforcementPolicy.md b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyIdentitySecurityDefaultEnforcementPolicy.md index fde0f98584d..b9db7d0d103 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgPolicyIdentitySecurityDefaultEnforcementPolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyIdentitySecurityDefaultEnforcementPolicy.md @@ -1,11 +1,11 @@ ### Example 1: Code snippet ```powershell + Import-Module Microsoft.Graph.Identity.SignIns Get-MgPolicyIdentitySecurityDefaultEnforcementPolicy + ``` This example shows how to use the Get-MgPolicyIdentitySecurityDefaultEnforcementPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.SignIns/v1.0/examples/Get-MgPolicyRoleManagementPolicy.md b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyRoleManagementPolicy.md index 658a24825bf..fd77b092c0c 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgPolicyRoleManagementPolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyRoleManagementPolicy.md @@ -1,22 +1,33 @@ -### Example 1: Retrieve the details of a role management policy +### Example 1: Retrieve the details of a policy in PIM for Microsoft Entra roles ```powershell + Import-Module Microsoft.Graph.Identity.SignIns Get-MgPolicyRoleManagementPolicy -UnifiedRoleManagementPolicyId $unifiedRoleManagementPolicyId -``` -This example shows how to use the Get-MgPolicyRoleManagementPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +``` +This example will retrieve the details of a policy in pim for microsoft entra roles -### Example 2: Retrieve the details of a role management policy and expand the relationships +### Example 2: Retrieve the details of a policy in PIM for Microsoft Entra roles and expand the relationships ```powershell + Import-Module Microsoft.Graph.Identity.SignIns -Get-MgPolicyRoleManagementPolicy -UnifiedRoleManagementPolicyId $unifiedRoleManagementPolicyId -ExpandProperty "effectiveRules,rules" +Get-MgPolicyRoleManagementPolicy -UnifiedRoleManagementPolicyId $unifiedRoleManagementPolicyId -ExpandProperty "effectiveRules,rules" + ``` -This example shows how to use the Get-MgPolicyRoleManagementPolicy Cmdlet. +This example will retrieve the details of a policy in pim for microsoft entra roles and expand the relationships + +### Example 3: Retrieve the details of a policy in PIM for groups -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +Get-MgPolicyRoleManagementPolicy -UnifiedRoleManagementPolicyId $unifiedRoleManagementPolicyId + +``` +This example will retrieve the details of a policy in pim for groups diff --git a/src/Identity.SignIns/v1.0/examples/Get-MgPolicyRoleManagementPolicyAssignment.md b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyRoleManagementPolicyAssignment.md index 4febc7c3ed9..ad0e05b7a0e 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgPolicyRoleManagementPolicyAssignment.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyRoleManagementPolicyAssignment.md @@ -1,22 +1,22 @@ -### Example 1: Retrieve a role management policy assignment +### Example 1: RRetrieve the details of a policy assignment for PIM for Microsoft Entra roles ```powershell + Import-Module Microsoft.Graph.Identity.SignIns Get-MgPolicyRoleManagementPolicyAssignment -UnifiedRoleManagementPolicyAssignmentId $unifiedRoleManagementPolicyAssignmentId -``` -This example shows how to use the Get-MgPolicyRoleManagementPolicyAssignment Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +``` +This example will rretrieve the details of a policy assignment for pim for microsoft entra roles -### Example 2: Retrieve a role management policy assignment and expand the policy and its associated rules +### Example 2: Retrieve the details of a policy assignment for PIM for Microsoft Entra roles and expand the policy and its associated rules ```powershell + Import-Module Microsoft.Graph.Identity.SignIns -Get-MgPolicyRoleManagementPolicyAssignment -UnifiedRoleManagementPolicyAssignmentId $unifiedRoleManagementPolicyAssignmentId -ExpandProperty "policy(`$expand=rules)" -``` -This example shows how to use the Get-MgPolicyRoleManagementPolicyAssignment Cmdlet. +Get-MgPolicyRoleManagementPolicyAssignment -UnifiedRoleManagementPolicyAssignmentId $unifiedRoleManagementPolicyAssignmentId -ExpandProperty "policy(`$expand=rules)" -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +``` +This example will retrieve the details of a policy assignment for pim for microsoft entra roles and expand the policy and its associated rules diff --git a/src/Identity.SignIns/v1.0/examples/Get-MgPolicyRoleManagementPolicyRule.md b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyRoleManagementPolicyRule.md index 320dc0cd856..828144a1ede 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgPolicyRoleManagementPolicyRule.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyRoleManagementPolicyRule.md @@ -1,11 +1,22 @@ -### Example 1: Code snippet +### Example 1: Retrieve a rule defined for a policy in PIM for Microsoft Entra roles ```powershell + Import-Module Microsoft.Graph.Identity.SignIns Get-MgPolicyRoleManagementPolicyRule -UnifiedRoleManagementPolicyId $unifiedRoleManagementPolicyId -UnifiedRoleManagementPolicyRuleId $unifiedRoleManagementPolicyRuleId + ``` -This example shows how to use the Get-MgPolicyRoleManagementPolicyRule Cmdlet. +This example will retrieve a rule defined for a policy in pim for microsoft entra roles + +### Example 2: Retrieve a rule defined for a policy in PIM for groups + +```powershell -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Import-Module Microsoft.Graph.Identity.SignIns + +Get-MgPolicyRoleManagementPolicyRule -UnifiedRoleManagementPolicyId $unifiedRoleManagementPolicyId -UnifiedRoleManagementPolicyRuleId $unifiedRoleManagementPolicyRuleId + +``` +This example will retrieve a rule defined for a policy in pim for groups diff --git a/src/Identity.SignIns/v1.0/examples/Get-MgPolicyTokenIssuancePolicy.md b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyTokenIssuancePolicy.md index a1b0ef433df..f22f8937fff 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgPolicyTokenIssuancePolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyTokenIssuancePolicy.md @@ -1,11 +1,11 @@ ### Example 1: Code snippet ```powershell + Import-Module Microsoft.Graph.Identity.SignIns Get-MgPolicyTokenIssuancePolicy + ``` This example shows how to use the Get-MgPolicyTokenIssuancePolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.SignIns/v1.0/examples/Get-MgPolicyTokenIssuancePolicyApplyTo.md b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyTokenIssuancePolicyApplyTo.md new file mode 100644 index 00000000000..2f768560547 --- /dev/null +++ b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyTokenIssuancePolicyApplyTo.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +Get-MgPolicyTokenIssuancePolicyApplyTo -TokenIssuancePolicyId $tokenIssuancePolicyId + +``` +This example shows how to use the Get-MgPolicyTokenIssuancePolicyApplyTo Cmdlet. + diff --git a/src/Identity.SignIns/v1.0/examples/Get-MgPolicyTokenLifetimePolicy.md b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyTokenLifetimePolicy.md index 3d6e52ff5b6..f2eb81af249 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgPolicyTokenLifetimePolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyTokenLifetimePolicy.md @@ -1,11 +1,11 @@ ### Example 1: Code snippet ```powershell + Import-Module Microsoft.Graph.Identity.SignIns -Get-MgPolicyTokenLifetimePolicy -TokenLifetimePolicyId $tokenLifetimePolicyId +Get-MgPolicyTokenLifetimePolicy + ``` This example shows how to use the Get-MgPolicyTokenLifetimePolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.SignIns/v1.0/examples/Get-MgPolicyTokenLifetimePolicyApplyTo.md b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyTokenLifetimePolicyApplyTo.md new file mode 100644 index 00000000000..deb26c305bf --- /dev/null +++ b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyTokenLifetimePolicyApplyTo.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +Get-MgPolicyTokenLifetimePolicyApplyTo -TokenLifetimePolicyId $tokenLifetimePolicyId + +``` +This example shows how to use the Get-MgPolicyTokenLifetimePolicyApplyTo Cmdlet. + diff --git a/src/Identity.SignIns/v1.0/examples/Get-MgRiskDetection.md b/src/Identity.SignIns/v1.0/examples/Get-MgRiskDetection.md index 592df35364c..b08fe18456b 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgRiskDetection.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgRiskDetection.md @@ -1,11 +1,11 @@ ### Example 1: Code snippet ```powershell + Import-Module Microsoft.Graph.Identity.SignIns -Get-MgRiskDetection -RiskDetectionId $riskDetectionId +Get-MgRiskDetection + ``` This example shows how to use the Get-MgRiskDetection Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.SignIns/v1.0/examples/Get-MgRiskyServicePrincipal.md b/src/Identity.SignIns/v1.0/examples/Get-MgRiskyServicePrincipal.md new file mode 100644 index 00000000000..d59cc3e112d --- /dev/null +++ b/src/Identity.SignIns/v1.0/examples/Get-MgRiskyServicePrincipal.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +Get-MgRiskyServicePrincipal + +``` +This example shows how to use the Get-MgRiskyServicePrincipal Cmdlet. + diff --git a/src/Identity.SignIns/v1.0/examples/Get-MgRiskyServicePrincipalHistory.md b/src/Identity.SignIns/v1.0/examples/Get-MgRiskyServicePrincipalHistory.md new file mode 100644 index 00000000000..05fabda2bbe --- /dev/null +++ b/src/Identity.SignIns/v1.0/examples/Get-MgRiskyServicePrincipalHistory.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +Get-MgRiskyServicePrincipalHistory -RiskyServicePrincipalId $riskyServicePrincipalId + +``` +This example shows how to use the Get-MgRiskyServicePrincipalHistory Cmdlet. + diff --git a/src/Identity.SignIns/v1.0/examples/Get-MgRiskyUser.md b/src/Identity.SignIns/v1.0/examples/Get-MgRiskyUser.md index 1ead1cce419..6e621584278 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgRiskyUser.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgRiskyUser.md @@ -1,11 +1,11 @@ ### Example 1: Code snippet ```powershell + Import-Module Microsoft.Graph.Identity.SignIns -Get-MgRiskyUser -RiskyUserId $riskyUserId +Get-MgRiskyUser + ``` This example shows how to use the Get-MgRiskyUser Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.SignIns/v1.0/examples/Get-MgRiskyUserHistory.md b/src/Identity.SignIns/v1.0/examples/Get-MgRiskyUserHistory.md index 4318109b7ee..e71ed6fff5e 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgRiskyUserHistory.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgRiskyUserHistory.md @@ -1,11 +1,11 @@ ### Example 1: Code snippet ```powershell + Import-Module Microsoft.Graph.Identity.SignIns Get-MgRiskyUserHistory -RiskyUserId $riskyUserId + ``` This example shows how to use the Get-MgRiskyUserHistory Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.SignIns/v1.0/examples/Get-MgServicePrincipalRiskDetection.md b/src/Identity.SignIns/v1.0/examples/Get-MgServicePrincipalRiskDetection.md new file mode 100644 index 00000000000..3fdd7bca4f6 --- /dev/null +++ b/src/Identity.SignIns/v1.0/examples/Get-MgServicePrincipalRiskDetection.md @@ -0,0 +1,11 @@ +### Example: Get a specific risk detection object + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +Get-MgServicePrincipalRiskDetection -ServicePrincipalRiskDetectionId $servicePrincipalRiskDetectionId + +``` +This example will### example: get a specific risk detection object + diff --git a/src/Identity.SignIns/v1.0/examples/Get-MgTenantRelationshipMultiTenantOrganization.md b/src/Identity.SignIns/v1.0/examples/Get-MgTenantRelationshipMultiTenantOrganization.md new file mode 100644 index 00000000000..c505b080a7c --- /dev/null +++ b/src/Identity.SignIns/v1.0/examples/Get-MgTenantRelationshipMultiTenantOrganization.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +Get-MgTenantRelationshipMultiTenantOrganization + +``` +This example shows how to use the Get-MgTenantRelationshipMultiTenantOrganization Cmdlet. + diff --git a/src/Identity.SignIns/v1.0/examples/Get-MgTenantRelationshipMultiTenantOrganizationJoinRequest.md b/src/Identity.SignIns/v1.0/examples/Get-MgTenantRelationshipMultiTenantOrganizationJoinRequest.md new file mode 100644 index 00000000000..f48d56be51f --- /dev/null +++ b/src/Identity.SignIns/v1.0/examples/Get-MgTenantRelationshipMultiTenantOrganizationJoinRequest.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +Get-MgTenantRelationshipMultiTenantOrganizationJoinRequest + +``` +This example shows how to use the Get-MgTenantRelationshipMultiTenantOrganizationJoinRequest Cmdlet. + diff --git a/src/Identity.SignIns/v1.0/examples/Get-MgTenantRelationshipMultiTenantOrganizationTenant.md b/src/Identity.SignIns/v1.0/examples/Get-MgTenantRelationshipMultiTenantOrganizationTenant.md new file mode 100644 index 00000000000..637fc286d65 --- /dev/null +++ b/src/Identity.SignIns/v1.0/examples/Get-MgTenantRelationshipMultiTenantOrganizationTenant.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +Get-MgTenantRelationshipMultiTenantOrganizationTenant + +``` +This example shows how to use the Get-MgTenantRelationshipMultiTenantOrganizationTenant Cmdlet. + diff --git a/src/Identity.SignIns/v1.0/examples/Get-MgUserAuthenticationMicrosoftAuthenticatorMethod.md b/src/Identity.SignIns/v1.0/examples/Get-MgUserAuthenticationMicrosoftAuthenticatorMethod.md index d6a4b2c2269..a47af0d6b61 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgUserAuthenticationMicrosoftAuthenticatorMethod.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgUserAuthenticationMicrosoftAuthenticatorMethod.md @@ -1,11 +1,11 @@ ### Example 1: Code snippet ```powershell + Import-Module Microsoft.Graph.Identity.SignIns -Get-MgUserAuthenticationMicrosoftAuthenticatorMethod -UserId $userId -MicrosoftAuthenticatorAuthenticationMethodId $microsoftAuthenticatorAuthenticationMethodId +Get-MgUserAuthenticationMicrosoftAuthenticatorMethod -UserId $userId + ``` This example shows how to use the Get-MgUserAuthenticationMicrosoftAuthenticatorMethod Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.SignIns/v1.0/examples/Get-MgUserAuthenticationOperation.md b/src/Identity.SignIns/v1.0/examples/Get-MgUserAuthenticationOperation.md index 8018ba39bdc..ad78eaf7279 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgUserAuthenticationOperation.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgUserAuthenticationOperation.md @@ -1,11 +1,11 @@ ### Example 1: Code snippet ```powershell + Import-Module Microsoft.Graph.Identity.SignIns Get-MgUserAuthenticationOperation -UserId $userId -LongRunningOperationId $longRunningOperationId + ``` This example shows how to use the Get-MgUserAuthenticationOperation Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.SignIns/v1.0/examples/Get-MgUserAuthenticationTemporaryAccessPassMethod.md b/src/Identity.SignIns/v1.0/examples/Get-MgUserAuthenticationTemporaryAccessPassMethod.md index f2001e84dcd..c1c357ac62c 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgUserAuthenticationTemporaryAccessPassMethod.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgUserAuthenticationTemporaryAccessPassMethod.md @@ -1,11 +1,11 @@ ### Example 1: Code snippet ```powershell + Import-Module Microsoft.Graph.Identity.SignIns -Get-MgUserAuthenticationTemporaryAccessPassMethod -UserId $userId -TemporaryAccessPassAuthenticationMethodId $temporaryAccessPassAuthenticationMethodId +Get-MgUserAuthenticationTemporaryAccessPassMethod -UserId $userId + ``` This example shows how to use the Get-MgUserAuthenticationTemporaryAccessPassMethod Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.SignIns/v1.0/examples/Get-MgUserAuthenticationWindowsHelloForBusinessMethod.md b/src/Identity.SignIns/v1.0/examples/Get-MgUserAuthenticationWindowsHelloForBusinessMethod.md new file mode 100644 index 00000000000..01cd8420158 --- /dev/null +++ b/src/Identity.SignIns/v1.0/examples/Get-MgUserAuthenticationWindowsHelloForBusinessMethod.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +Get-MgUserAuthenticationWindowsHelloForBusinessMethod -UserId $userId + +``` +This example shows how to use the Get-MgUserAuthenticationWindowsHelloForBusinessMethod Cmdlet. + diff --git a/src/Identity.SignIns/v1.0/examples/New-MgIdentityApiConnector.md b/src/Identity.SignIns/v1.0/examples/New-MgIdentityApiConnector.md index 5cfbea980d8..6625da2fbad 100644 --- a/src/Identity.SignIns/v1.0/examples/New-MgIdentityApiConnector.md +++ b/src/Identity.SignIns/v1.0/examples/New-MgIdentityApiConnector.md @@ -1,6 +1,7 @@ ### Example 1: Create an API connector with basic authentication ```powershell + Import-Module Microsoft.Graph.Identity.SignIns $params = @{ @@ -14,14 +15,14 @@ $params = @{ } New-MgIdentityApiConnector -BodyParameter $params -``` -This example shows how to use the New-MgIdentityApiConnector Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +``` +This example will create an api connector with basic authentication ### Example 2: Create an API connector with client certificate authentication ```powershell + Import-Module Microsoft.Graph.Identity.SignIns $params = @{ @@ -35,8 +36,7 @@ $params = @{ } New-MgIdentityApiConnector -BodyParameter $params -``` -This example shows how to use the New-MgIdentityApiConnector Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +``` +This example will create an api connector with client certificate authentication diff --git a/src/Identity.SignIns/v1.0/examples/New-MgIdentityAuthenticationEventFlow.md b/src/Identity.SignIns/v1.0/examples/New-MgIdentityAuthenticationEventFlow.md new file mode 100644 index 00000000000..a9d91d6396b --- /dev/null +++ b/src/Identity.SignIns/v1.0/examples/New-MgIdentityAuthenticationEventFlow.md @@ -0,0 +1,257 @@ +### Example 1: Create a basic External Identities sign-up and sign-in user flow in an external tenant + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +$params = @{ + "@odata.type" = "#microsoft.graph.externalUsersSelfServiceSignUpEventsFlow" + displayName = "Woodgrove Drive User Flow" + onAuthenticationMethodLoadStart = @{ + "@odata.type" = "#microsoft.graph.onAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp" + identityProviders = @( + @{ + id = "EmailPassword-OAUTH" + } + ) + } + onInteractiveAuthFlowStart = @{ + "@odata.type" = "#microsoft.graph.onInteractiveAuthFlowStartExternalUsersSelfServiceSignUp" + isSignUpAllowed = $true + } + onAttributeCollection = @{ + "@odata.type" = "#microsoft.graph.onAttributeCollectionExternalUsersSelfServiceSignUp" + attributes = @( + @{ + id = "email" + displayName = "Email Address" + description = "Email address of the user" + userFlowAttributeType = "builtIn" + dataType = "string" + } + @{ + id = "displayName" + displayName = "Display Name" + description = "Display Name of the User." + userFlowAttributeType = "builtIn" + dataType = "string" + } + ) + attributeCollectionPage = @{ + views = @( + @{ + inputs = @( + @{ + attribute = "email" + label = "Email Address" + inputType = "Text" + hidden = $true + editable = $false + writeToDirectory = $true + required = $true + validationRegEx = "^[a-zA-Z0-9.!#$%&’'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:.[a-zA-Z0-9-]+)*$" + } + @{ + attribute = "displayName" + label = "Display Name" + inputType = "text" + hidden = $false + editable = $true + writeToDirectory = $true + required = $false + validationRegEx = "^[a-zA-Z_][0-9a-zA-Z_ ]*[0-9a-zA-Z_]+$" + } + ) + } + ) + } + } +} + +New-MgIdentityAuthenticationEventFlow -BodyParameter $params + +``` +This example will create a basic external identities sign-up and sign-in user flow in an external tenant + +### Example 2: Create a basic external identities sign-up and sign-in user flow with an attached application in an external tenant + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +$params = @{ + "@odata.type" = "#microsoft.graph.externalUsersSelfServiceSignUpEventsFlow" + displayName = "Woodgrove Drive User Flow" + conditions = @{ + applications = @{ + includeApplications = @( + @{ + appId = "63856651-13d9-4784-9abf-20758d509e19" + } + ) + } + } + onAuthenticationMethodLoadStart = @{ + "@odata.type" = "#microsoft.graph.onAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp" + identityProviders = @( + @{ + id = "EmailPassword-OAUTH" + } + ) + } + onInteractiveAuthFlowStart = @{ + "@odata.type" = "#microsoft.graph.onInteractiveAuthFlowStartExternalUsersSelfServiceSignUp" + isSignUpAllowed = $true + } + onAttributeCollection = @{ + "@odata.type" = "#microsoft.graph.onAttributeCollectionExternalUsersSelfServiceSignUp" + attributes = @( + @{ + id = "email" + displayName = "Email Address" + description = "Email address of the user" + userFlowAttributeType = "builtIn" + dataType = "string" + } + @{ + id = "displayName" + displayName = "Display Name" + description = "Display Name of the User." + userFlowAttributeType = "builtIn" + dataType = "string" + } + ) + attributeCollectionPage = @{ + views = @( + @{ + inputs = @( + @{ + attribute = "email" + label = "Email Address" + inputType = "Text" + hidden = $true + editable = $false + writeToDirectory = $true + required = $true + validationRegEx = "^[a-zA-Z0-9.!#$%&’'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:.[a-zA-Z0-9-]+)*$" + } + @{ + attribute = "displayName" + label = "Display Name" + inputType = "text" + hidden = $false + editable = $true + writeToDirectory = $true + required = $false + validationRegEx = "^[a-zA-Z_][0-9a-zA-Z_ ]*[0-9a-zA-Z_]+$" + } + ) + } + ) + } + } +} + +New-MgIdentityAuthenticationEventFlow -BodyParameter $params + +``` +This example will create a basic external identities sign-up and sign-in user flow with an attached application in an external tenant + +### Example 3: Create an External Identities sign-up and sign-in user flow with social providers and a custom attribute + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +$params = @{ + "@odata.type" = "#microsoft.graph.externalUsersSelfServiceSignUpEventsFlow" + displayName = "Woodgrove User Flow 2" + onAuthenticationMethodLoadStart = @{ + "@odata.type" = "#microsoft.graph.onAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp" + identityProviders = @( + @{ + id = "EmailPassword-OAUTH" + } + @{ + id = "Google-OAUTH" + } + @{ + id = "Facebook-OAUTH" + } + ) + } + onInteractiveAuthFlowStart = @{ + "@odata.type" = "#microsoft.graph.onInteractiveAuthFlowStartExternalUsersSelfServiceSignUp" + isSignUpAllowed = $true + } + onAttributeCollection = @{ + "@odata.type" = "#microsoft.graph.onAttributeCollectionExternalUsersSelfServiceSignUp" + attributes = @( + @{ + id = "email" + displayName = "Email Address" + description = "Email address of the user" + userFlowAttributeType = "builtIn" + dataType = "string" + } + @{ + id = "displayName" + displayName = "Display Name" + description = "Display Name of the User." + userFlowAttributeType = "builtIn" + dataType = "string" + } + @{ + id = "extension_6ea3bc85aec24b1c92ff4a117afb6621_Favoritecolor" + displayName = "Favorite color" + description = "what is your favorite color" + userFlowAttributeType = "custom" + dataType = "string" + } + ) + attributeCollectionPage = @{ + views = @( + @{ + inputs = @( + @{ + attribute = "email" + label = "Email Address" + inputType = "Text" + hidden = $true + editable = $false + writeToDirectory = $true + required = $true + validationRegEx = "^[a-zA-Z0-9.!#$%&’'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:.[a-zA-Z0-9-]+)*$" + } + @{ + attribute = "displayName" + label = "Display Name" + inputType = "text" + hidden = $false + editable = $true + writeToDirectory = $true + required = $false + validationRegEx = "^[a-zA-Z_][0-9a-zA-Z_ ]*[0-9a-zA-Z_]+$" + } + @{ + attribute = "extension_6ea3bc85aec24b1c92ff4a117afb6621_Favoritecolor" + label = "Favorite color" + inputType = "text" + hidden = $false + editable = $true + writeToDirectory = $true + required = $false + validationRegEx = "^[a-zA-Z_][0-9a-zA-Z_ ]*[0-9a-zA-Z_]+$" + } + ) + } + ) + } + } +} + +New-MgIdentityAuthenticationEventFlow -BodyParameter $params + +``` +This example will create an external identities sign-up and sign-in user flow with social providers and a custom attribute + diff --git a/src/Identity.SignIns/v1.0/examples/New-MgIdentityAuthenticationEventFlowAsOnAuthenticationMethodLoadStartExternalUserSelfServiceSignUpIdentityProviderByRef.md b/src/Identity.SignIns/v1.0/examples/New-MgIdentityAuthenticationEventFlowAsOnAuthenticationMethodLoadStartExternalUserSelfServiceSignUpIdentityProviderByRef.md new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/src/Identity.SignIns/v1.0/examples/New-MgIdentityAuthenticationEventFlowAsOnAuthenticationMethodLoadStartExternalUserSelfServiceSignUpIdentityProviderByRef.md @@ -0,0 +1 @@ + diff --git a/src/Identity.SignIns/v1.0/examples/New-MgIdentityAuthenticationEventFlowAsOnGraphAPretributeCollectionExternalUserSelfServiceSignUpAttributeByRef.md b/src/Identity.SignIns/v1.0/examples/New-MgIdentityAuthenticationEventFlowAsOnGraphAPretributeCollectionExternalUserSelfServiceSignUpAttributeByRef.md new file mode 100644 index 00000000000..bf05b7a219f --- /dev/null +++ b/src/Identity.SignIns/v1.0/examples/New-MgIdentityAuthenticationEventFlowAsOnGraphAPretributeCollectionExternalUserSelfServiceSignUpAttributeByRef.md @@ -0,0 +1,15 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +$params = @{ + "@odata.id" = "https://graph.microsoft.com/v1.0/identity/userFlowAttributes/city" +} + +New-MgIdentityAuthenticationEventFlowAsOnGraphAPretributeCollectionExternalUserSelfServiceSignUpAttributeByRef -AuthenticationEventsFlowId $authenticationEventsFlowId -BodyParameter $params + +``` +This example shows how to use the New-MgIdentityAuthenticationEventFlowAsOnGraphAPretributeCollectionExternalUserSelfServiceSignUpAttributeByRef Cmdlet. + diff --git a/src/Identity.SignIns/v1.0/examples/New-MgIdentityAuthenticationEventFlowIncludeApplication.md b/src/Identity.SignIns/v1.0/examples/New-MgIdentityAuthenticationEventFlowIncludeApplication.md new file mode 100644 index 00000000000..0c67076178b --- /dev/null +++ b/src/Identity.SignIns/v1.0/examples/New-MgIdentityAuthenticationEventFlowIncludeApplication.md @@ -0,0 +1,16 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +$params = @{ + "@odata.type" = "#microsoft.graph.authenticationConditionApplication" + appId = "63856651-13d9-4784-9abf-20758d509e19" +} + +New-MgIdentityAuthenticationEventFlowIncludeApplication -AuthenticationEventsFlowId $authenticationEventsFlowId -BodyParameter $params + +``` +This example shows how to use the New-MgIdentityAuthenticationEventFlowIncludeApplication Cmdlet. + diff --git a/src/Identity.SignIns/v1.0/examples/New-MgIdentityAuthenticationEventListener.md b/src/Identity.SignIns/v1.0/examples/New-MgIdentityAuthenticationEventListener.md new file mode 100644 index 00000000000..5572c28bb26 --- /dev/null +++ b/src/Identity.SignIns/v1.0/examples/New-MgIdentityAuthenticationEventListener.md @@ -0,0 +1,30 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +$params = @{ + "@odata.type" = "#microsoft.graph.onTokenIssuanceStartListener" + conditions = @{ + applications = @{ + includeApplications = @( + @{ + appId = "a13d0fc1-04ab-4ede-b215-63de0174cbb4" + } + ) + } + } + handler = @{ + "@odata.type" = "#microsoft.graph.onTokenIssuanceStartCustomExtensionHandler" + customExtension = @{ + id = "6fc5012e-7665-43d6-9708-4370863f4e6e" + } + } +} + +New-MgIdentityAuthenticationEventListener -BodyParameter $params + +``` +This example shows how to use the New-MgIdentityAuthenticationEventListener Cmdlet. + diff --git a/src/Identity.SignIns/v1.0/examples/New-MgIdentityB2XUserFlowUserAttributeAssignment.md b/src/Identity.SignIns/v1.0/examples/New-MgIdentityB2XUserFlowUserAttributeAssignment.md index 95304188535..1b125b2e9a2 100644 --- a/src/Identity.SignIns/v1.0/examples/New-MgIdentityB2XUserFlowUserAttributeAssignment.md +++ b/src/Identity.SignIns/v1.0/examples/New-MgIdentityB2XUserFlowUserAttributeAssignment.md @@ -1,6 +1,7 @@ ### Example 1: Code snippet ```powershell + Import-Module Microsoft.Graph.Identity.SignIns $params = @{ @@ -16,8 +17,7 @@ $params = @{ } New-MgIdentityB2XUserFlowUserAttributeAssignment -B2xIdentityUserFlowId $b2xIdentityUserFlowId -BodyParameter $params + ``` This example shows how to use the New-MgIdentityB2XUserFlowUserAttributeAssignment Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.SignIns/v1.0/examples/New-MgIdentityConditionalAccessAuthenticationStrengthPolicyCombinationConfiguration.md b/src/Identity.SignIns/v1.0/examples/New-MgIdentityConditionalAccessAuthenticationStrengthPolicyCombinationConfiguration.md new file mode 100644 index 00000000000..cda0d2db501 --- /dev/null +++ b/src/Identity.SignIns/v1.0/examples/New-MgIdentityConditionalAccessAuthenticationStrengthPolicyCombinationConfiguration.md @@ -0,0 +1,46 @@ +### Example 1: Create a fido2combinationConfiguration object + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +$params = @{ + "@odata.type" = "#microsoft.graph.fido2CombinationConfiguration" + allowedAAGUIDs = @( + "486c3b50-889c-480a-abc5-c04ef7c873e0" +"c042882f-a621-40c8-94d3-9cde3a826fed" +"ec454c08-4c77-4012-9d48-45f7f0fccdfb" +) +appliesToCombinations = @( +"fido2" +) +} + +New-MgIdentityConditionalAccessAuthenticationStrengthPolicyCombinationConfiguration -AuthenticationStrengthPolicyId $authenticationStrengthPolicyId -BodyParameter $params + +``` +This example will create a fido2combinationconfiguration object + +### Example 2: Create a x509CertificateCombinationConfiguration object + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +$params = @{ + "@odata.type" = "#microsoft.graph.x509CertificateCombinationConfiguration" + allowedIssuerSkis = @( + "9A4248C6AC8C2931AB2A86537818E92E7B6C97B6" +) +allowedPolicyOIDs = @( +) +appliesToCombinations = @( +"x509CertificateSingleFactor " +) +} + +New-MgIdentityConditionalAccessAuthenticationStrengthPolicyCombinationConfiguration -AuthenticationStrengthPolicyId $authenticationStrengthPolicyId -BodyParameter $params + +``` +This example will create a x509certificatecombinationconfiguration object + diff --git a/src/Identity.SignIns/v1.0/examples/New-MgIdentityConditionalAccessPolicy.md b/src/Identity.SignIns/v1.0/examples/New-MgIdentityConditionalAccessPolicy.md index 254db8a50ee..a11c83a2386 100644 --- a/src/Identity.SignIns/v1.0/examples/New-MgIdentityConditionalAccessPolicy.md +++ b/src/Identity.SignIns/v1.0/examples/New-MgIdentityConditionalAccessPolicy.md @@ -1,6 +1,7 @@ ### Example 1: Require MFA to access Exchange Online outside of trusted locations ```powershell + Import-Module Microsoft.Graph.Identity.SignIns $params = @{ @@ -8,45 +9,45 @@ $params = @{ state = "enabled" conditions = @{ clientAppTypes = @( - "mobileAppsAndDesktopClients" - "browser" - ) - applications = @{ - includeApplications = @( - "00000002-0000-0ff1-ce00-000000000000" - ) - } - users = @{ - includeGroups = @( - "ba8e7ded-8b0f-4836-ba06-8ff1ecc5c8ba" - ) - } - locations = @{ - includeLocations = @( - "All" - ) - excludeLocations = @( - "AllTrusted" - ) - } - } - grantControls = @{ - operator = "OR" - builtInControls = @( - "mfa" - ) - } + "mobileAppsAndDesktopClients" + "browser" +) +applications = @{ + includeApplications = @( + "00000002-0000-0ff1-ce00-000000000000" +) +} +users = @{ +includeGroups = @( +"ba8e7ded-8b0f-4836-ba06-8ff1ecc5c8ba" +) +} +locations = @{ +includeLocations = @( +"All" +) +excludeLocations = @( +"AllTrusted" +) +} +} +grantControls = @{ +operator = "OR" +builtInControls = @( +"mfa" +) +} } New-MgIdentityConditionalAccessPolicy -BodyParameter $params -``` -This example shows how to use the New-MgIdentityConditionalAccessPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +``` +This example will require mfa to access exchange online outside of trusted locations -### Example 2: Block access to Exchange Online from non-trusted regions +### Example 2: Block access to Exchange Online from nontrusted regions ```powershell + Import-Module Microsoft.Graph.Identity.SignIns $params = @{ @@ -54,41 +55,41 @@ $params = @{ state = "enabled" conditions = @{ clientAppTypes = @( - "all" - ) - applications = @{ - includeApplications = @( - "00000002-0000-0ff1-ce00-000000000000" - ) - } - users = @{ - includeGroups = @( - "ba8e7ded-8b0f-4836-ba06-8ff1ecc5c8ba" - ) - } - locations = @{ - includeLocations = @( - "198ad66e-87b3-4157-85a3-8a7b51794ee9" - ) - } - } - grantControls = @{ - operator = "OR" - builtInControls = @( - "block" - ) - } + "all" + ) + applications = @{ + includeApplications = @( + "00000002-0000-0ff1-ce00-000000000000" + ) +} +users = @{ + includeGroups = @( + "ba8e7ded-8b0f-4836-ba06-8ff1ecc5c8ba" +) +} +locations = @{ +includeLocations = @( +"198ad66e-87b3-4157-85a3-8a7b51794ee9" +) +} +} +grantControls = @{ +operator = "OR" +builtInControls = @( +"block" +) +} } New-MgIdentityConditionalAccessPolicy -BodyParameter $params -``` -This example shows how to use the New-MgIdentityConditionalAccessPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +``` +This example will block access to exchange online from nontrusted regions ### Example 3: Use all conditions and controls ```powershell + Import-Module Microsoft.Graph.Identity.SignIns $params = @{ @@ -96,110 +97,110 @@ $params = @{ state = "disabled" conditions = @{ signInRiskLevels = @( - "high" - "medium" - ) - clientAppTypes = @( - "mobileAppsAndDesktopClients" - "exchangeActiveSync" - "other" - ) - applications = @{ - includeApplications = @( - "All" - ) - excludeApplications = @( - "499b84ac-1321-427f-aa17-267ca6975798" - "00000007-0000-0000-c000-000000000000" - "de8bc8b5-d9f9-48b1-a8ad-b748da725064" - "00000012-0000-0000-c000-000000000000" - "797f4846-ba00-4fd7-ba43-dac1f8f63013" - "05a65629-4c1b-48c1-a78b-804c4abdd4af" - "7df0a125-d3be-4c96-aa54-591f83ff541c" - ) - includeUserActions = @( - ) - } - users = @{ - includeUsers = @( - "a702a13d-a437-4a07-8a7e-8c052de62dfd" - ) - excludeUsers = @( - "124c5b6a-ffa5-483a-9b88-04c3fce5574a" - "GuestsOrExternalUsers" - ) - includeGroups = @( - ) - excludeGroups = @( - ) - includeRoles = @( - "9b895d92-2cd3-44c7-9d02-a6ac2d5ea5c3" - "cf1c38e5-3621-4004-a7cb-879624dced7c" - "c4e39bd9-1100-46d3-8c65-fb160da0071f" - ) - excludeRoles = @( - "b0f54661-2d74-4c50-afa3-1ec803f12efe" - ) - } - platforms = @{ - includePlatforms = @( - "all" - ) - excludePlatforms = @( - "iOS" - "windowsPhone" - ) - } - locations = @{ - includeLocations = @( - "AllTrusted" - ) - excludeLocations = @( - "00000000-0000-0000-0000-000000000000" - "d2136c9c-b049-47ae-b9cf-316e04ef7198" - ) - } - } - grantControls = @{ - operator = "OR" - builtInControls = @( - "mfa" - "compliantDevice" - "domainJoinedDevice" - "approvedApplication" - "compliantApplication" - ) - customAuthenticationFactors = @( - ) - termsOfUse = @( - "ce580154-086a-40fd-91df-8a60abac81a0" - "7f29d675-caff-43e1-8a53-1b8516ed2075" - ) - } - sessionControls = @{ - applicationEnforcedRestrictions = $null - persistentBrowser = $null - cloudAppSecurity = @{ - cloudAppSecurityType = "blockDownloads" - isEnabled = $true - } - signInFrequency = @{ - value = 4 - type = "hours" - isEnabled = $true - } - } + "high" + "medium" +) +clientAppTypes = @( +"mobileAppsAndDesktopClients" +"exchangeActiveSync" +"other" +) +applications = @{ +includeApplications = @( +"All" +) +excludeApplications = @( +"499b84ac-1321-427f-aa17-267ca6975798" +"00000007-0000-0000-c000-000000000000" +"de8bc8b5-d9f9-48b1-a8ad-b748da725064" +"00000012-0000-0000-c000-000000000000" +"797f4846-ba00-4fd7-ba43-dac1f8f63013" +"05a65629-4c1b-48c1-a78b-804c4abdd4af" +"7df0a125-d3be-4c96-aa54-591f83ff541c" +) +includeUserActions = @( +) +} +users = @{ +includeUsers = @( +"a702a13d-a437-4a07-8a7e-8c052de62dfd" +) +excludeUsers = @( +"124c5b6a-ffa5-483a-9b88-04c3fce5574a" +"GuestsOrExternalUsers" +) +includeGroups = @( +) +excludeGroups = @( +) +includeRoles = @( +"9b895d92-2cd3-44c7-9d02-a6ac2d5ea5c3" +"cf1c38e5-3621-4004-a7cb-879624dced7c" +"c4e39bd9-1100-46d3-8c65-fb160da0071f" +) +excludeRoles = @( +"b0f54661-2d74-4c50-afa3-1ec803f12efe" +) +} +platforms = @{ +includePlatforms = @( +"all" +) +excludePlatforms = @( +"iOS" +"windowsPhone" +) +} +locations = @{ +includeLocations = @( +"AllTrusted" +) +excludeLocations = @( +"00000000-0000-0000-0000-000000000000" +"d2136c9c-b049-47ae-b9cf-316e04ef7198" +) +} +} +grantControls = @{ +operator = "OR" +builtInControls = @( +"mfa" +"compliantDevice" +"domainJoinedDevice" +"approvedApplication" +"compliantApplication" +) +customAuthenticationFactors = @( +) +termsOfUse = @( +"ce580154-086a-40fd-91df-8a60abac81a0" +"7f29d675-caff-43e1-8a53-1b8516ed2075" +) +} +sessionControls = @{ +applicationEnforcedRestrictions = $null +persistentBrowser = $null +cloudAppSecurity = @{ +cloudAppSecurityType = "blockDownloads" +isEnabled = $true +} +signInFrequency = @{ +value = 4 +type = "hours" +isEnabled = $true +} +} } New-MgIdentityConditionalAccessPolicy -BodyParameter $params -``` -This example shows how to use the New-MgIdentityConditionalAccessPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +``` +This example will use all conditions and controls -### Example 4: Require MFA to Exchange Online from non-compliant devices +### Example 4: Require MFA to Exchange Online from noncompliant devices ```powershell + Import-Module Microsoft.Graph.Identity.SignIns $params = @{ @@ -208,26 +209,25 @@ $params = @{ conditions = @{ applications = @{ includeApplications = @( - "00000002-0000-0ff1-ce00-000000000000" - ) - } - users = @{ - includeGroups = @( - "ba8e7ded-8b0f-4836-ba06-8ff1ecc5c8ba" - ) - } - } - grantControls = @{ - operator = "OR" - builtInControls = @( - "mfa" + "00000002-0000-0ff1-ce00-000000000000" ) } + users = @{ + includeGroups = @( + "ba8e7ded-8b0f-4836-ba06-8ff1ecc5c8ba" + ) +} +} +grantControls = @{ +operator = "OR" +builtInControls = @( +"mfa" +) +} } New-MgIdentityConditionalAccessPolicy -BodyParameter $params -``` -This example shows how to use the New-MgIdentityConditionalAccessPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +``` +This example will require mfa to exchange online from noncompliant devices diff --git a/src/Identity.SignIns/v1.0/examples/New-MgIdentityCustomAuthenticationExtension.md b/src/Identity.SignIns/v1.0/examples/New-MgIdentityCustomAuthenticationExtension.md new file mode 100644 index 00000000000..f30a9f723d8 --- /dev/null +++ b/src/Identity.SignIns/v1.0/examples/New-MgIdentityCustomAuthenticationExtension.md @@ -0,0 +1,37 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +$params = @{ + "@odata.type" = "#microsoft.graph.onTokenIssuanceStartCustomExtension" + displayName = "onTokenIssuanceStartCustomExtension" + description = "Fetch additional claims from custom user store" + endpointConfiguration = @{ + "@odata.type" = "#microsoft.graph.httpRequestEndpoint" + targetUrl = "https://authenticationeventsAPI.contoso.com" + } + authenticationConfiguration = @{ + "@odata.type" = "#microsoft.graph.azureAdTokenAuthentication" + resourceId = "api://authenticationeventsAPI.contoso.com/a13d0fc1-04ab-4ede-b215-63de0174cbb4" + } + clientConfiguration = @{ + timeoutInMilliseconds = 2000 + maximumRetries = 1 + } + claimsForTokenConfiguration = @( + @{ + claimIdInApiResponse = "DateOfBirth" + } + @{ + claimIdInApiResponse = "CustomRoles" + } + ) +} + +New-MgIdentityCustomAuthenticationExtension -BodyParameter $params + +``` +This example shows how to use the New-MgIdentityCustomAuthenticationExtension Cmdlet. + diff --git a/src/Identity.SignIns/v1.0/examples/New-MgIdentityProvider.md b/src/Identity.SignIns/v1.0/examples/New-MgIdentityProvider.md index 160d3e8d517..5edb3daee95 100644 --- a/src/Identity.SignIns/v1.0/examples/New-MgIdentityProvider.md +++ b/src/Identity.SignIns/v1.0/examples/New-MgIdentityProvider.md @@ -1,6 +1,7 @@ -### Example 1: Code snippet +### Example 1: Create a specific social identity provider (Microsoft Entra ID and Azure AD B2C) ```powershell + Import-Module Microsoft.Graph.Identity.SignIns $params = @{ @@ -12,8 +13,27 @@ $params = @{ } New-MgIdentityProvider -BodyParameter $params + ``` -This example shows how to use the New-MgIdentityProvider Cmdlet. +This example will create a specific social identity provider (microsoft entra id and azure ad b2c) + +### Example 2: Create Apple identity provider (only for Azure AD B2C) + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +$params = @{ + "@odata.type" = "microsoft.graph.appleManagedIdentityProvider" + displayName = "Sign in with Apple" + developerId = "UBF8T346G9" + serviceId = "com.microsoft.rts.b2c.test.client" + keyId = "99P6D879C4" + certificateData = "******" +} + +New-MgIdentityProvider -BodyParameter $params + +``` +This example will create apple identity provider (only for azure ad b2c) diff --git a/src/Identity.SignIns/v1.0/examples/New-MgIdentityUserFlowAttribute.md b/src/Identity.SignIns/v1.0/examples/New-MgIdentityUserFlowAttribute.md index af2cfa52191..af0ba8219b7 100644 --- a/src/Identity.SignIns/v1.0/examples/New-MgIdentityUserFlowAttribute.md +++ b/src/Identity.SignIns/v1.0/examples/New-MgIdentityUserFlowAttribute.md @@ -1,6 +1,7 @@ ### Example 1: Code snippet ```powershell + Import-Module Microsoft.Graph.Identity.SignIns $params = @{ @@ -10,8 +11,7 @@ $params = @{ } New-MgIdentityUserFlowAttribute -BodyParameter $params + ``` This example shows how to use the New-MgIdentityUserFlowAttribute Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.SignIns/v1.0/examples/New-MgInformationProtectionThreatAssessmentRequest.md b/src/Identity.SignIns/v1.0/examples/New-MgInformationProtectionThreatAssessmentRequest.md index a72eb45aba0..dd1790fd88a 100644 --- a/src/Identity.SignIns/v1.0/examples/New-MgInformationProtectionThreatAssessmentRequest.md +++ b/src/Identity.SignIns/v1.0/examples/New-MgInformationProtectionThreatAssessmentRequest.md @@ -1,44 +1,45 @@ ### Example 1: Create a mail assessment request ```powershell + Import-Module Microsoft.Graph.Identity.SignIns $params = @{ "@odata.type" = "#microsoft.graph.mailAssessmentRequest" - recipientEmail = "tifc@a830edad9050849EQTPWBJZXODQ.onmicrosoft.com" + recipientEmail = "tifc@contoso.com" expectedAssessment = "block" category = "spam" messageUri = "https://graph.microsoft.com/v1.0/users/c52ce8db-3e4b-4181-93c4-7d6b6bffaf60/messages/AAMkADU3MWUxOTU0LWNlOTEt=" } New-MgInformationProtectionThreatAssessmentRequest -BodyParameter $params -``` -This example shows how to use the New-MgInformationProtectionThreatAssessmentRequest Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +``` +This example will create a mail assessment request ### Example 2: Create an email assessment request ```powershell + Import-Module Microsoft.Graph.Identity.SignIns $params = @{ "@odata.type" = "#microsoft.graph.emailFileAssessmentRequest" - recipientEmail = "tifc@a830edad9050849EQTPWBJZXODQ.onmicrosoft.com" + recipientEmail = "tifc@contoso.com" expectedAssessment = "block" category = "malware" contentData = "UmVjZWl2ZWQ6IGZyb20gTVcyUFIwME1CMDMxNC5uYW1wcmQwMC....." } New-MgInformationProtectionThreatAssessmentRequest -BodyParameter $params -``` -This example shows how to use the New-MgInformationProtectionThreatAssessmentRequest Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +``` +This example will create an email assessment request ### Example 3: Create a file assessment request ```powershell + Import-Module Microsoft.Graph.Identity.SignIns $params = @{ @@ -50,14 +51,14 @@ $params = @{ } New-MgInformationProtectionThreatAssessmentRequest -BodyParameter $params -``` -This example shows how to use the New-MgInformationProtectionThreatAssessmentRequest Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +``` +This example will create a file assessment request ### Example 4: Create an url assessment request ```powershell + Import-Module Microsoft.Graph.Identity.SignIns $params = @{ @@ -68,8 +69,7 @@ $params = @{ } New-MgInformationProtectionThreatAssessmentRequest -BodyParameter $params -``` -This example shows how to use the New-MgInformationProtectionThreatAssessmentRequest Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +``` +This example will create an url assessment request diff --git a/src/Identity.SignIns/v1.0/examples/New-MgOrganizationCertificateBasedAuthConfiguration.md b/src/Identity.SignIns/v1.0/examples/New-MgOrganizationCertificateBasedAuthConfiguration.md new file mode 100644 index 00000000000..09420de4479 --- /dev/null +++ b/src/Identity.SignIns/v1.0/examples/New-MgOrganizationCertificateBasedAuthConfiguration.md @@ -0,0 +1,20 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +$params = @{ + certificateAuthorities = @( + @{ + isRootAuthority = $true + certificate = [System.Text.Encoding]::ASCII.GetBytes("Binary") + } + ) +} + +New-MgOrganizationCertificateBasedAuthConfiguration -OrganizationId $organizationId -BodyParameter $params + +``` +This example shows how to use the New-MgOrganizationCertificateBasedAuthConfiguration Cmdlet. + diff --git a/src/Identity.SignIns/v1.0/examples/New-MgPolicyActivityBasedTimeoutPolicy.md b/src/Identity.SignIns/v1.0/examples/New-MgPolicyActivityBasedTimeoutPolicy.md index d38c9c0689a..48101158b8f 100644 --- a/src/Identity.SignIns/v1.0/examples/New-MgPolicyActivityBasedTimeoutPolicy.md +++ b/src/Identity.SignIns/v1.0/examples/New-MgPolicyActivityBasedTimeoutPolicy.md @@ -1,19 +1,19 @@ ### Example 1: Code snippet ```powershell + Import-Module Microsoft.Graph.Identity.SignIns $params = @{ definition = @( - "definition-value" - ) - displayName = "displayName-value" - isOrganizationDefault = $true + "definition-value" +) +displayName = "displayName-value" +isOrganizationDefault = $true } New-MgPolicyActivityBasedTimeoutPolicy -BodyParameter $params + ``` This example shows how to use the New-MgPolicyActivityBasedTimeoutPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.SignIns/v1.0/examples/New-MgPolicyAppManagementPolicy.md b/src/Identity.SignIns/v1.0/examples/New-MgPolicyAppManagementPolicy.md new file mode 100644 index 00000000000..a64dcc35dd8 --- /dev/null +++ b/src/Identity.SignIns/v1.0/examples/New-MgPolicyAppManagementPolicy.md @@ -0,0 +1,48 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +$params = @{ + displayName = "Credential management policy" + description = "Cred policy sample" + isEnabled = $true + restrictions = @{ + passwordCredentials = @( + @{ + restrictionType = "passwordAddition" + maxLifetime = $null + restrictForAppsCreatedAfterDateTime = [System.DateTime]::Parse("2019-10-19T10:37:00Z") + } + @{ + restrictionType = "passwordLifetime" + maxLifetime = "P4DT12H30M5S" + restrictForAppsCreatedAfterDateTime = [System.DateTime]::Parse("2014-10-19T10:37:00Z") + } + @{ + restrictionType = "symmetricKeyAddition" + maxLifetime = $null + restrictForAppsCreatedAfterDateTime = [System.DateTime]::Parse("2019-10-19T10:37:00Z") + } + @{ + restrictionType = "symmetricKeyLifetime" + maxLifetime = "P4D" + restrictForAppsCreatedAfterDateTime = [System.DateTime]::Parse("2014-10-19T10:37:00Z") + } + ) + keyCredentials = @( + @{ + restrictionType = "asymmetricKeyLifetime" + maxLifetime = "P90D" + restrictForAppsCreatedAfterDateTime = [System.DateTime]::Parse("2014-10-19T10:37:00Z") + } + ) + } +} + +New-MgPolicyAppManagementPolicy -BodyParameter $params + +``` +This example shows how to use the New-MgPolicyAppManagementPolicy Cmdlet. + diff --git a/src/Identity.SignIns/v1.0/examples/New-MgPolicyAuthenticationStrengthPolicy.md b/src/Identity.SignIns/v1.0/examples/New-MgPolicyAuthenticationStrengthPolicy.md new file mode 100644 index 00000000000..9a4e4323115 --- /dev/null +++ b/src/Identity.SignIns/v1.0/examples/New-MgPolicyAuthenticationStrengthPolicy.md @@ -0,0 +1,33 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +$params = @{ + displayName = "Example" + requirementsSatisfied = "mfa" + allowedCombinations = @( + "fido2" +) +"combinationConfigurations@odata.context" = "https://graph.microsoft.com/v1.0/$metadata#policies/authenticationStrengthPolicies('5790842a-5bab-44c2-9cf1-b38d675b70ea')/combinationConfigurations" +combinationConfigurations = @( + @{ + "@odata.type" = "#microsoft.graph.fido2CombinationConfiguration" + id = "42235320-c8db-4d8c-9344-8f1ce87f734b" + appliesToCombinations = @( + "fido2" + ) + allowedAAGUIDs = @( + "de1e552d-db1d-4423-a619-566b625cdc84" +"90a3ccdf-635c-4729-a248-9b709135078f" +) +} +) +} + +New-MgPolicyAuthenticationStrengthPolicy -BodyParameter $params + +``` +This example shows how to use the New-MgPolicyAuthenticationStrengthPolicy Cmdlet. + diff --git a/src/Identity.SignIns/v1.0/examples/New-MgPolicyClaimMappingPolicy.md b/src/Identity.SignIns/v1.0/examples/New-MgPolicyClaimMappingPolicy.md index d2ad2ee6c3d..6730d8a7175 100644 --- a/src/Identity.SignIns/v1.0/examples/New-MgPolicyClaimMappingPolicy.md +++ b/src/Identity.SignIns/v1.0/examples/New-MgPolicyClaimMappingPolicy.md @@ -1,18 +1,18 @@ ### Example 1: Code snippet ```powershell + Import-Module Microsoft.Graph.Identity.SignIns $params = @{ definition = @( - '{"ClaimsMappingPolicy":{"Version":1,"IncludeBasicClaimSet":"true","ClaimsSchema": [{"Source":"user","ID":"userprincipalname","SamlClaimType":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier"},{"Source":"user","ID":"givenname","SamlClaimType":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname"},{"Source":"user","ID":"displayname","SamlClaimType":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"},{"Source":"user","ID":"surname","SamlClaimType":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname"},{"Source":"user","ID":"userprincipalname","SamlClaimType":"username"}],"ClaimsTransformation":[{"ID":"CreateTermsOfService","TransformationMethod":"CreateStringClaim","InputParameters": [{"ID":"value","DataType":"string", "Value":"sandbox"}],"OutputClaims":[{"ClaimTypeReferenceId":"TOS","TransformationClaimType":"createdClaim"}]}]}}' - ) - displayName = "Test1234" + '{"ClaimsMappingPolicy":{"Version":1,"IncludeBasicClaimSet":"true","ClaimsSchema": [{"Source":"user","ID":"userprincipalname","SamlClaimType":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier"},{"Source":"user","ID":"givenname","SamlClaimType":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname"},{"Source":"user","ID":"displayname","SamlClaimType":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"},{"Source":"user","ID":"surname","SamlClaimType":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname"},{"Source":"user","ID":"userprincipalname","SamlClaimType":"username"}],"ClaimsTransformation":[{"ID":"CreateTermsOfService","TransformationMethod":"CreateStringClaim","InputParameters": [{"ID":"value","DataType":"string", "Value":"sandbox"}],"OutputClaims":[{"ClaimTypeReferenceId":"TOS","TransformationClaimType":"createdClaim"}]}]}}' +) +displayName = "Test1234" } New-MgPolicyClaimMappingPolicy -BodyParameter $params + ``` This example shows how to use the New-MgPolicyClaimMappingPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.SignIns/v1.0/examples/New-MgPolicyCrossTenantAccessPolicyPartner.md b/src/Identity.SignIns/v1.0/examples/New-MgPolicyCrossTenantAccessPolicyPartner.md index 9997cff1593..d659b6049ee 100644 --- a/src/Identity.SignIns/v1.0/examples/New-MgPolicyCrossTenantAccessPolicyPartner.md +++ b/src/Identity.SignIns/v1.0/examples/New-MgPolicyCrossTenantAccessPolicyPartner.md @@ -1,6 +1,7 @@ ### Example 1: Code snippet ```powershell + Import-Module Microsoft.Graph.Identity.SignIns $params = @{ @@ -30,8 +31,7 @@ $params = @{ } New-MgPolicyCrossTenantAccessPolicyPartner -BodyParameter $params + ``` This example shows how to use the New-MgPolicyCrossTenantAccessPolicyPartner Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.SignIns/v1.0/examples/New-MgPolicyFeatureRolloutPolicy.md b/src/Identity.SignIns/v1.0/examples/New-MgPolicyFeatureRolloutPolicy.md index 1a3b30c5046..f1bf5a3450f 100644 --- a/src/Identity.SignIns/v1.0/examples/New-MgPolicyFeatureRolloutPolicy.md +++ b/src/Identity.SignIns/v1.0/examples/New-MgPolicyFeatureRolloutPolicy.md @@ -1,6 +1,7 @@ ### Example 1: Code snippet ```powershell + Import-Module Microsoft.Graph.Identity.SignIns $params = @{ @@ -12,8 +13,7 @@ $params = @{ } New-MgPolicyFeatureRolloutPolicy -BodyParameter $params + ``` This example shows how to use the New-MgPolicyFeatureRolloutPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.SignIns/v1.0/examples/New-MgPolicyFeatureRolloutPolicyApplyTo.md b/src/Identity.SignIns/v1.0/examples/New-MgPolicyFeatureRolloutPolicyApplyTo.md index e69de29bb2d..8b137891791 100644 --- a/src/Identity.SignIns/v1.0/examples/New-MgPolicyFeatureRolloutPolicyApplyTo.md +++ b/src/Identity.SignIns/v1.0/examples/New-MgPolicyFeatureRolloutPolicyApplyTo.md @@ -0,0 +1 @@ + diff --git a/src/Identity.SignIns/v1.0/examples/New-MgPolicyFeatureRolloutPolicyApplyToByRef.md b/src/Identity.SignIns/v1.0/examples/New-MgPolicyFeatureRolloutPolicyApplyToByRef.md index 2709be4ecab..e5eab17b71c 100644 --- a/src/Identity.SignIns/v1.0/examples/New-MgPolicyFeatureRolloutPolicyApplyToByRef.md +++ b/src/Identity.SignIns/v1.0/examples/New-MgPolicyFeatureRolloutPolicyApplyToByRef.md @@ -1,6 +1,7 @@ ### Example 1: Code snippet ```powershell + Import-Module Microsoft.Graph.Identity.SignIns $params = @{ @@ -8,8 +9,7 @@ $params = @{ } New-MgPolicyFeatureRolloutPolicyApplyToByRef -FeatureRolloutPolicyId $featureRolloutPolicyId -BodyParameter $params + ``` This example shows how to use the New-MgPolicyFeatureRolloutPolicyApplyToByRef Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.SignIns/v1.0/examples/New-MgPolicyHomeRealmDiscoveryPolicy.md b/src/Identity.SignIns/v1.0/examples/New-MgPolicyHomeRealmDiscoveryPolicy.md index e69de29bb2d..ff6cc407447 100644 --- a/src/Identity.SignIns/v1.0/examples/New-MgPolicyHomeRealmDiscoveryPolicy.md +++ b/src/Identity.SignIns/v1.0/examples/New-MgPolicyHomeRealmDiscoveryPolicy.md @@ -0,0 +1,19 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +$params = @{ + definition = @( + '{"HomeRealmDiscoveryPolicy":{"AccelerateToFederatedDomain":true,"PreferredDomain":"federated.example.edu","AlternateIdLogin":{"Enabled":true}}}' +) +displayName = "displayName-value" +isOrganizationDefault = $true +} + +New-MgPolicyHomeRealmDiscoveryPolicy -BodyParameter $params + +``` +This example shows how to use the New-MgPolicyHomeRealmDiscoveryPolicy Cmdlet. + diff --git a/src/Identity.SignIns/v1.0/examples/New-MgPolicyTokenIssuancePolicy.md b/src/Identity.SignIns/v1.0/examples/New-MgPolicyTokenIssuancePolicy.md index 23d332b1ca8..6796d1b6365 100644 --- a/src/Identity.SignIns/v1.0/examples/New-MgPolicyTokenIssuancePolicy.md +++ b/src/Identity.SignIns/v1.0/examples/New-MgPolicyTokenIssuancePolicy.md @@ -1,19 +1,19 @@ ### Example 1: Code snippet ```powershell + Import-Module Microsoft.Graph.Identity.SignIns $params = @{ definition = @( - "definition-value" - ) - displayName = "displayName-value" - isOrganizationDefault = $true + "definition-value" +) +displayName = "displayName-value" +isOrganizationDefault = $true } New-MgPolicyTokenIssuancePolicy -BodyParameter $params + ``` This example shows how to use the New-MgPolicyTokenIssuancePolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.SignIns/v1.0/examples/New-MgPolicyTokenLifetimePolicy.md b/src/Identity.SignIns/v1.0/examples/New-MgPolicyTokenLifetimePolicy.md index 1f19a54bac2..ebeac15f065 100644 --- a/src/Identity.SignIns/v1.0/examples/New-MgPolicyTokenLifetimePolicy.md +++ b/src/Identity.SignIns/v1.0/examples/New-MgPolicyTokenLifetimePolicy.md @@ -1,19 +1,19 @@ ### Example 1: Code snippet ```powershell + Import-Module Microsoft.Graph.Identity.SignIns $params = @{ definition = @( - '{"TokenLifetimePolicy":{"Version":1,"AccessTokenLifetime":"8:00:00"}}' - ) - displayName = "Contoso token lifetime policy" - isOrganizationDefault = $true + '{"TokenLifetimePolicy":{"Version":1,"AccessTokenLifetime":"8:00:00"}}' +) +displayName = "Contoso token lifetime policy" +isOrganizationDefault = $true } New-MgPolicyTokenLifetimePolicy -BodyParameter $params + ``` This example shows how to use the New-MgPolicyTokenLifetimePolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.SignIns/v1.0/examples/New-MgTenantRelationshipMultiTenantOrganizationTenant.md b/src/Identity.SignIns/v1.0/examples/New-MgTenantRelationshipMultiTenantOrganizationTenant.md new file mode 100644 index 00000000000..d16ab8f2526 --- /dev/null +++ b/src/Identity.SignIns/v1.0/examples/New-MgTenantRelationshipMultiTenantOrganizationTenant.md @@ -0,0 +1,16 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +$params = @{ + tenantId = "4a12efe6-aa14-4d03-8dff-88fc89e2e2ad" + displayName = "Fabrikam" +} + +New-MgTenantRelationshipMultiTenantOrganizationTenant -BodyParameter $params + +``` +This example shows how to use the New-MgTenantRelationshipMultiTenantOrganizationTenant Cmdlet. + diff --git a/src/Identity.SignIns/v1.0/examples/New-MgUserAuthenticationEmailMethod.md b/src/Identity.SignIns/v1.0/examples/New-MgUserAuthenticationEmailMethod.md index 808a5286b4d..1ed7fe46429 100644 --- a/src/Identity.SignIns/v1.0/examples/New-MgUserAuthenticationEmailMethod.md +++ b/src/Identity.SignIns/v1.0/examples/New-MgUserAuthenticationEmailMethod.md @@ -1,6 +1,7 @@ ### Example 1: Code snippet ```powershell + Import-Module Microsoft.Graph.Identity.SignIns $params = @{ @@ -8,8 +9,7 @@ $params = @{ } New-MgUserAuthenticationEmailMethod -UserId $userId -BodyParameter $params + ``` This example shows how to use the New-MgUserAuthenticationEmailMethod Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.SignIns/v1.0/examples/New-MgUserAuthenticationPhoneMethod.md b/src/Identity.SignIns/v1.0/examples/New-MgUserAuthenticationPhoneMethod.md index 35cb01cbe99..5a16a8c4627 100644 --- a/src/Identity.SignIns/v1.0/examples/New-MgUserAuthenticationPhoneMethod.md +++ b/src/Identity.SignIns/v1.0/examples/New-MgUserAuthenticationPhoneMethod.md @@ -1,6 +1,7 @@ ### Example 1: Code snippet ```powershell + Import-Module Microsoft.Graph.Identity.SignIns $params = @{ @@ -9,8 +10,7 @@ $params = @{ } New-MgUserAuthenticationPhoneMethod -UserId $userId -BodyParameter $params + ``` This example shows how to use the New-MgUserAuthenticationPhoneMethod Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.SignIns/v1.0/examples/New-MgUserAuthenticationTemporaryAccessPassMethod.md b/src/Identity.SignIns/v1.0/examples/New-MgUserAuthenticationTemporaryAccessPassMethod.md index c4006c2b74a..86662029853 100644 --- a/src/Identity.SignIns/v1.0/examples/New-MgUserAuthenticationTemporaryAccessPassMethod.md +++ b/src/Identity.SignIns/v1.0/examples/New-MgUserAuthenticationTemporaryAccessPassMethod.md @@ -1,6 +1,7 @@ ### Example 1: Code snippet ```powershell + Import-Module Microsoft.Graph.Identity.SignIns $params = @{ @@ -10,8 +11,7 @@ $params = @{ } New-MgUserAuthenticationTemporaryAccessPassMethod -UserId $userId -BodyParameter $params + ``` This example shows how to use the New-MgUserAuthenticationTemporaryAccessPassMethod Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.SignIns/v1.0/examples/Remove-MgIdentityApiConnector.md b/src/Identity.SignIns/v1.0/examples/Remove-MgIdentityApiConnector.md index b630baa1c7a..81169c60993 100644 --- a/src/Identity.SignIns/v1.0/examples/Remove-MgIdentityApiConnector.md +++ b/src/Identity.SignIns/v1.0/examples/Remove-MgIdentityApiConnector.md @@ -1,11 +1,11 @@ ### Example 1: Code snippet ```powershell + Import-Module Microsoft.Graph.Identity.SignIns Remove-MgIdentityApiConnector -IdentityApiConnectorId $identityApiConnectorId + ``` This example shows how to use the Remove-MgIdentityApiConnector Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.SignIns/v1.0/examples/Remove-MgIdentityAuthenticationEventFlow.md b/src/Identity.SignIns/v1.0/examples/Remove-MgIdentityAuthenticationEventFlow.md new file mode 100644 index 00000000000..253fb6be70d --- /dev/null +++ b/src/Identity.SignIns/v1.0/examples/Remove-MgIdentityAuthenticationEventFlow.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +Remove-MgIdentityAuthenticationEventFlow -AuthenticationEventsFlowId $authenticationEventsFlowId + +``` +This example shows how to use the Remove-MgIdentityAuthenticationEventFlow Cmdlet. + diff --git a/src/Identity.SignIns/v1.0/examples/Remove-MgIdentityAuthenticationEventFlowIncludeApplication.md b/src/Identity.SignIns/v1.0/examples/Remove-MgIdentityAuthenticationEventFlowIncludeApplication.md new file mode 100644 index 00000000000..d5b000d05b0 --- /dev/null +++ b/src/Identity.SignIns/v1.0/examples/Remove-MgIdentityAuthenticationEventFlowIncludeApplication.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +Remove-MgIdentityAuthenticationEventFlowIncludeApplication -AuthenticationEventsFlowId $authenticationEventsFlowId -AuthenticationConditionApplicationAppId $authenticationConditionApplicationAppId + +``` +This example shows how to use the Remove-MgIdentityAuthenticationEventFlowIncludeApplication Cmdlet. + diff --git a/src/Identity.SignIns/v1.0/examples/Remove-MgIdentityAuthenticationEventListener.md b/src/Identity.SignIns/v1.0/examples/Remove-MgIdentityAuthenticationEventListener.md new file mode 100644 index 00000000000..e325966323e --- /dev/null +++ b/src/Identity.SignIns/v1.0/examples/Remove-MgIdentityAuthenticationEventListener.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +Remove-MgIdentityAuthenticationEventListener -AuthenticationEventListenerId $authenticationEventListenerId + +``` +This example shows how to use the Remove-MgIdentityAuthenticationEventListener Cmdlet. + diff --git a/src/Identity.SignIns/v1.0/examples/Remove-MgIdentityB2XUserFlow.md b/src/Identity.SignIns/v1.0/examples/Remove-MgIdentityB2XUserFlow.md index 4e9b61b78c2..9d7c1b4a189 100644 --- a/src/Identity.SignIns/v1.0/examples/Remove-MgIdentityB2XUserFlow.md +++ b/src/Identity.SignIns/v1.0/examples/Remove-MgIdentityB2XUserFlow.md @@ -1,11 +1,11 @@ ### Example 1: Code snippet ```powershell + Import-Module Microsoft.Graph.Identity.SignIns Remove-MgIdentityB2XUserFlow -B2xIdentityUserFlowId $b2xIdentityUserFlowId + ``` This example shows how to use the Remove-MgIdentityB2XUserFlow Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.SignIns/v1.0/examples/Remove-MgIdentityB2XUserFlowLanguageOverridePage.md b/src/Identity.SignIns/v1.0/examples/Remove-MgIdentityB2XUserFlowLanguageOverridePage.md index e69de29bb2d..8b137891791 100644 --- a/src/Identity.SignIns/v1.0/examples/Remove-MgIdentityB2XUserFlowLanguageOverridePage.md +++ b/src/Identity.SignIns/v1.0/examples/Remove-MgIdentityB2XUserFlowLanguageOverridePage.md @@ -0,0 +1 @@ + diff --git a/src/Identity.SignIns/v1.0/examples/Remove-MgIdentityB2XUserFlowLanguageOverridePageContent.md b/src/Identity.SignIns/v1.0/examples/Remove-MgIdentityB2XUserFlowLanguageOverridePageContent.md new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/src/Identity.SignIns/v1.0/examples/Remove-MgIdentityB2XUserFlowLanguageOverridePageContent.md @@ -0,0 +1 @@ + diff --git a/src/Identity.SignIns/v1.0/examples/Remove-MgIdentityConditionalAccessAuthenticationContextClassReference.md b/src/Identity.SignIns/v1.0/examples/Remove-MgIdentityConditionalAccessAuthenticationContextClassReference.md index 212661e1057..1bc3c4faa67 100644 --- a/src/Identity.SignIns/v1.0/examples/Remove-MgIdentityConditionalAccessAuthenticationContextClassReference.md +++ b/src/Identity.SignIns/v1.0/examples/Remove-MgIdentityConditionalAccessAuthenticationContextClassReference.md @@ -1,11 +1,11 @@ ### Example 1: Code snippet ```powershell + Import-Module Microsoft.Graph.Identity.SignIns Remove-MgIdentityConditionalAccessAuthenticationContextClassReference -AuthenticationContextClassReferenceId $authenticationContextClassReferenceId + ``` This example shows how to use the Remove-MgIdentityConditionalAccessAuthenticationContextClassReference Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.SignIns/v1.0/examples/Remove-MgIdentityCustomAuthenticationExtension.md b/src/Identity.SignIns/v1.0/examples/Remove-MgIdentityCustomAuthenticationExtension.md new file mode 100644 index 00000000000..0fab4074c90 --- /dev/null +++ b/src/Identity.SignIns/v1.0/examples/Remove-MgIdentityCustomAuthenticationExtension.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +Remove-MgIdentityCustomAuthenticationExtension -CustomAuthenticationExtensionId $customAuthenticationExtensionId + +``` +This example shows how to use the Remove-MgIdentityCustomAuthenticationExtension Cmdlet. + diff --git a/src/Identity.SignIns/v1.0/examples/Remove-MgIdentityProvider.md b/src/Identity.SignIns/v1.0/examples/Remove-MgIdentityProvider.md index e6e7d52bfed..9cf0a659d66 100644 --- a/src/Identity.SignIns/v1.0/examples/Remove-MgIdentityProvider.md +++ b/src/Identity.SignIns/v1.0/examples/Remove-MgIdentityProvider.md @@ -1,11 +1,11 @@ ### Example 1: Code snippet ```powershell + Import-Module Microsoft.Graph.Identity.SignIns Remove-MgIdentityProvider -IdentityProviderBaseId $identityProviderBaseId + ``` This example shows how to use the Remove-MgIdentityProvider Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.SignIns/v1.0/examples/Remove-MgIdentityUserFlowAttribute.md b/src/Identity.SignIns/v1.0/examples/Remove-MgIdentityUserFlowAttribute.md index bbfa707ca3c..b76b1c92813 100644 --- a/src/Identity.SignIns/v1.0/examples/Remove-MgIdentityUserFlowAttribute.md +++ b/src/Identity.SignIns/v1.0/examples/Remove-MgIdentityUserFlowAttribute.md @@ -1,11 +1,11 @@ ### Example 1: Code snippet ```powershell + Import-Module Microsoft.Graph.Identity.SignIns Remove-MgIdentityUserFlowAttribute -IdentityUserFlowAttributeId $identityUserFlowAttributeId + ``` This example shows how to use the Remove-MgIdentityUserFlowAttribute Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.SignIns/v1.0/examples/Remove-MgOrganizationCertificateBasedAuthConfiguration.md b/src/Identity.SignIns/v1.0/examples/Remove-MgOrganizationCertificateBasedAuthConfiguration.md new file mode 100644 index 00000000000..527089fb442 --- /dev/null +++ b/src/Identity.SignIns/v1.0/examples/Remove-MgOrganizationCertificateBasedAuthConfiguration.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +Remove-MgOrganizationCertificateBasedAuthConfiguration -OrganizationId $organizationId -CertificateBasedAuthConfigurationId $certificateBasedAuthConfigurationId + +``` +This example shows how to use the Remove-MgOrganizationCertificateBasedAuthConfiguration Cmdlet. + diff --git a/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyActivityBasedTimeoutPolicy.md b/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyActivityBasedTimeoutPolicy.md index 7ae3c661240..f8519289962 100644 --- a/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyActivityBasedTimeoutPolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyActivityBasedTimeoutPolicy.md @@ -1,11 +1,11 @@ ### Example 1: Code snippet ```powershell + Import-Module Microsoft.Graph.Identity.SignIns Remove-MgPolicyActivityBasedTimeoutPolicy -ActivityBasedTimeoutPolicyId $activityBasedTimeoutPolicyId + ``` This example shows how to use the Remove-MgPolicyActivityBasedTimeoutPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyAppManagementPolicy.md b/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyAppManagementPolicy.md new file mode 100644 index 00000000000..4564a686f13 --- /dev/null +++ b/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyAppManagementPolicy.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +Remove-MgPolicyAppManagementPolicy -AppManagementPolicyId $appManagementPolicyId + +``` +This example shows how to use the Remove-MgPolicyAppManagementPolicy Cmdlet. + diff --git a/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyAuthenticationStrengthPolicy.md b/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyAuthenticationStrengthPolicy.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyClaimMappingPolicy.md b/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyClaimMappingPolicy.md index 33fef3efefc..21f9739b59e 100644 --- a/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyClaimMappingPolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyClaimMappingPolicy.md @@ -1,11 +1,11 @@ ### Example 1: Code snippet ```powershell + Import-Module Microsoft.Graph.Identity.SignIns Remove-MgPolicyClaimMappingPolicy -ClaimsMappingPolicyId $claimsMappingPolicyId + ``` This example shows how to use the Remove-MgPolicyClaimMappingPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyCrossTenantAccessPolicyPartner.md b/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyCrossTenantAccessPolicyPartner.md index fe88f2dc703..c0e72ce3be6 100644 --- a/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyCrossTenantAccessPolicyPartner.md +++ b/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyCrossTenantAccessPolicyPartner.md @@ -1,11 +1,11 @@ ### Example 1: Code snippet ```powershell + Import-Module Microsoft.Graph.Identity.SignIns Remove-MgPolicyCrossTenantAccessPolicyPartner -CrossTenantAccessPolicyConfigurationPartnerTenantId $crossTenantAccessPolicyConfigurationPartnerTenantId + ``` This example shows how to use the Remove-MgPolicyCrossTenantAccessPolicyPartner Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyCrossTenantAccessPolicyPartnerIdentitySynchronization.md b/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyCrossTenantAccessPolicyPartnerIdentitySynchronization.md new file mode 100644 index 00000000000..b68f9186eb2 --- /dev/null +++ b/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyCrossTenantAccessPolicyPartnerIdentitySynchronization.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +Remove-MgPolicyCrossTenantAccessPolicyPartnerIdentitySynchronization -CrossTenantAccessPolicyConfigurationPartnerTenantId $crossTenantAccessPolicyConfigurationPartnerTenantId + +``` +This example shows how to use the Remove-MgPolicyCrossTenantAccessPolicyPartnerIdentitySynchronization Cmdlet. + diff --git a/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyFeatureRolloutPolicy.md b/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyFeatureRolloutPolicy.md index d0fb1730896..eeba10d4f66 100644 --- a/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyFeatureRolloutPolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyFeatureRolloutPolicy.md @@ -1,11 +1,11 @@ ### Example 1: Code snippet ```powershell + Import-Module Microsoft.Graph.Identity.SignIns Remove-MgPolicyFeatureRolloutPolicy -FeatureRolloutPolicyId $featureRolloutPolicyId + ``` This example shows how to use the Remove-MgPolicyFeatureRolloutPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyFeatureRolloutPolicyApplyToDirectoryObjectByRef.md b/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyFeatureRolloutPolicyApplyToDirectoryObjectByRef.md new file mode 100644 index 00000000000..5d833b759a1 --- /dev/null +++ b/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyFeatureRolloutPolicyApplyToDirectoryObjectByRef.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +Remove-MgPolicyFeatureRolloutPolicyApplyToDirectoryObjectByRef -FeatureRolloutPolicyId $featureRolloutPolicyId -DirectoryObjectId $directoryObjectId + +``` +This example shows how to use the Remove-MgPolicyFeatureRolloutPolicyApplyToDirectoryObjectByRef Cmdlet. + diff --git a/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyHomeRealmDiscoveryPolicy.md b/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyHomeRealmDiscoveryPolicy.md index d225db1d14b..af4531a20e1 100644 --- a/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyHomeRealmDiscoveryPolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyHomeRealmDiscoveryPolicy.md @@ -1,11 +1,11 @@ ### Example 1: Code snippet ```powershell + Import-Module Microsoft.Graph.Identity.SignIns Remove-MgPolicyHomeRealmDiscoveryPolicy -HomeRealmDiscoveryPolicyId $homeRealmDiscoveryPolicyId + ``` This example shows how to use the Remove-MgPolicyHomeRealmDiscoveryPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyTokenIssuancePolicy.md b/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyTokenIssuancePolicy.md index 92e4808f576..cd87686ad4a 100644 --- a/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyTokenIssuancePolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyTokenIssuancePolicy.md @@ -1,11 +1,11 @@ ### Example 1: Code snippet ```powershell + Import-Module Microsoft.Graph.Identity.SignIns Remove-MgPolicyTokenIssuancePolicy -TokenIssuancePolicyId $tokenIssuancePolicyId + ``` This example shows how to use the Remove-MgPolicyTokenIssuancePolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyTokenLifetimePolicy.md b/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyTokenLifetimePolicy.md index 4fb322ac1cf..add8d711b3c 100644 --- a/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyTokenLifetimePolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyTokenLifetimePolicy.md @@ -1,11 +1,11 @@ ### Example 1: Code snippet ```powershell + Import-Module Microsoft.Graph.Identity.SignIns Remove-MgPolicyTokenLifetimePolicy -TokenLifetimePolicyId $tokenLifetimePolicyId + ``` This example shows how to use the Remove-MgPolicyTokenLifetimePolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.SignIns/v1.0/examples/Remove-MgTenantRelationshipMultiTenantOrganizationTenant.md b/src/Identity.SignIns/v1.0/examples/Remove-MgTenantRelationshipMultiTenantOrganizationTenant.md new file mode 100644 index 00000000000..d5a0037cddc --- /dev/null +++ b/src/Identity.SignIns/v1.0/examples/Remove-MgTenantRelationshipMultiTenantOrganizationTenant.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +Remove-MgTenantRelationshipMultiTenantOrganizationTenant -MultiTenantOrganizationMemberId $multiTenantOrganizationMemberId + +``` +This example shows how to use the Remove-MgTenantRelationshipMultiTenantOrganizationTenant Cmdlet. + diff --git a/src/Identity.SignIns/v1.0/examples/Remove-MgUserAuthenticationEmailMethod.md b/src/Identity.SignIns/v1.0/examples/Remove-MgUserAuthenticationEmailMethod.md index 2038ccbad7e..3ff3354ec1d 100644 --- a/src/Identity.SignIns/v1.0/examples/Remove-MgUserAuthenticationEmailMethod.md +++ b/src/Identity.SignIns/v1.0/examples/Remove-MgUserAuthenticationEmailMethod.md @@ -1,11 +1,11 @@ ### Example 1: Code snippet ```powershell + Import-Module Microsoft.Graph.Identity.SignIns Remove-MgUserAuthenticationEmailMethod -UserId $userId -EmailAuthenticationMethodId $emailAuthenticationMethodId + ``` This example shows how to use the Remove-MgUserAuthenticationEmailMethod Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.SignIns/v1.0/examples/Remove-MgUserAuthenticationFido2Method.md b/src/Identity.SignIns/v1.0/examples/Remove-MgUserAuthenticationFido2Method.md index 81e9123c1af..122aadea72d 100644 --- a/src/Identity.SignIns/v1.0/examples/Remove-MgUserAuthenticationFido2Method.md +++ b/src/Identity.SignIns/v1.0/examples/Remove-MgUserAuthenticationFido2Method.md @@ -1,11 +1,11 @@ ### Example 1: Code snippet ```powershell + Import-Module Microsoft.Graph.Identity.SignIns Remove-MgUserAuthenticationFido2Method -UserId $userId -Fido2AuthenticationMethodId $fido2AuthenticationMethodId + ``` This example shows how to use the Remove-MgUserAuthenticationFido2Method Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.SignIns/v1.0/examples/Remove-MgUserAuthenticationMicrosoftAuthenticatorMethod.md b/src/Identity.SignIns/v1.0/examples/Remove-MgUserAuthenticationMicrosoftAuthenticatorMethod.md index fbc9c7163fb..847aaca198a 100644 --- a/src/Identity.SignIns/v1.0/examples/Remove-MgUserAuthenticationMicrosoftAuthenticatorMethod.md +++ b/src/Identity.SignIns/v1.0/examples/Remove-MgUserAuthenticationMicrosoftAuthenticatorMethod.md @@ -1,11 +1,11 @@ ### Example 1: Code snippet ```powershell + Import-Module Microsoft.Graph.Identity.SignIns Remove-MgUserAuthenticationMicrosoftAuthenticatorMethod -UserId $userId -MicrosoftAuthenticatorAuthenticationMethodId $microsoftAuthenticatorAuthenticationMethodId + ``` This example shows how to use the Remove-MgUserAuthenticationMicrosoftAuthenticatorMethod Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.SignIns/v1.0/examples/Remove-MgUserAuthenticationSoftwareOathMethod.md b/src/Identity.SignIns/v1.0/examples/Remove-MgUserAuthenticationSoftwareOathMethod.md index b7089e8b042..ab7348834d4 100644 --- a/src/Identity.SignIns/v1.0/examples/Remove-MgUserAuthenticationSoftwareOathMethod.md +++ b/src/Identity.SignIns/v1.0/examples/Remove-MgUserAuthenticationSoftwareOathMethod.md @@ -1,11 +1,11 @@ ### Example 1: Code snippet ```powershell + Import-Module Microsoft.Graph.Identity.SignIns Remove-MgUserAuthenticationSoftwareOathMethod -UserId $userId -SoftwareOathAuthenticationMethodId $softwareOathAuthenticationMethodId + ``` This example shows how to use the Remove-MgUserAuthenticationSoftwareOathMethod Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.SignIns/v1.0/examples/Remove-MgUserAuthenticationTemporaryAccessPassMethod.md b/src/Identity.SignIns/v1.0/examples/Remove-MgUserAuthenticationTemporaryAccessPassMethod.md index 0dc42c43bb9..0cc3a27362d 100644 --- a/src/Identity.SignIns/v1.0/examples/Remove-MgUserAuthenticationTemporaryAccessPassMethod.md +++ b/src/Identity.SignIns/v1.0/examples/Remove-MgUserAuthenticationTemporaryAccessPassMethod.md @@ -1,11 +1,11 @@ ### Example 1: Code snippet ```powershell + Import-Module Microsoft.Graph.Identity.SignIns Remove-MgUserAuthenticationTemporaryAccessPassMethod -UserId $userId -TemporaryAccessPassAuthenticationMethodId $temporaryAccessPassAuthenticationMethodId + ``` This example shows how to use the Remove-MgUserAuthenticationTemporaryAccessPassMethod Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.SignIns/v1.0/examples/Remove-MgUserAuthenticationWindowsHelloForBusinessMethod.md b/src/Identity.SignIns/v1.0/examples/Remove-MgUserAuthenticationWindowsHelloForBusinessMethod.md new file mode 100644 index 00000000000..f0956229797 --- /dev/null +++ b/src/Identity.SignIns/v1.0/examples/Remove-MgUserAuthenticationWindowsHelloForBusinessMethod.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +Remove-MgUserAuthenticationWindowsHelloForBusinessMethod -UserId $userId -WindowsHelloForBusinessAuthenticationMethodId $windowsHelloForBusinessAuthenticationMethodId + +``` +This example shows how to use the Remove-MgUserAuthenticationWindowsHelloForBusinessMethod Cmdlet. + diff --git a/src/Identity.SignIns/v1.0/examples/Set-MgIdentityB2XUserFlowLanguageOverridePageContent.md b/src/Identity.SignIns/v1.0/examples/Set-MgIdentityB2XUserFlowLanguageOverridePageContent.md index e69de29bb2d..b353d5c060d 100644 --- a/src/Identity.SignIns/v1.0/examples/Set-MgIdentityB2XUserFlowLanguageOverridePageContent.md +++ b/src/Identity.SignIns/v1.0/examples/Set-MgIdentityB2XUserFlowLanguageOverridePageContent.md @@ -0,0 +1,23 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +$params = @{ + LocalizedStrings = @( + @{ + ElementType = "UxElement" + ElementId = $null + StringId = "alert_message" + Override = $true + Value = "Are you sure that you want to cancel entering your information?" + } + ) +} + +Set-MgIdentityB2XUserFlowLanguageOverridePageContent -B2xIdentityUserFlowId $b2xIdentityUserFlowId -UserFlowLanguageConfigurationId $userFlowLanguageConfigurationId -UserFlowLanguagePageId $userFlowLanguagePageId -BodyParameter $params + +``` +This example shows how to use the Set-MgIdentityB2XUserFlowLanguageOverridePageContent Cmdlet. + diff --git a/src/Identity.SignIns/v1.0/examples/Set-MgPolicyCrossTenantAccessPolicyPartnerIdentitySynchronization.md b/src/Identity.SignIns/v1.0/examples/Set-MgPolicyCrossTenantAccessPolicyPartnerIdentitySynchronization.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Identity.SignIns/v1.0/examples/Update-MgIdentityApiConnector.md b/src/Identity.SignIns/v1.0/examples/Update-MgIdentityApiConnector.md index 2c1df538d2b..f91a13a6178 100644 --- a/src/Identity.SignIns/v1.0/examples/Update-MgIdentityApiConnector.md +++ b/src/Identity.SignIns/v1.0/examples/Update-MgIdentityApiConnector.md @@ -1,6 +1,7 @@ -### Example 1: Changing display name, targetUrl, and username & password used for basic authentication +### Example 1: Changing display name, targetUrl, and username & password used for basic authentication ```powershell + Import-Module Microsoft.Graph.Identity.SignIns $params = @{ @@ -8,20 +9,20 @@ $params = @{ targetUrl = "https://otherapi.com/api/endpoint" authenticationConfiguration = @{ "@odata.type" = "microsoft.graph.basicAuthentication" - username = "<NEW_USERNAME>" - password = "<NEW_PASSWORD>" + username = "" + password = "" } } Update-MgIdentityApiConnector -IdentityApiConnectorId $identityApiConnectorId -BodyParameter $params -``` -This example shows how to use the Update-MgIdentityApiConnector Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +``` +This example shows changing display name, targeturl, and username & password used for basic authentication ### Example 2: Changing API connector to use client certificate authentication ```powershell + Import-Module Microsoft.Graph.Identity.SignIns $params = @{ @@ -33,8 +34,7 @@ $params = @{ } Update-MgIdentityApiConnector -IdentityApiConnectorId $identityApiConnectorId -BodyParameter $params -``` -This example shows how to use the Update-MgIdentityApiConnector Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +``` +This example shows changing api connector to use client certificate authentication diff --git a/src/Identity.SignIns/v1.0/examples/Update-MgIdentityAuthenticationEventFlow.md b/src/Identity.SignIns/v1.0/examples/Update-MgIdentityAuthenticationEventFlow.md new file mode 100644 index 00000000000..206ce986f65 --- /dev/null +++ b/src/Identity.SignIns/v1.0/examples/Update-MgIdentityAuthenticationEventFlow.md @@ -0,0 +1,104 @@ +### Example 1: Update the display name of an external identities self-service sign-up user flow + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +$params = @{ + "@odata.type" = "#microsoft.graph.externalUsersSelfServiceSignUpEventsFlow" + displayName = "New user flow description" +} + +Update-MgIdentityAuthenticationEventFlow -AuthenticationEventsFlowId $authenticationEventsFlowId -BodyParameter $params + +``` +This example will update the display name of an external identities self-service sign-up user flow + +### Example 2: Update the page layout of a self-service sign up user flow + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +$params = @{ + "@odata.type" = "#microsoft.graph.externalUsersSelfServiceSignUpEventsFlow" + onAttributeCollection = @{ + "@odata.type" = "#microsoft.graph.onAttributeCollectionExternalUsersSelfServiceSignUp" + attributeCollectionPage = @{ + views = @( + @{ + title = $null + description = $null + inputs = @( + @{ + attribute = "email" + label = "Email Address" + inputType = "text" + defaultValue = $null + hidden = $true + editable = $false + writeToDirectory = $true + required = $true + validationRegEx = "^[a-zA-Z0-9.!#$%&’'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:.[a-zA-Z0-9-]+)*$" + options = @( + ) + } + @{ + attribute = "displayName" + label = "Display Name" + inputType = "text" + defaultValue = $null + hidden = $false + editable = $true + writeToDirectory = $true + required = $true + validationRegEx = "^[a-zA-Z_][0-9a-zA-Z_ ]*[0-9a-zA-Z_]+$" + options = @( + ) + } + @{ + attribute = "city" + label = "City" + inputType = "text" + defaultValue = $null + hidden = $false + editable = $true + writeToDirectory = $true + required = $true + validationRegEx = "^[a-zA-Z_][0-9a-zA-Z_ ]*[0-9a-zA-Z_]+$" + options = @( + ) + } + @{ + attribute = "extension_331d514c0c18477583ea7dd5a79feda2_RockorCountry" + label = "Rock music or Country" + inputType = "radioSingleSelect" + defaultValue = $null + hidden = $false + editable = $true + writeToDirectory = $true + required = $true + validationRegEx = "^.*" + options = @( + @{ + label = "Rock music" + value = "Rock" + } + @{ + label = "Country music" + value = "Country" + } + ) + } + ) + } + ) + } + } +} + +Update-MgIdentityAuthenticationEventFlow -AuthenticationEventsFlowId $authenticationEventsFlowId -BodyParameter $params + +``` +This example will update the page layout of a self-service sign up user flow + diff --git a/src/Identity.SignIns/v1.0/examples/Update-MgIdentityAuthenticationEventListener.md b/src/Identity.SignIns/v1.0/examples/Update-MgIdentityAuthenticationEventListener.md new file mode 100644 index 00000000000..ba96022f00c --- /dev/null +++ b/src/Identity.SignIns/v1.0/examples/Update-MgIdentityAuthenticationEventListener.md @@ -0,0 +1,24 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +$params = @{ + "@odata.type" = "#microsoft.graph.onTokenIssuanceStartListener" + conditions = @{ + applications = @{ + includeApplications = @( + @{ + appId = "a13d0fc1-04ab-4ede-b215-63de0174cbb4" + } + ) + } + } +} + +Update-MgIdentityAuthenticationEventListener -AuthenticationEventListenerId $authenticationEventListenerId -BodyParameter $params + +``` +This example shows how to use the Update-MgIdentityAuthenticationEventListener Cmdlet. + diff --git a/src/Identity.SignIns/v1.0/examples/Update-MgIdentityB2XUserFlowLanguageOverridePage.md b/src/Identity.SignIns/v1.0/examples/Update-MgIdentityB2XUserFlowLanguageOverridePage.md index e69de29bb2d..8b137891791 100644 --- a/src/Identity.SignIns/v1.0/examples/Update-MgIdentityB2XUserFlowLanguageOverridePage.md +++ b/src/Identity.SignIns/v1.0/examples/Update-MgIdentityB2XUserFlowLanguageOverridePage.md @@ -0,0 +1 @@ + diff --git a/src/Identity.SignIns/v1.0/examples/Update-MgIdentityB2XUserFlowUserAttributeAssignment.md b/src/Identity.SignIns/v1.0/examples/Update-MgIdentityB2XUserFlowUserAttributeAssignment.md index f3b27cfbc01..62acc6d4388 100644 --- a/src/Identity.SignIns/v1.0/examples/Update-MgIdentityB2XUserFlowUserAttributeAssignment.md +++ b/src/Identity.SignIns/v1.0/examples/Update-MgIdentityB2XUserFlowUserAttributeAssignment.md @@ -1,6 +1,7 @@ ### Example 1: Code snippet ```powershell + Import-Module Microsoft.Graph.Identity.SignIns $params = @{ @@ -8,8 +9,7 @@ $params = @{ } Update-MgIdentityB2XUserFlowUserAttributeAssignment -B2xIdentityUserFlowId $b2xIdentityUserFlowId -IdentityUserFlowAttributeAssignmentId $identityUserFlowAttributeAssignmentId -BodyParameter $params + ``` This example shows how to use the Update-MgIdentityB2XUserFlowUserAttributeAssignment Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.SignIns/v1.0/examples/Update-MgIdentityConditionalAccessAuthenticationContextClassReference.md b/src/Identity.SignIns/v1.0/examples/Update-MgIdentityConditionalAccessAuthenticationContextClassReference.md index f9391b021d5..39c83ddddf1 100644 --- a/src/Identity.SignIns/v1.0/examples/Update-MgIdentityConditionalAccessAuthenticationContextClassReference.md +++ b/src/Identity.SignIns/v1.0/examples/Update-MgIdentityConditionalAccessAuthenticationContextClassReference.md @@ -1,6 +1,7 @@ ### Example 1: Code snippet ```powershell + Import-Module Microsoft.Graph.Identity.SignIns $params = @{ @@ -10,8 +11,7 @@ $params = @{ } Update-MgIdentityConditionalAccessAuthenticationContextClassReference -AuthenticationContextClassReferenceId $authenticationContextClassReferenceId -BodyParameter $params + ``` This example shows how to use the Update-MgIdentityConditionalAccessAuthenticationContextClassReference Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.SignIns/v1.0/examples/Update-MgIdentityCustomAuthenticationExtension.md b/src/Identity.SignIns/v1.0/examples/Update-MgIdentityCustomAuthenticationExtension.md new file mode 100644 index 00000000000..203ba4381fc --- /dev/null +++ b/src/Identity.SignIns/v1.0/examples/Update-MgIdentityCustomAuthenticationExtension.md @@ -0,0 +1,33 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +$params = @{ + "@odata.type" = "#microsoft.graph.onTokenIssuanceStartCustomExtension" + displayName = "onTokenIssuanceStartCustomExtension" + description = "Fetch additional claims from custom user store" + endpointConfiguration = @{ + "@odata.type" = "#microsoft.graph.httpRequestEndpoint" + targetUrl = "https://authenticationeventsAPI.contoso.com" + } + authenticationConfiguration = @{ + "@odata.type" = "#microsoft.graph.azureAdTokenAuthentication" + resourceId = "api://authenticationeventsAPI.contoso.com/a13d0fc1-04ab-4ede-b215-63de0174cbb4" + } + claimsForTokenConfiguration = @( + @{ + claimIdInApiResponse = "DateOfBirth" + } + @{ + claimIdInApiResponse = "CustomRoles" + } + ) +} + +Update-MgIdentityCustomAuthenticationExtension -CustomAuthenticationExtensionId $customAuthenticationExtensionId -BodyParameter $params + +``` +This example shows how to use the Update-MgIdentityCustomAuthenticationExtension Cmdlet. + diff --git a/src/Identity.SignIns/v1.0/examples/Update-MgIdentityProvider.md b/src/Identity.SignIns/v1.0/examples/Update-MgIdentityProvider.md index 2ff77f4c806..a6a0499424d 100644 --- a/src/Identity.SignIns/v1.0/examples/Update-MgIdentityProvider.md +++ b/src/Identity.SignIns/v1.0/examples/Update-MgIdentityProvider.md @@ -1,6 +1,7 @@ -### Example 1: Update a specific social identity provider (Azure AD or Azure AD B2C) +### Example 1: Update a specific **social identity provider** (Microsoft Entra ID or Azure AD B2C) ```powershell + Import-Module Microsoft.Graph.Identity.SignIns $params = @{ @@ -9,14 +10,14 @@ $params = @{ } Update-MgIdentityProvider -IdentityProviderBaseId $identityProviderBaseId -BodyParameter $params -``` -This example shows how to use the Update-MgIdentityProvider Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +``` +This example will update a specific **social identity provider** (microsoft entra id or azure ad b2c) -### Example 2: Update a specific Apple identity provider (only for Azure AD B2C) +### Example 2: Update a specific **Apple identity provider** (only for Azure AD B2C) ```powershell + Import-Module Microsoft.Graph.Identity.SignIns $params = @{ @@ -25,8 +26,7 @@ $params = @{ } Update-MgIdentityProvider -IdentityProviderBaseId $identityProviderBaseId -BodyParameter $params -``` -This example shows how to use the Update-MgIdentityProvider Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +``` +This example will update a specific **apple identity provider** (only for azure ad b2c) diff --git a/src/Identity.SignIns/v1.0/examples/Update-MgIdentityUserFlowAttribute.md b/src/Identity.SignIns/v1.0/examples/Update-MgIdentityUserFlowAttribute.md index fd89112c22e..ab677fe81e9 100644 --- a/src/Identity.SignIns/v1.0/examples/Update-MgIdentityUserFlowAttribute.md +++ b/src/Identity.SignIns/v1.0/examples/Update-MgIdentityUserFlowAttribute.md @@ -1,6 +1,7 @@ ### Example 1: Code snippet ```powershell + Import-Module Microsoft.Graph.Identity.SignIns $params = @{ @@ -8,8 +9,7 @@ $params = @{ } Update-MgIdentityUserFlowAttribute -IdentityUserFlowAttributeId $identityUserFlowAttributeId -BodyParameter $params + ``` This example shows how to use the Update-MgIdentityUserFlowAttribute Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.SignIns/v1.0/examples/Update-MgPolicyActivityBasedTimeoutPolicy.md b/src/Identity.SignIns/v1.0/examples/Update-MgPolicyActivityBasedTimeoutPolicy.md index 4bc261724b7..ac4b50c50e6 100644 --- a/src/Identity.SignIns/v1.0/examples/Update-MgPolicyActivityBasedTimeoutPolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Update-MgPolicyActivityBasedTimeoutPolicy.md @@ -1,19 +1,19 @@ ### Example 1: Code snippet ```powershell + Import-Module Microsoft.Graph.Identity.SignIns $params = @{ definition = @( - "definition-value" - ) - displayName = "displayName-value" - isOrganizationDefault = $true + "definition-value" +) +displayName = "displayName-value" +isOrganizationDefault = $true } Update-MgPolicyActivityBasedTimeoutPolicy -ActivityBasedTimeoutPolicyId $activityBasedTimeoutPolicyId -BodyParameter $params + ``` This example shows how to use the Update-MgPolicyActivityBasedTimeoutPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.SignIns/v1.0/examples/Update-MgPolicyAppManagementPolicy.md b/src/Identity.SignIns/v1.0/examples/Update-MgPolicyAppManagementPolicy.md new file mode 100644 index 00000000000..c8c7ca3b317 --- /dev/null +++ b/src/Identity.SignIns/v1.0/examples/Update-MgPolicyAppManagementPolicy.md @@ -0,0 +1,15 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +$params = @{ + isEnabled = $false +} + +Update-MgPolicyAppManagementPolicy -AppManagementPolicyId $appManagementPolicyId -BodyParameter $params + +``` +This example shows how to use the Update-MgPolicyAppManagementPolicy Cmdlet. + diff --git a/src/Identity.SignIns/v1.0/examples/Update-MgPolicyAuthenticationFlowPolicy.md b/src/Identity.SignIns/v1.0/examples/Update-MgPolicyAuthenticationFlowPolicy.md index af7db45a249..d5ee8295912 100644 --- a/src/Identity.SignIns/v1.0/examples/Update-MgPolicyAuthenticationFlowPolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Update-MgPolicyAuthenticationFlowPolicy.md @@ -1,6 +1,7 @@ ### Example 1: Code snippet ```powershell + Import-Module Microsoft.Graph.Identity.SignIns $params = @{ @@ -10,8 +11,7 @@ $params = @{ } Update-MgPolicyAuthenticationFlowPolicy -BodyParameter $params + ``` This example shows how to use the Update-MgPolicyAuthenticationFlowPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.SignIns/v1.0/examples/Update-MgPolicyAuthenticationMethodPolicy.md b/src/Identity.SignIns/v1.0/examples/Update-MgPolicyAuthenticationMethodPolicy.md index 5f9937104ab..ec424278701 100644 --- a/src/Identity.SignIns/v1.0/examples/Update-MgPolicyAuthenticationMethodPolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Update-MgPolicyAuthenticationMethodPolicy.md @@ -1,6 +1,7 @@ ### Example 1: Code snippet ```powershell + Import-Module Microsoft.Graph.Identity.SignIns $params = @{ @@ -22,8 +23,7 @@ $params = @{ } Update-MgPolicyAuthenticationMethodPolicy -BodyParameter $params + ``` This example shows how to use the Update-MgPolicyAuthenticationMethodPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.SignIns/v1.0/examples/Update-MgPolicyAuthenticationStrengthPolicy.md b/src/Identity.SignIns/v1.0/examples/Update-MgPolicyAuthenticationStrengthPolicy.md new file mode 100644 index 00000000000..e79c6245008 --- /dev/null +++ b/src/Identity.SignIns/v1.0/examples/Update-MgPolicyAuthenticationStrengthPolicy.md @@ -0,0 +1,17 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +$params = @{ + "@odata.type" = "#microsoft.graph.authenticationStrengthPolicy" + displayName = "FIDO2 only" + description = "An auth strength allowing only FIDO2 security keys." +} + +Update-MgPolicyAuthenticationStrengthPolicy -AuthenticationStrengthPolicyId $authenticationStrengthPolicyId -BodyParameter $params + +``` +This example shows how to use the Update-MgPolicyAuthenticationStrengthPolicy Cmdlet. + diff --git a/src/Identity.SignIns/v1.0/examples/Update-MgPolicyAuthorizationPolicy.md b/src/Identity.SignIns/v1.0/examples/Update-MgPolicyAuthorizationPolicy.md index e69de29bb2d..5fc3017c21b 100644 --- a/src/Identity.SignIns/v1.0/examples/Update-MgPolicyAuthorizationPolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Update-MgPolicyAuthorizationPolicy.md @@ -0,0 +1,99 @@ +### Example 1: Update or set Guest user access level for the tenant + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +$params = @{ + allowEmailVerifiedUsersToJoinOrganization = $false +} + +Update-MgPolicyAuthorizationPolicy -BodyParameter $params + +``` +This example will update or set guest user access level for the tenant + +### Example 2: Block MSOL PowerShell in tenant + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +$params = @{ + blockMsolPowerShell = $true +} + +Update-MgPolicyAuthorizationPolicy -BodyParameter $params + +``` +This example will block msol powershell in tenant + +### Example 3: Disable default user role's permission to create applications + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +$params = @{ + defaultUserRolePermissions = @{ + allowedToCreateApps = $false + } +} + +Update-MgPolicyAuthorizationPolicy -BodyParameter $params + +``` +This example will disable default user role's permission to create applications + +### Example 4: Enable default user role to use Self-Serve Password Reset feature + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +$params = @{ + allowedToUseSSPR = $true +} + +Update-MgPolicyAuthorizationPolicy -BodyParameter $params + +``` +This example will enable default user role to use self-serve password reset feature + +### Example 5: Disable user consent to apps for default user role + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +$params = @{ + defaultUserRolePermissions = @{ + permissionGrantPoliciesAssigned = @( + ) + } +} + +Update-MgPolicyAuthorizationPolicy -BodyParameter $params + +``` +This example will disable user consent to apps for default user role + +### Example 6: Enable user consent to apps, subject to app consent policy + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +$params = @{ + defaultUserRolePermissions = @{ + permissionGrantPoliciesAssigned = @( + "managePermissionGrantsForSelf.microsoft-user-default-low" + ) +} +} + +Update-MgPolicyAuthorizationPolicy -BodyParameter $params + +``` +This example will enable user consent to apps, subject to app consent policy + diff --git a/src/Identity.SignIns/v1.0/examples/Update-MgPolicyClaimMappingPolicy.md b/src/Identity.SignIns/v1.0/examples/Update-MgPolicyClaimMappingPolicy.md index 7aea190568c..b3258b3d604 100644 --- a/src/Identity.SignIns/v1.0/examples/Update-MgPolicyClaimMappingPolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Update-MgPolicyClaimMappingPolicy.md @@ -1,6 +1,7 @@ ### Example 1: Code snippet ```powershell + Import-Module Microsoft.Graph.Identity.SignIns $params = @{ @@ -8,8 +9,7 @@ $params = @{ } Update-MgPolicyClaimMappingPolicy -ClaimsMappingPolicyId $claimsMappingPolicyId -BodyParameter $params + ``` This example shows how to use the Update-MgPolicyClaimMappingPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.SignIns/v1.0/examples/Update-MgPolicyCrossTenantAccessPolicy.md b/src/Identity.SignIns/v1.0/examples/Update-MgPolicyCrossTenantAccessPolicy.md index 62b81285a91..80dfccbde7b 100644 --- a/src/Identity.SignIns/v1.0/examples/Update-MgPolicyCrossTenantAccessPolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Update-MgPolicyCrossTenantAccessPolicy.md @@ -1,17 +1,17 @@ ### Example 1: Code snippet ```powershell + Import-Module Microsoft.Graph.Identity.SignIns $params = @{ allowedCloudEndpoints = @( - "microsoftonline.us" - ) + "microsoftonline.us" +) } Update-MgPolicyCrossTenantAccessPolicy -BodyParameter $params + ``` This example shows how to use the Update-MgPolicyCrossTenantAccessPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.SignIns/v1.0/examples/Update-MgPolicyCrossTenantAccessPolicyDefault.md b/src/Identity.SignIns/v1.0/examples/Update-MgPolicyCrossTenantAccessPolicyDefault.md index b251fc48028..d215aedb343 100644 --- a/src/Identity.SignIns/v1.0/examples/Update-MgPolicyCrossTenantAccessPolicyDefault.md +++ b/src/Identity.SignIns/v1.0/examples/Update-MgPolicyCrossTenantAccessPolicyDefault.md @@ -1,6 +1,7 @@ -### Example 1: Code snippet +### Example 1: Block outbound B2B collaboration for a group of users ```powershell + Import-Module Microsoft.Graph.Identity.SignIns $params = @{ @@ -27,8 +28,51 @@ $params = @{ } Update-MgPolicyCrossTenantAccessPolicyDefault -BodyParameter $params + ``` -This example shows how to use the Update-MgPolicyCrossTenantAccessPolicyDefault Cmdlet. +This example will block outbound b2b collaboration for a group of users + +### Example 2: Update default invitation redemption configuration + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +$params = @{ + invitationRedemptionIdentityProviderConfiguration = @{ + primaryIdentityProviderPrecedenceOrder = @( + "externalFederation" + "azureActiveDirectory" +"socialIdentityProviders" +) +fallbackIdentityProvider = "defaultConfiguredIdp" +} +} + +Update-MgPolicyCrossTenantAccessPolicyDefault -BodyParameter $params + +``` +This example will update default invitation redemption configuration + +### Example 3: Disallow Microsoft accounts as an option for redeeming B2B invitations + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +$params = @{ + invitationRedemptionIdentityProviderConfiguration = @{ + primaryIdentityProviderPrecedenceOrder = @( + "externalFederation" + "azureActiveDirectory" +"socialIdentityProviders" +) +fallbackIdentityProvider = "emailOneTimePasscode" +} +} + +Update-MgPolicyCrossTenantAccessPolicyDefault -BodyParameter $params + +``` +This example will disallow microsoft accounts as an option for redeeming b2b invitations diff --git a/src/Identity.SignIns/v1.0/examples/Update-MgPolicyCrossTenantAccessPolicyPartner.md b/src/Identity.SignIns/v1.0/examples/Update-MgPolicyCrossTenantAccessPolicyPartner.md index 764b27d4333..b938f71bbb7 100644 --- a/src/Identity.SignIns/v1.0/examples/Update-MgPolicyCrossTenantAccessPolicyPartner.md +++ b/src/Identity.SignIns/v1.0/examples/Update-MgPolicyCrossTenantAccessPolicyPartner.md @@ -1,6 +1,7 @@ ### Example 1: Configure inbound trust settings ```powershell + Import-Module Microsoft.Graph.Identity.SignIns $params = @{ @@ -12,14 +13,14 @@ $params = @{ } Update-MgPolicyCrossTenantAccessPolicyPartner -CrossTenantAccessPolicyConfigurationPartnerTenantId $crossTenantAccessPolicyConfigurationPartnerTenantId -BodyParameter $params -``` -This example shows how to use the Update-MgPolicyCrossTenantAccessPolicyPartner Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +``` +This example will configure inbound trust settings ### Example 2: Configure automaticUserConsent settings ```powershell + Import-Module Microsoft.Graph.Identity.SignIns $params = @{ @@ -30,8 +31,7 @@ $params = @{ } Update-MgPolicyCrossTenantAccessPolicyPartner -CrossTenantAccessPolicyConfigurationPartnerTenantId $crossTenantAccessPolicyConfigurationPartnerTenantId -BodyParameter $params -``` -This example shows how to use the Update-MgPolicyCrossTenantAccessPolicyPartner Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +``` +This example will configure automaticuserconsent settings diff --git a/src/Identity.SignIns/v1.0/examples/Update-MgPolicyCrossTenantAccessPolicyTemplateMultiTenantOrganizationIdentitySynchronization.md b/src/Identity.SignIns/v1.0/examples/Update-MgPolicyCrossTenantAccessPolicyTemplateMultiTenantOrganizationIdentitySynchronization.md new file mode 100644 index 00000000000..9cab4c406b1 --- /dev/null +++ b/src/Identity.SignIns/v1.0/examples/Update-MgPolicyCrossTenantAccessPolicyTemplateMultiTenantOrganizationIdentitySynchronization.md @@ -0,0 +1,18 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +$params = @{ + templateApplicationLevel = "newPartners,existingPartners" + userSyncInbound = @{ + isSyncAllowed = $true + } +} + +Update-MgPolicyCrossTenantAccessPolicyTemplateMultiTenantOrganizationIdentitySynchronization -BodyParameter $params + +``` +This example shows how to use the Update-MgPolicyCrossTenantAccessPolicyTemplateMultiTenantOrganizationIdentitySynchronization Cmdlet. + diff --git a/src/Identity.SignIns/v1.0/examples/Update-MgPolicyCrossTenantAccessPolicyTemplateMultiTenantOrganizationPartnerConfiguration.md b/src/Identity.SignIns/v1.0/examples/Update-MgPolicyCrossTenantAccessPolicyTemplateMultiTenantOrganizationPartnerConfiguration.md new file mode 100644 index 00000000000..28e528d5176 --- /dev/null +++ b/src/Identity.SignIns/v1.0/examples/Update-MgPolicyCrossTenantAccessPolicyTemplateMultiTenantOrganizationPartnerConfiguration.md @@ -0,0 +1,24 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +$params = @{ + inboundTrust = @{ + isMfaAccepted = $true + isCompliantDeviceAccepted = $true + isHybridAzureADJoinedDeviceAccepted = $true + } + automaticUserConsentSettings = @{ + inboundAllowed = $true + outboundAllowed = $true + } + templateApplicationLevel = "newPartners,existingPartners" +} + +Update-MgPolicyCrossTenantAccessPolicyTemplateMultiTenantOrganizationPartnerConfiguration -BodyParameter $params + +``` +This example shows how to use the Update-MgPolicyCrossTenantAccessPolicyTemplateMultiTenantOrganizationPartnerConfiguration Cmdlet. + diff --git a/src/Identity.SignIns/v1.0/examples/Update-MgPolicyDefaultAppManagementPolicy.md b/src/Identity.SignIns/v1.0/examples/Update-MgPolicyDefaultAppManagementPolicy.md new file mode 100644 index 00000000000..b3d876dbb2b --- /dev/null +++ b/src/Identity.SignIns/v1.0/examples/Update-MgPolicyDefaultAppManagementPolicy.md @@ -0,0 +1,51 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +$params = @{ + isEnabled = $true + applicationRestrictions = @{ + passwordCredentials = @( + @{ + restrictionType = "passwordAddition" + maxLifetime = $null + restrictForAppsCreatedAfterDateTime = [System.DateTime]::Parse("2021-01-01T10:37:00Z") + } + @{ + restrictionType = "passwordLifetime" + maxLifetime = "P4DT12H30M5S" + restrictForAppsCreatedAfterDateTime = [System.DateTime]::Parse("2017-01-01T10:37:00Z") + } + @{ + restrictionType = "symmetricKeyAddition" + maxLifetime = $null + restrictForAppsCreatedAfterDateTime = [System.DateTime]::Parse("2021-01-01T10:37:00Z") + } + @{ + restrictionType = "customPasswordAddition" + maxLifetime = $null + restrictForAppsCreatedAfterDateTime = [System.DateTime]::Parse("2015-01-01T10:37:00Z") + } + @{ + restrictionType = "symmetricKeyLifetime" + maxLifetime = "P40D" + restrictForAppsCreatedAfterDateTime = [System.DateTime]::Parse("2015-01-01T10:37:00Z") + } + ) + keyCredentials = @( + @{ + restrictionType = "asymmetricKeyLifetime" + maxLifetime = "P30D" + restrictForAppsCreatedAfterDateTime = [System.DateTime]::Parse("2015-01-01T10:37:00Z") + } + ) + } +} + +Update-MgPolicyDefaultAppManagementPolicy -BodyParameter $params + +``` +This example shows how to use the Update-MgPolicyDefaultAppManagementPolicy Cmdlet. + diff --git a/src/Identity.SignIns/v1.0/examples/Update-MgPolicyFeatureRolloutPolicy.md b/src/Identity.SignIns/v1.0/examples/Update-MgPolicyFeatureRolloutPolicy.md index 32cf19d93eb..627f597c91f 100644 --- a/src/Identity.SignIns/v1.0/examples/Update-MgPolicyFeatureRolloutPolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Update-MgPolicyFeatureRolloutPolicy.md @@ -1,6 +1,7 @@ ### Example 1: Code snippet ```powershell + Import-Module Microsoft.Graph.Identity.SignIns $params = @{ @@ -11,8 +12,7 @@ $params = @{ } Update-MgPolicyFeatureRolloutPolicy -FeatureRolloutPolicyId $featureRolloutPolicyId -BodyParameter $params + ``` This example shows how to use the Update-MgPolicyFeatureRolloutPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.SignIns/v1.0/examples/Update-MgPolicyHomeRealmDiscoveryPolicy.md b/src/Identity.SignIns/v1.0/examples/Update-MgPolicyHomeRealmDiscoveryPolicy.md index e69de29bb2d..7a7dd5985d5 100644 --- a/src/Identity.SignIns/v1.0/examples/Update-MgPolicyHomeRealmDiscoveryPolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Update-MgPolicyHomeRealmDiscoveryPolicy.md @@ -0,0 +1,18 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +$params = @{ + definition = @( + '{"HomeRealmDiscoveryPolicy":{"AccelerateToFederatedDomain":true,"PreferredDomain":"federated.example.edu","AlternateIdLogin":{"Enabled":true}}}' +) +displayName = "Contoso default HRD Policy" +} + +Update-MgPolicyHomeRealmDiscoveryPolicy -HomeRealmDiscoveryPolicyId $homeRealmDiscoveryPolicyId -BodyParameter $params + +``` +This example shows how to use the Update-MgPolicyHomeRealmDiscoveryPolicy Cmdlet. + diff --git a/src/Identity.SignIns/v1.0/examples/Update-MgPolicyIdentitySecurityDefaultEnforcementPolicy.md b/src/Identity.SignIns/v1.0/examples/Update-MgPolicyIdentitySecurityDefaultEnforcementPolicy.md index 8f23951f08a..d237a5a3c05 100644 --- a/src/Identity.SignIns/v1.0/examples/Update-MgPolicyIdentitySecurityDefaultEnforcementPolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Update-MgPolicyIdentitySecurityDefaultEnforcementPolicy.md @@ -1,6 +1,7 @@ ### Example 1: Code snippet ```powershell + Import-Module Microsoft.Graph.Identity.SignIns $params = @{ @@ -8,8 +9,7 @@ $params = @{ } Update-MgPolicyIdentitySecurityDefaultEnforcementPolicy -BodyParameter $params + ``` This example shows how to use the Update-MgPolicyIdentitySecurityDefaultEnforcementPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.SignIns/v1.0/examples/Update-MgPolicyRoleManagementPolicyRule.md b/src/Identity.SignIns/v1.0/examples/Update-MgPolicyRoleManagementPolicyRule.md index 4e750cea292..55984bfc7e6 100644 --- a/src/Identity.SignIns/v1.0/examples/Update-MgPolicyRoleManagementPolicyRule.md +++ b/src/Identity.SignIns/v1.0/examples/Update-MgPolicyRoleManagementPolicyRule.md @@ -1,6 +1,7 @@ -### Example 1: Code snippet +### Example 1: Update a rule defined for a policy in PIM for Microsoft Entra roles ```powershell + Import-Module Microsoft.Graph.Identity.SignIns $params = @{ @@ -12,19 +13,47 @@ $params = @{ "@odata.type" = "microsoft.graph.unifiedRoleManagementPolicyRuleTarget" caller = "EndUser" operations = @( - "All" - ) - level = "Assignment" - inheritableSettings = @( - ) - enforcedSettings = @( - ) - } + "All" + ) + level = "Assignment" + inheritableSettings = @( + ) + enforcedSettings = @( + ) +} } Update-MgPolicyRoleManagementPolicyRule -UnifiedRoleManagementPolicyId $unifiedRoleManagementPolicyId -UnifiedRoleManagementPolicyRuleId $unifiedRoleManagementPolicyRuleId -BodyParameter $params + ``` -This example shows how to use the Update-MgPolicyRoleManagementPolicyRule Cmdlet. +This example will update a rule defined for a policy in pim for microsoft entra roles + +### Example 2: Update a rule defined for a policy in PIM for groups + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +$params = @{ + "@odata.type" = "#microsoft.graph.unifiedRoleManagementPolicyExpirationRule" + id = "Expiration_EndUser_Assignment" + isExpirationRequired = $true + maximumDuration = "PT1H45M" + target = @{ + caller = "EndUser" + operations = @( + "All" + ) + level = "Assignment" + inheritableSettings = @( + ) + enforcedSettings = @( + ) +} +} -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Update-MgPolicyRoleManagementPolicyRule -UnifiedRoleManagementPolicyId $unifiedRoleManagementPolicyId -UnifiedRoleManagementPolicyRuleId $unifiedRoleManagementPolicyRuleId -BodyParameter $params + +``` +This example will update a rule defined for a policy in pim for groups diff --git a/src/Identity.SignIns/v1.0/examples/Update-MgPolicyTokenIssuancePolicy.md b/src/Identity.SignIns/v1.0/examples/Update-MgPolicyTokenIssuancePolicy.md index 389518d0c03..542ee71ba77 100644 --- a/src/Identity.SignIns/v1.0/examples/Update-MgPolicyTokenIssuancePolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Update-MgPolicyTokenIssuancePolicy.md @@ -1,19 +1,19 @@ ### Example 1: Code snippet ```powershell + Import-Module Microsoft.Graph.Identity.SignIns $params = @{ definition = @( - "definition-value" - ) - displayName = "displayName-value" - isOrganizationDefault = $true + "definition-value" +) +displayName = "displayName-value" +isOrganizationDefault = $true } Update-MgPolicyTokenIssuancePolicy -TokenIssuancePolicyId $tokenIssuancePolicyId -BodyParameter $params + ``` This example shows how to use the Update-MgPolicyTokenIssuancePolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.SignIns/v1.0/examples/Update-MgPolicyTokenLifetimePolicy.md b/src/Identity.SignIns/v1.0/examples/Update-MgPolicyTokenLifetimePolicy.md index 1414e79528b..36d0384a9ae 100644 --- a/src/Identity.SignIns/v1.0/examples/Update-MgPolicyTokenLifetimePolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Update-MgPolicyTokenLifetimePolicy.md @@ -1,19 +1,19 @@ ### Example 1: Code snippet ```powershell + Import-Module Microsoft.Graph.Identity.SignIns $params = @{ definition = @( - '{"TokenLifetimePolicy":{"Version":1,"AccessTokenLifetime":"5:30:00"}}' - ) - displayName = "Contoso token lifetime policy" - isOrganizationDefault = $true + '{"TokenLifetimePolicy":{"Version":1,"AccessTokenLifetime":"5:30:00"}}' +) +displayName = "Contoso token lifetime policy" +isOrganizationDefault = $true } Update-MgPolicyTokenLifetimePolicy -TokenLifetimePolicyId $tokenLifetimePolicyId -BodyParameter $params + ``` This example shows how to use the Update-MgPolicyTokenLifetimePolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.SignIns/v1.0/examples/Update-MgTenantRelationshipMultiTenantOrganization.md b/src/Identity.SignIns/v1.0/examples/Update-MgTenantRelationshipMultiTenantOrganization.md new file mode 100644 index 00000000000..159eb164a4b --- /dev/null +++ b/src/Identity.SignIns/v1.0/examples/Update-MgTenantRelationshipMultiTenantOrganization.md @@ -0,0 +1,16 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +$params = @{ + displayName = "Contoso organization" + description = "Multitenant organization between Contoso, Fabrikam, and Woodgrove Bank" +} + +Update-MgTenantRelationshipMultiTenantOrganization -BodyParameter $params + +``` +This example shows how to use the Update-MgTenantRelationshipMultiTenantOrganization Cmdlet. + diff --git a/src/Identity.SignIns/v1.0/examples/Update-MgTenantRelationshipMultiTenantOrganizationJoinRequest.md b/src/Identity.SignIns/v1.0/examples/Update-MgTenantRelationshipMultiTenantOrganizationJoinRequest.md new file mode 100644 index 00000000000..5fc3ef4ff28 --- /dev/null +++ b/src/Identity.SignIns/v1.0/examples/Update-MgTenantRelationshipMultiTenantOrganizationJoinRequest.md @@ -0,0 +1,30 @@ +### Example 1: Join a multitenant organization + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +$params = @{ + addedByTenantId = "1fd6544e-e994-4de2-9f1b-787b51c7d325" +} + +Update-MgTenantRelationshipMultiTenantOrganizationJoinRequest -BodyParameter $params + +``` +This example will join a multitenant organization + +### Example 2: Reset a failed join request + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +$params = @{ + addedByTenantId = "00000000-0000-0000-0000-000000000000" +} + +Update-MgTenantRelationshipMultiTenantOrganizationJoinRequest -BodyParameter $params + +``` +This example will reset a failed join request + diff --git a/src/Identity.SignIns/v1.0/examples/Update-MgUserAuthenticationEmailMethod.md b/src/Identity.SignIns/v1.0/examples/Update-MgUserAuthenticationEmailMethod.md index 0246c044aee..9d79ac8aef9 100644 --- a/src/Identity.SignIns/v1.0/examples/Update-MgUserAuthenticationEmailMethod.md +++ b/src/Identity.SignIns/v1.0/examples/Update-MgUserAuthenticationEmailMethod.md @@ -1,6 +1,7 @@ ### Example 1: Code snippet ```powershell + Import-Module Microsoft.Graph.Identity.SignIns $params = @{ @@ -8,8 +9,7 @@ $params = @{ } Update-MgUserAuthenticationEmailMethod -UserId $userId -EmailAuthenticationMethodId $emailAuthenticationMethodId -BodyParameter $params + ``` This example shows how to use the Update-MgUserAuthenticationEmailMethod Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.SignIns/v1.0/examples/Update-MgUserAuthenticationPhoneMethod.md b/src/Identity.SignIns/v1.0/examples/Update-MgUserAuthenticationPhoneMethod.md index 0a425c33245..819038fdc29 100644 --- a/src/Identity.SignIns/v1.0/examples/Update-MgUserAuthenticationPhoneMethod.md +++ b/src/Identity.SignIns/v1.0/examples/Update-MgUserAuthenticationPhoneMethod.md @@ -1,6 +1,7 @@ ### Example 1: Code snippet ```powershell + Import-Module Microsoft.Graph.Identity.SignIns $params = @{ @@ -9,8 +10,7 @@ $params = @{ } Update-MgUserAuthenticationPhoneMethod -UserId $userId -PhoneAuthenticationMethodId $phoneAuthenticationMethodId -BodyParameter $params + ``` This example shows how to use the Update-MgUserAuthenticationPhoneMethod Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/NetworkAccess/beta/examples/Invoke-MgBetaEntityNetworkAccessReportSummary.md b/src/NetworkAccess/beta/examples/Invoke-MgBetaEntityNetworkAccessReportSummary.md new file mode 100644 index 00000000000..7430e612a42 --- /dev/null +++ b/src/NetworkAccess/beta/examples/Invoke-MgBetaEntityNetworkAccessReportSummary.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.NetworkAccess + +Invoke-MgBetaEntityNetworkAccessReportSummary + +``` +This example shows how to use the Invoke-MgBetaEntityNetworkAccessReportSummary Cmdlet. + diff --git a/src/NetworkAccess/beta/examples/Invoke-MgBetaTransactionNetworkAccessReportSummary.md b/src/NetworkAccess/beta/examples/Invoke-MgBetaTransactionNetworkAccessReportSummary.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/NetworkAccess/beta/examples/New-MgBetaNetworkAccessConnectivityBranch.md b/src/NetworkAccess/beta/examples/New-MgBetaNetworkAccessConnectivityBranch.md new file mode 100644 index 00000000000..8070e903dcb --- /dev/null +++ b/src/NetworkAccess/beta/examples/New-MgBetaNetworkAccessConnectivityBranch.md @@ -0,0 +1,18 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.NetworkAccess + +$params = @{ + name = "test branch - 11:50" + country = "United States" + region = "East US" + bandwidthCapacity = 500 +} + +New-MgBetaNetworkAccessConnectivityBranch -BodyParameter $params + +``` +This example shows how to use the New-MgBetaNetworkAccessConnectivityBranch Cmdlet. + diff --git a/src/NetworkAccess/beta/examples/New-MgBetaNetworkAccessConnectivityBranchDeviceLink.md b/src/NetworkAccess/beta/examples/New-MgBetaNetworkAccessConnectivityBranchDeviceLink.md new file mode 100644 index 00000000000..e1377e28064 --- /dev/null +++ b/src/NetworkAccess/beta/examples/New-MgBetaNetworkAccessConnectivityBranchDeviceLink.md @@ -0,0 +1,31 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.NetworkAccess + +$params = @{ + name = "device link 1" + ipAddress = "24.123.22.168" + deviceVendor = "intel" + bandwidthCapacityInMbps = "mbps250" + bgpConfiguration = @{ + localIpAddress = "1.128.24.22" + peerIpAddress = "1.128.24.28" + asn = 4 + } + redundancyConfiguration = @{ + zoneLocalIpAddress = "1.128.23.20" + redundancyTier = "zoneRedundancy" + } + tunnelConfiguration = @{ + "@odata.type" = "microsoft.graph.networkAccess.tunnelConfigurationIKEv2Default" + preSharedKey = "/microsoft/keyVault/placeholder" + } +} + +New-MgBetaNetworkAccessConnectivityBranchDeviceLink -BranchSiteId $branchSiteId -BodyParameter $params + +``` +This example shows how to use the New-MgBetaNetworkAccessConnectivityBranchDeviceLink Cmdlet. + diff --git a/src/NetworkAccess/beta/examples/New-MgBetaNetworkAccessConnectivityRemoteNetwork.md b/src/NetworkAccess/beta/examples/New-MgBetaNetworkAccessConnectivityRemoteNetwork.md new file mode 100644 index 00000000000..8fd0d34af9c --- /dev/null +++ b/src/NetworkAccess/beta/examples/New-MgBetaNetworkAccessConnectivityRemoteNetwork.md @@ -0,0 +1,79 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.NetworkAccess + +$params = @{ + name = "Bellevue branch" + region = "canadaEast" +} + +New-MgBetaNetworkAccessConnectivityRemoteNetwork -BodyParameter $params + +``` +This example shows how to use the New-MgBetaNetworkAccessConnectivityRemoteNetwork Cmdlet. + +### Example 2: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.NetworkAccess + +$params = @{ + name = "Bellevue branch w/ fwd profile" + region = "canadaEast" + forwardingProfiles = @( + @{ + id = "1adaf535-1e31-4e14-983f-2270408162bf" + } + ) +} + +New-MgBetaNetworkAccessConnectivityRemoteNetwork -BodyParameter $params + +``` +This example shows how to use the New-MgBetaNetworkAccessConnectivityRemoteNetwork Cmdlet. + +### Example 3: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.NetworkAccess + +$params = @{ + name = "Bellevue branch w/ device link" + region = "canadaEast" + forwardingProfiles = @( + @{ + id = "1adaf535-1e31-4e14-983f-2270408162bf" + } + ) + deviceLinks = @( + @{ + name = "CPE1" + ipAddress = "52.13.21.25" + bandwidthCapacityInMbps = "mbps500" + deviceVendor = "barracudaNetworks" + bgpConfiguration = @{ + localIpAddress = "192.168.1.2" + peerIpAddress = "10.1.1.2" + asn = 65533 + } + redundancyConfiguration = @{ + zoneLocalIpAddress = $null + redundancyTier = "noRedundancy" + } + tunnelConfiguration = @{ + "@odata.type" = "#microsoft.graph.networkaccess.tunnelConfigurationIKEv2Default" + preSharedKey = "test123" + } + } + ) +} + +New-MgBetaNetworkAccessConnectivityRemoteNetwork -BodyParameter $params + +``` +This example shows how to use the New-MgBetaNetworkAccessConnectivityRemoteNetwork Cmdlet. + diff --git a/src/NetworkAccess/beta/examples/Remove-MgBetaNetworkAccessConnectivityBranch.md b/src/NetworkAccess/beta/examples/Remove-MgBetaNetworkAccessConnectivityBranch.md new file mode 100644 index 00000000000..298ea63844e --- /dev/null +++ b/src/NetworkAccess/beta/examples/Remove-MgBetaNetworkAccessConnectivityBranch.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.NetworkAccess + +Remove-MgBetaNetworkAccessConnectivityBranch -BranchSiteId $branchSiteId + +``` +This example shows how to use the Remove-MgBetaNetworkAccessConnectivityBranch Cmdlet. + diff --git a/src/NetworkAccess/beta/examples/Remove-MgBetaNetworkAccessConnectivityBranchDeviceLink.md b/src/NetworkAccess/beta/examples/Remove-MgBetaNetworkAccessConnectivityBranchDeviceLink.md new file mode 100644 index 00000000000..fbda2536120 --- /dev/null +++ b/src/NetworkAccess/beta/examples/Remove-MgBetaNetworkAccessConnectivityBranchDeviceLink.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.NetworkAccess + +Remove-MgBetaNetworkAccessConnectivityBranchDeviceLink -BranchSiteId $branchSiteId -DeviceLinkId $deviceLinkId + +``` +This example shows how to use the Remove-MgBetaNetworkAccessConnectivityBranchDeviceLink Cmdlet. + diff --git a/src/NetworkAccess/beta/examples/Remove-MgBetaNetworkAccessConnectivityRemoteNetworkDeviceLink.md b/src/NetworkAccess/beta/examples/Remove-MgBetaNetworkAccessConnectivityRemoteNetworkDeviceLink.md new file mode 100644 index 00000000000..02a988764ff --- /dev/null +++ b/src/NetworkAccess/beta/examples/Remove-MgBetaNetworkAccessConnectivityRemoteNetworkDeviceLink.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.NetworkAccess + +Remove-MgBetaNetworkAccessConnectivityRemoteNetworkDeviceLink -RemoteNetworkId $remoteNetworkId -DeviceLinkId $deviceLinkId + +``` +This example shows how to use the Remove-MgBetaNetworkAccessConnectivityRemoteNetworkDeviceLink Cmdlet. + diff --git a/src/NetworkAccess/beta/examples/Update-MgBetaNetworkAccessConnectivityBranch.md b/src/NetworkAccess/beta/examples/Update-MgBetaNetworkAccessConnectivityBranch.md new file mode 100644 index 00000000000..4d0e61f0912 --- /dev/null +++ b/src/NetworkAccess/beta/examples/Update-MgBetaNetworkAccessConnectivityBranch.md @@ -0,0 +1,15 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.NetworkAccess + +$params = @{ + name = "My updated branch" +} + +Update-MgBetaNetworkAccessConnectivityBranch -BranchSiteId $branchSiteId -BodyParameter $params + +``` +This example shows how to use the Update-MgBetaNetworkAccessConnectivityBranch Cmdlet. + diff --git a/src/NetworkAccess/beta/examples/Update-MgBetaNetworkAccessConnectivityBranchDeviceLink.md b/src/NetworkAccess/beta/examples/Update-MgBetaNetworkAccessConnectivityBranchDeviceLink.md new file mode 100644 index 00000000000..1d7f2aad8cd --- /dev/null +++ b/src/NetworkAccess/beta/examples/Update-MgBetaNetworkAccessConnectivityBranchDeviceLink.md @@ -0,0 +1,15 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.NetworkAccess + +$params = @{ + name = "Backup Link" +} + +Update-MgBetaNetworkAccessConnectivityBranchDeviceLink -BranchSiteId $branchSiteId -DeviceLinkId $deviceLinkId -BodyParameter $params + +``` +This example shows how to use the Update-MgBetaNetworkAccessConnectivityBranchDeviceLink Cmdlet. + diff --git a/src/NetworkAccess/beta/examples/Update-MgBetaNetworkAccessFilteringProfile.md b/src/NetworkAccess/beta/examples/Update-MgBetaNetworkAccessFilteringProfile.md new file mode 100644 index 00000000000..3f34aa1fac4 --- /dev/null +++ b/src/NetworkAccess/beta/examples/Update-MgBetaNetworkAccessFilteringProfile.md @@ -0,0 +1,15 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.NetworkAccess + +$params = @{ + state = "disabled" +} + +Update-MgBetaNetworkAccessFilteringProfile -FilteringProfileId $filteringProfileId -BodyParameter $params + +``` +This example shows how to use the Update-MgBetaNetworkAccessFilteringProfile Cmdlet. + diff --git a/src/NetworkAccess/beta/examples/Update-MgBetaNetworkAccessForwardingProfile.md b/src/NetworkAccess/beta/examples/Update-MgBetaNetworkAccessForwardingProfile.md new file mode 100644 index 00000000000..b3403edaceb --- /dev/null +++ b/src/NetworkAccess/beta/examples/Update-MgBetaNetworkAccessForwardingProfile.md @@ -0,0 +1,20 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.NetworkAccess + +$params = @{ + associations = @( + @{ + "@odata.type" = "#microsoft.graph.networkaccess.associatedBranch" + branchId = "88e5a488-92c3-45d6-ba56-e5cfa63677e8" + } + ) +} + +Update-MgBetaNetworkAccessForwardingProfile -ForwardingProfileId $forwardingProfileId -BodyParameter $params + +``` +This example shows how to use the Update-MgBetaNetworkAccessForwardingProfile Cmdlet. + diff --git a/src/NetworkAccess/beta/examples/Update-MgBetaNetworkAccessForwardingProfilePolicy.md b/src/NetworkAccess/beta/examples/Update-MgBetaNetworkAccessForwardingProfilePolicy.md new file mode 100644 index 00000000000..3082ba5a797 --- /dev/null +++ b/src/NetworkAccess/beta/examples/Update-MgBetaNetworkAccessForwardingProfilePolicy.md @@ -0,0 +1,16 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.NetworkAccess + +$params = @{ + "@odata.type" = "#microsoft.graph.networkaccess.forwardingPolicyLink" + state = "enabled" +} + +Update-MgBetaNetworkAccessForwardingProfilePolicy -ForwardingProfileId $forwardingProfileId -PolicyLinkId $policyLinkId -BodyParameter $params + +``` +This example shows how to use the Update-MgBetaNetworkAccessForwardingProfilePolicy Cmdlet. + diff --git a/src/NetworkAccess/beta/examples/Update-MgBetaNetworkAccessSettingConditionalAccess.md b/src/NetworkAccess/beta/examples/Update-MgBetaNetworkAccessSettingConditionalAccess.md new file mode 100644 index 00000000000..bf540c20943 --- /dev/null +++ b/src/NetworkAccess/beta/examples/Update-MgBetaNetworkAccessSettingConditionalAccess.md @@ -0,0 +1,16 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.NetworkAccess + +$params = @{ + "@odata.context" = "https://graph.microsoft.com/beta/networkAccess/settings/$metadata#conditionalAccess" + signalingStatus = "disabled" +} + +Update-MgBetaNetworkAccessSettingConditionalAccess -BodyParameter $params + +``` +This example shows how to use the Update-MgBetaNetworkAccessSettingConditionalAccess Cmdlet. + diff --git a/src/NetworkAccess/beta/examples/Update-MgBetaNetworkAccessSettingCrossTenantAccess.md b/src/NetworkAccess/beta/examples/Update-MgBetaNetworkAccessSettingCrossTenantAccess.md new file mode 100644 index 00000000000..c120732ad39 --- /dev/null +++ b/src/NetworkAccess/beta/examples/Update-MgBetaNetworkAccessSettingCrossTenantAccess.md @@ -0,0 +1,16 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.NetworkAccess + +$params = @{ + "@odata.type" = "#microsoft.graph.networkaccess.crossTenantAccessSettings" + networkPacketTaggingStatus = "enabled" +} + +Update-MgBetaNetworkAccessSettingCrossTenantAccess -BodyParameter $params + +``` +This example shows how to use the Update-MgBetaNetworkAccessSettingCrossTenantAccess Cmdlet. + diff --git a/src/NetworkAccess/beta/examples/Update-MgBetaNetworkAccessSettingEnrichedAuditLog.md b/src/NetworkAccess/beta/examples/Update-MgBetaNetworkAccessSettingEnrichedAuditLog.md new file mode 100644 index 00000000000..79a9d502e6a --- /dev/null +++ b/src/NetworkAccess/beta/examples/Update-MgBetaNetworkAccessSettingEnrichedAuditLog.md @@ -0,0 +1,24 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.NetworkAccess + +$params = @{ + "@odata.type" = "#microsoft.graph.networkaccess.enrichedAuditLogs" + sharepoint = @{ + "@odata.type" = "microsoft.graph.networkaccess.enrichedAuditLogsSettings" + } + teams = @{ + "@odata.type" = "microsoft.graph.networkaccess.enrichedAuditLogsSettings" + } + exchange = @{ + "@odata.type" = "microsoft.graph.networkaccess.enrichedAuditLogsSettings" + } +} + +Update-MgBetaNetworkAccessSettingEnrichedAuditLog -BodyParameter $params + +``` +This example shows how to use the Update-MgBetaNetworkAccessSettingEnrichedAuditLog Cmdlet. + diff --git a/src/NetworkAccess/beta/examples/Update-MgBetaNetworkAccessSettingForwardingOption.md b/src/NetworkAccess/beta/examples/Update-MgBetaNetworkAccessSettingForwardingOption.md new file mode 100644 index 00000000000..ddd369c2101 --- /dev/null +++ b/src/NetworkAccess/beta/examples/Update-MgBetaNetworkAccessSettingForwardingOption.md @@ -0,0 +1,15 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.NetworkAccess + +$params = @{ + skipDnsLookupState = "disabled" +} + +Update-MgBetaNetworkAccessSettingForwardingOption -BodyParameter $params + +``` +This example shows how to use the Update-MgBetaNetworkAccessSettingForwardingOption Cmdlet. + diff --git a/src/Reports/v1.0/examples/Get-MgAdminReportSetting.md b/src/Reports/v1.0/examples/Get-MgAdminReportSetting.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Reports/v1.0/examples/Update-MgAdminReportSetting.md b/src/Reports/v1.0/examples/Update-MgAdminReportSetting.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Search/beta/examples/New-MgBetaExternalIndustryDataConnector.md b/src/Search/beta/examples/New-MgBetaExternalIndustryDataConnector.md index 13ad37982f3..2dfd81cbf13 100644 --- a/src/Search/beta/examples/New-MgBetaExternalIndustryDataConnector.md +++ b/src/Search/beta/examples/New-MgBetaExternalIndustryDataConnector.md @@ -5,13 +5,23 @@ Import-Module Microsoft.Graph.Beta.Search $params = @{ - "@odata.type" = "#microsoft.graph.industryData.azureDataLakeConnector" - displayName = "CSV connector" - "sourceSystem@odata.bind" = "https://graph.microsoft.com/beta/external/industryData/sourceSystems('aa050107-5784-4a8e-1876-08daddab21bc')" - fileFormat = @{ - "@odata.type" = "microsoft.graph.industryData.fileFormatReferenceValue" - code = "schoolDataSyncV1" + "@odata.type" = "#microsoft.graph.industryData.oneRosterApiDataConnector" + displayName = "Generic OAuth2 Connector" + "sourceSystem@odata.bind" = "https://graph.microsoft.com/beta/external/industryData/sourceSystems('c93a6e02-aeb7-437f-cc52-08dc3fc158af')" + apiFormat = "oneRoster" + baseUrl = "https://fakeProvider.net/ims/oneroster/v1p1" + apiVersion = "1.1" + credential = @{ + "@odata.type" = "#microsoft.graph.industryData.oAuth2ClientCredential" + displayName = "One Roster API Credentials" + clientId = "530be723-6af3-4952-8658-668fb2598ad7" + clientSecret = "thisIsASecret" + tokenUrl = "https://login.microsoftonline.com/c27f982b-f7ee-4b8b-bb0e-3c55bd1dc02c/oauth2/token" + scope = $null } + isDemographicsEnabled = $false + isFlagsEnabled = $false + isContactsEnabled = $false } New-MgBetaExternalIndustryDataConnector -BodyParameter $params diff --git a/src/Search/beta/examples/New-MgBetaExternalIndustryDataInboundFlow.md b/src/Search/beta/examples/New-MgBetaExternalIndustryDataInboundFlow.md index 2f5dcf98d5e..c9fe2f27448 100644 --- a/src/Search/beta/examples/New-MgBetaExternalIndustryDataInboundFlow.md +++ b/src/Search/beta/examples/New-MgBetaExternalIndustryDataInboundFlow.md @@ -5,7 +5,7 @@ Import-Module Microsoft.Graph.Beta.Search $params = @{ - "@odata.type" = "#microsoft.graph.industryData.inboundApiFlow" + "@odata.type" = "#microsoft.graph.industryData.inboundFileFlow" "dataConnector@odata.bind" = "https://graph.microsoft.com/beta/external/industryData/dataConnectors/51dca0a0-85f6-4478-f526-08daddab2271" dataDomain = "educationRostering" displayName = "Inbound rostering flow" diff --git a/src/Search/beta/examples/Update-MgBetaExternalIndustryDataConnector.md b/src/Search/beta/examples/Update-MgBetaExternalIndustryDataConnector.md index 068120be331..24696d95266 100644 --- a/src/Search/beta/examples/Update-MgBetaExternalIndustryDataConnector.md +++ b/src/Search/beta/examples/Update-MgBetaExternalIndustryDataConnector.md @@ -5,8 +5,8 @@ Import-Module Microsoft.Graph.Beta.Search $params = @{ - "@odata.type" = "microsoft.graph.industryData.azureDataLakeConnector" - displayName = "CSV files from SIS" + "@odata.type" = "microsoft.graph.industryData.oneRosterApiDataConnector" + displayName = "One Roster Connector" } Update-MgBetaExternalIndustryDataConnector -IndustryDataConnectorId $industryDataConnectorId -BodyParameter $params diff --git a/src/Search/beta/examples/Update-MgBetaExternalIndustryDataInboundFlow.md b/src/Search/beta/examples/Update-MgBetaExternalIndustryDataInboundFlow.md index 86a8a458b2f..99168322581 100644 --- a/src/Search/beta/examples/Update-MgBetaExternalIndustryDataInboundFlow.md +++ b/src/Search/beta/examples/Update-MgBetaExternalIndustryDataInboundFlow.md @@ -5,7 +5,7 @@ Import-Module Microsoft.Graph.Beta.Search $params = @{ - "@odata.type" = "#microsoft.graph.industryData.inboundApiFlow" + "@odata.type" = "#microsoft.graph.industryData.inboundFileFlow" displayName = "Updated flow name" } diff --git a/src/Sites/beta/examples/Get-MgBetaSite.md b/src/Sites/beta/examples/Get-MgBetaSite.md index eb5b687d85c..4cd9c250e8c 100644 --- a/src/Sites/beta/examples/Get-MgBetaSite.md +++ b/src/Sites/beta/examples/Get-MgBetaSite.md @@ -4,18 +4,7 @@ Import-Module Microsoft.Graph.Beta.Sites -Get-MgBetaSite -Property "siteCollection,webUrl" -Filter "siteCollection/root ne null" - -``` -This example shows how to use the Get-MgBetaSite Cmdlet. - -### Example 2: Code snippet - -```powershell - -Import-Module Microsoft.Graph.Beta.Sites - -Get-MgBetaSite +Get-MgBetaSite -Search '"{query}"' ``` This example shows how to use the Get-MgBetaSite Cmdlet. diff --git a/src/Sites/beta/examples/Get-MgBetaSiteContentModelAppliedDrive.md b/src/Sites/beta/examples/Get-MgBetaSiteContentModelAppliedDrive.md new file mode 100644 index 00000000000..05ff4984962 --- /dev/null +++ b/src/Sites/beta/examples/Get-MgBetaSiteContentModelAppliedDrive.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Sites + +Get-MgBetaSiteContentModelAppliedDrive -SiteId $siteId -ContentModelId $contentModelId + +``` +This example shows how to use the Get-MgBetaSiteContentModelAppliedDrive Cmdlet. + diff --git a/src/Sites/beta/examples/Get-MgBetaSiteContentModelByName.md b/src/Sites/beta/examples/Get-MgBetaSiteContentModelByName.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Sites/beta/examples/Get-MgBetaSiteContentModelGetByNameAppliedDrive.md b/src/Sites/beta/examples/Get-MgBetaSiteContentModelGetByNameAppliedDrive.md new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/src/Sites/beta/examples/Get-MgBetaSiteContentModelGetByNameAppliedDrive.md @@ -0,0 +1 @@ + diff --git a/src/Sites/beta/examples/Remove-MgBetaSiteContentModelFromDrive.md b/src/Sites/beta/examples/Remove-MgBetaSiteContentModelFromDrive.md new file mode 100644 index 00000000000..008780be3c9 --- /dev/null +++ b/src/Sites/beta/examples/Remove-MgBetaSiteContentModelFromDrive.md @@ -0,0 +1,15 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Sites + +$params = @{ + driveId = "b!HEq8Q8ZfAkuMECqSaQFnJVwNMbAGLHhHnXMz1C32pozpolsoEg-MT47fBTiYcbnd" +} + +Remove-MgBetaSiteContentModelFromDrive -SiteId $siteId -ContentModelId $contentModelId -BodyParameter $params + +``` +This example shows how to use the Remove-MgBetaSiteContentModelFromDrive Cmdlet. + diff --git a/src/Sites/beta/examples/Remove-MgBetaSiteContentModelGetByNameFromDrive.md b/src/Sites/beta/examples/Remove-MgBetaSiteContentModelGetByNameFromDrive.md new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/src/Sites/beta/examples/Remove-MgBetaSiteContentModelGetByNameFromDrive.md @@ -0,0 +1 @@ + diff --git a/src/Teams/v1.0/examples/Get-MgChatPermissionGrant.md b/src/Teams/v1.0/examples/Get-MgChatPermissionGrant.md new file mode 100644 index 00000000000..f1217dc6fb1 --- /dev/null +++ b/src/Teams/v1.0/examples/Get-MgChatPermissionGrant.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Teams + +Get-MgChatPermissionGrant -ChatId $chatId + +``` +This example shows how to use the Get-MgChatPermissionGrant Cmdlet. + diff --git a/src/Teams/v1.0/examples/Get-MgTeamPermissionGrant.md b/src/Teams/v1.0/examples/Get-MgTeamPermissionGrant.md new file mode 100644 index 00000000000..4429b172d5c --- /dev/null +++ b/src/Teams/v1.0/examples/Get-MgTeamPermissionGrant.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Teams + +Get-MgTeamPermissionGrant -TeamId $teamId + +``` +This example shows how to use the Get-MgTeamPermissionGrant Cmdlet. + diff --git a/src/Teams/v1.0/examples/Get-MgTeamScheduleShift.md b/src/Teams/v1.0/examples/Get-MgTeamScheduleShift.md index 65782ecf31a..a1f8c45fc2a 100644 --- a/src/Teams/v1.0/examples/Get-MgTeamScheduleShift.md +++ b/src/Teams/v1.0/examples/Get-MgTeamScheduleShift.md @@ -4,7 +4,7 @@ Import-Module Microsoft.Graph.Teams -Get-MgTeamScheduleShift -TeamId $teamId -ShiftId $shiftId +Get-MgTeamScheduleShift -TeamId $teamId -Filter "sharedShift/startDateTime ge 2019-03-11T00:00:00.000Z and sharedShift/endDateTime le 2019-03-18T00:00:00.000Z and draftShift/startDateTime ge 2019-03-11T00:00:00.000Z and draftShift/endDateTime le 2019-03-18T00:00:00.000Z" ``` This example shows how to use the Get-MgTeamScheduleShift Cmdlet. diff --git a/src/Teams/v1.0/examples/Get-MgTeamworkDeletedChat.md b/src/Teams/v1.0/examples/Get-MgTeamworkDeletedChat.md new file mode 100644 index 00000000000..bdfa7363d36 --- /dev/null +++ b/src/Teams/v1.0/examples/Get-MgTeamworkDeletedChat.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Teams + +Get-MgTeamworkDeletedChat -DeletedChatId $deletedChatId + +``` +This example shows how to use the Get-MgTeamworkDeletedChat Cmdlet. + diff --git a/src/Teams/v1.0/examples/Get-MgTeamworkDeletedTeam.md b/src/Teams/v1.0/examples/Get-MgTeamworkDeletedTeam.md new file mode 100644 index 00000000000..bf6e57848ef --- /dev/null +++ b/src/Teams/v1.0/examples/Get-MgTeamworkDeletedTeam.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Teams + +Get-MgTeamworkDeletedTeam + +``` +This example shows how to use the Get-MgTeamworkDeletedTeam Cmdlet. + diff --git a/src/Teams/v1.0/examples/Get-MgTeamworkTeamAppSetting.md b/src/Teams/v1.0/examples/Get-MgTeamworkTeamAppSetting.md new file mode 100644 index 00000000000..39d6349a5e4 --- /dev/null +++ b/src/Teams/v1.0/examples/Get-MgTeamworkTeamAppSetting.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Teams + +Get-MgTeamworkTeamAppSetting + +``` +This example shows how to use the Get-MgTeamworkTeamAppSetting Cmdlet. + diff --git a/src/Teams/v1.0/examples/Get-MgUserTeamwork.md b/src/Teams/v1.0/examples/Get-MgUserTeamwork.md index e69de29bb2d..42cd6097305 100644 --- a/src/Teams/v1.0/examples/Get-MgUserTeamwork.md +++ b/src/Teams/v1.0/examples/Get-MgUserTeamwork.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Teams + +Get-MgUserTeamwork -UserId $userId + +``` +This example shows how to use the Get-MgUserTeamwork Cmdlet. + diff --git a/src/Teams/v1.0/examples/Invoke-MgArchiveTeamChannel.md b/src/Teams/v1.0/examples/Invoke-MgArchiveTeamChannel.md new file mode 100644 index 00000000000..81e7feadf28 --- /dev/null +++ b/src/Teams/v1.0/examples/Invoke-MgArchiveTeamChannel.md @@ -0,0 +1,22 @@ +### Example 1: Archive a channel + +```powershell + +Import-Module Microsoft.Graph.Teams + +Invoke-MgArchiveTeamChannel -TeamId $teamId -ChannelId $channelId + +``` +This example will archive a channel + +### Example 2: Archive a channel when the team is archived + +```powershell + +Import-Module Microsoft.Graph.Teams + +Invoke-MgArchiveTeamChannel -TeamId $teamId -ChannelId $channelId + +``` +This example will archive a channel when the team is archived + diff --git a/src/Teams/v1.0/examples/Invoke-MgArchiveTeamPrimaryChannel.md b/src/Teams/v1.0/examples/Invoke-MgArchiveTeamPrimaryChannel.md new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/src/Teams/v1.0/examples/Invoke-MgArchiveTeamPrimaryChannel.md @@ -0,0 +1 @@ + diff --git a/src/Teams/v1.0/examples/Invoke-MgArchiveTeamworkDeletedTeamChannel.md b/src/Teams/v1.0/examples/Invoke-MgArchiveTeamworkDeletedTeamChannel.md new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/src/Teams/v1.0/examples/Invoke-MgArchiveTeamworkDeletedTeamChannel.md @@ -0,0 +1 @@ + diff --git a/src/Teams/v1.0/examples/Invoke-MgUnarchiveTeamChannel.md b/src/Teams/v1.0/examples/Invoke-MgUnarchiveTeamChannel.md new file mode 100644 index 00000000000..4c564ac5535 --- /dev/null +++ b/src/Teams/v1.0/examples/Invoke-MgUnarchiveTeamChannel.md @@ -0,0 +1,22 @@ +### Example 1: Unarchive a channel + +```powershell + +Import-Module Microsoft.Graph.Teams + +Invoke-MgUnarchiveTeamChannel -TeamId $teamId -ChannelId $channelId + +``` +This example will unarchive a channel + +### Example 2: Unarchive a channel when the team is archived + +```powershell + +Import-Module Microsoft.Graph.Teams + +Invoke-MgUnarchiveTeamChannel -TeamId $teamId -ChannelId $channelId + +``` +This example will unarchive a channel when the team is archived + diff --git a/src/Teams/v1.0/examples/Invoke-MgUnarchiveTeamPrimaryChannel.md b/src/Teams/v1.0/examples/Invoke-MgUnarchiveTeamPrimaryChannel.md new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/src/Teams/v1.0/examples/Invoke-MgUnarchiveTeamPrimaryChannel.md @@ -0,0 +1 @@ + diff --git a/src/Teams/v1.0/examples/Invoke-MgUnarchiveTeamworkDeletedTeamChannel.md b/src/Teams/v1.0/examples/Invoke-MgUnarchiveTeamworkDeletedTeamChannel.md new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/src/Teams/v1.0/examples/Invoke-MgUnarchiveTeamworkDeletedTeamChannel.md @@ -0,0 +1 @@ + diff --git a/src/Teams/v1.0/examples/New-MgChatInstalledApp.md b/src/Teams/v1.0/examples/New-MgChatInstalledApp.md index 312412c9ba0..4fb3483d08b 100644 --- a/src/Teams/v1.0/examples/New-MgChatInstalledApp.md +++ b/src/Teams/v1.0/examples/New-MgChatInstalledApp.md @@ -1,4 +1,4 @@ -### Example 1: Code snippet +### Example 1: Install app in a chat ```powershell @@ -11,5 +11,40 @@ $params = @{ New-MgChatInstalledApp -ChatId $chatId -BodyParameter $params ``` -This example shows how to use the New-MgChatInstalledApp Cmdlet. +This example will install app in a chat + +### Example 2: Install app in a chat and consent to the resource-specific permissions required by the app + +```powershell + +Import-Module Microsoft.Graph.Teams + +$params = @{ + "teamsApp@odata.bind" = "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps/2b524e28-95ce-4c9b-9773-4a5bd6ec1770" + consentedPermissionSet = @{ + resourceSpecificPermissions = @( + @{ + permissionValue = "OnlineMeeting.ReadBasic.Chat" + permissionType = "Delegated" + } + @{ + permissionValue = "OnlineMeetingIncomingAudio.Detect.Chat" + permissionType = "Delegated" + } + @{ + permissionValue = "ChatMember.Read.Chat" + permissionType = "Application" + } + @{ + permissionValue = "ChatMessage.Read.Chat" + permissionType = "Application" + } + ) + } +} + +New-MgChatInstalledApp -ChatId $chatId -BodyParameter $params + +``` +This example will install app in a chat and consent to the resource-specific permissions required by the app diff --git a/src/Teams/v1.0/examples/New-MgChatMember.md b/src/Teams/v1.0/examples/New-MgChatMember.md index b66e7cede0e..71790916c75 100644 --- a/src/Teams/v1.0/examples/New-MgChatMember.md +++ b/src/Teams/v1.0/examples/New-MgChatMember.md @@ -1,4 +1,4 @@ -### Example 1: Code snippet +### Example 1: Add a single member to a chat and specify the timespan for the conversation history ```powershell @@ -9,16 +9,35 @@ $params = @{ "user@odata.bind" = "https://graph.microsoft.com/v1.0/users/8b081ef6-4792-4def-b2c9-c363a1bf41d5" visibleHistoryStartDateTime = [System.DateTime]::Parse("2019-04-18T23:51:43.255Z") roles = @( - "owner" - ) + "owner" +) } New-MgChatMember -ChatId $chatId -BodyParameter $params ``` -This example shows how to use the New-MgChatMember Cmdlet. +This example will add a single member to a chat and specify the timespan for the conversation history -### Example 2: Code snippet +### Example 2: Add a single member to a Microsoft Teams chat, sharing no chat history + +```powershell + +Import-Module Microsoft.Graph.Teams + +$params = @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users/8b081ef6-4792-4def-b2c9-c363a1bf41d5" + roles = @( + "owner" +) +} + +New-MgChatMember -ChatId $chatId -BodyParameter $params + +``` +This example will add a single member to a microsoft teams chat, sharing no chat history + +### Example 3: Add a single member to a Microsoft Teams chat, sharing the whole history of the chat ```powershell @@ -29,16 +48,16 @@ $params = @{ "user@odata.bind" = "https://graph.microsoft.com/v1.0/users/8b081ef6-4792-4def-b2c9-c363a1bf41d5" visibleHistoryStartDateTime = [System.DateTime]::Parse("0001-01-01T00:00:00Z") roles = @( - "owner" - ) + "owner" +) } New-MgChatMember -ChatId $chatId -BodyParameter $params ``` -This example shows how to use the New-MgChatMember Cmdlet. +This example will add a single member to a microsoft teams chat, sharing the whole history of the chat -### Example 3: Code snippet +### Example 4: Add a single member to a chat using user principal name ```powershell @@ -49,16 +68,16 @@ $params = @{ "user@odata.bind" = "https://graph.microsoft.com/v1.0/users/jacob@contoso.com" visibleHistoryStartDateTime = [System.DateTime]::Parse("2019-04-18T23:51:43.255Z") roles = @( - "owner" - ) + "owner" +) } New-MgChatMember -ChatId $chatId -BodyParameter $params ``` -This example shows how to use the New-MgChatMember Cmdlet. +This example will add a single member to a chat using user principal name -### Example 4: Code snippet +### Example 5: Add an in-tenant guest to a chat, sharing no chat history ```powershell @@ -68,16 +87,16 @@ $params = @{ "@odata.type" = "#microsoft.graph.aadUserConversationMember" "user@odata.bind" = "https://graph.microsoft.com/v1.0/users/8ba98gf6-7fc2-4eb2-c7f2-aef9f21fd98g" roles = @( - "guest" - ) + "guest" +) } New-MgChatMember -ChatId $chatId -BodyParameter $params ``` -This example shows how to use the New-MgChatMember Cmdlet. +This example will add an in-tenant guest to a chat, sharing no chat history -### Example 5: Code snippet +### Example 6: Add an out-of-tenant external user to a chat, sharing no chat history ```powershell @@ -87,13 +106,13 @@ $params = @{ "@odata.type" = "#microsoft.graph.aadUserConversationMember" "user@odata.bind" = "https://graph.microsoft.com/v1.0/users/82af01c5-f7cc-4a2e-a728-3a5df21afd9d" roles = @( - "owner" - ) - tenantId = "4dc1fe35-8ac6-4f0d-904a-7ebcd364bea1" + "owner" +) +tenantId = "4dc1fe35-8ac6-4f0d-904a-7ebcd364bea1" } New-MgChatMember -ChatId $chatId -BodyParameter $params ``` -This example shows how to use the New-MgChatMember Cmdlet. +This example will add an out-of-tenant external user to a chat, sharing no chat history diff --git a/src/Teams/v1.0/examples/New-MgChatMessage.md b/src/Teams/v1.0/examples/New-MgChatMessage.md index 933452944f5..ab12e34e1c0 100644 --- a/src/Teams/v1.0/examples/New-MgChatMessage.md +++ b/src/Teams/v1.0/examples/New-MgChatMessage.md @@ -1,4 +1,36 @@ -### Example 1: Code snippet +### Example 1: Send inline images along with the message + +```powershell + +Import-Module Microsoft.Graph.Teams + +$params = @{ + body = @{ + contentType = "html" + content = "
+
+ +
+ + +
+
" + } + hostedContents = @( + @{ + "@microsoft.graph.temporaryId" = "1" + contentBytes = [System.Text.Encoding]::ASCII.GetBytes("iVBORw0KGgoAAAANSUhEUgAAASkAAAEpCAYAAADPmdSCAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAhr0lEQVR4Xu3d76tdV50GcP+EvJu3/QuGvJgXxSk0Y8QwzZRmCG2lQkjrkM4UjOmLgmAt0bQGLqipo1ghmIhSRBIMbV+UpmiIRSYV9IqmHaqNgRJbUGqoA30xMGe+z+1ZNyfrPuec/WN9115r7yfw6Y917zlnn+9e68ne66y9z8dms1kjTzzxxC6zxxw3h80d7Pekfti3832MfX3A7GK/J5IDbYxZJz1mbppZ5JJRBx4J7Etzar5vY8fZY0S80cZF6JxRZ41dN7vZY6Uetg8RUJvzfbrMWfZYEU+0MbBOicN+1lljOMo6zJ5Dymf7bvd8H7J9G9vDnkPEC20MrEMuO/Rf5hR7HimX7TOcyrN9ucwF9jwiXmhjYB0Sc06so66ieaoKYB+Zs/N91sYl9nwiXmhjgA4ZddCmNE9VMNs3OI1fN/+0jEJKsqKNATpk1EHb0DxVgWyfYBlJ0/knRiElWdHGAB0y6qBd6BOhQti+aDv/xCikJCvaGKBDRh20K5xaaJ5qIKi96TL/xCikJCvaGKBDRh20D5xiaJ4qM9TcdJ1/YhRSkhVtDNAhow6aguapMrFa45KWPvNPjEJKsqKNATpk1EFT0TyVM6vxuisFulJISVa0MUCHjDpoSjgF0UXKiVlNMf90YV5jDwopyYo2BuiQUQdNDaciuswiEatl6vknRiElWdHGAB0y6qBejrHXl+ashh7zT4xCSrKijQE6ZNRBPeEjci1T6MDq1vYayz4UUpIVbQzQIaMO6k3zVC1YrTD/lHsfKaQkK9oYoENGHTQHzVM1YDXC/BOukWQ19KSQkqxoY4AOGXXQnHQnyCWsNri1b475J0YhJVnRxgAdMuqgueGjdM1TLbB65Jx/YhRSkhVtDNAhow46BMxTTf5yGqvBEPNPjEJKsqKNATpk1EGHglObA2wb27hx40bnSXl7bKcjuq6PW2Tvvc3tfb0ppCQr2higQ0YddGid56ksLM6am6b1Udn8sZumVeDg9+eP63wZkL1nzD+xWgxFISVZ0cYAHTLqoCVoPU+FkDCzuVZBFT22cVDh9+a/Hx7bOqjsfaa6vUpKCinJijYG6JBRBy1F49sTIxwWgiJoFFT2O+yxa4MKP5//XvzYRkFl7w3zT96Xt3SlkJKsaGOADhl10JJgjmblbV8QClFILFoZVPazVY9dGlRon/+cPQ5WBpW9p7639/WmkJKsaGOADhl10BLRr9FCGEThwNCgsrYmj90RVPj/eTv7/UU0qOy9pLi9rzeFlGRFGwN0yKiDlgrbuR0YCIEoFFa5Lajsv9s8djuo8O/5/7PfY7aDCttuSpx/YhRSkhVtDNAhow5asq15Kgz+KAya2Aoq0+WxCKY75v9mP18FwdTn66WGoJCSrGhjgA4ZddCiPf300x9cv379f0kYFOub3/zm/7D3UrDkIXXz4393hzlrLk3IBaNrVBugjQE6ZNRBi7exsTG7du0aDYTSnDlzhr6HwiULKRukIZxmE4bAUlitQBsDdMiog1ahhqCqNKCgd0jZoFQ47aSwWoI2BuiQUQetRslBVXFAQeeQskGocFpPYRWhjQE6ZNRBq1JiUFUeUNA6pGzQKZzaU1jN0cYAHTLqoNUpKahGEFDQOKRskCmc+pt8WNHGAB0y6qBVKiGoRhJQsDakbFApnNKbbFjRxgAdMuqg1RoyqEYUULA0pGwQDRlOGMRdXDfs+UqFbZ5UWNHGAB0y6qBVu3LlCg0Rb2xbKrYjpGzQDBlOeN1eX95hjz9sFFaFoo0BOmTUQaumkEpiO6RskFQdTjF7PoVVgWhjgA4ZddCqKaSSwKAYVTjF7PkVVgWhjQE6ZNRBq6aQ6ufpo/8xe/1f/uG9aHDk4h5OMXs9hVUBaGNgHVMhlQDblpognC4f+DgbEDlkD6eYvb7CakC0MbAOqpBKgG1LDaYeTjHbHoXVAGhjYB1VIZUA25aSKZxWs+1TWGWEgrM3JJJb8eEUs+2tMayqo5CSoVUXTjHbfoWVn0sKKRlK9eEUs/ejsEpn+/RUISW5jS6cYvb+FFbd7Zg7U0hJLqMPp5i9X4VVc0sn9hVS4m1y4RSz96+wWm7tp44KKfEy+XCKWT0UVrc0XhKhkJLU3jR/zzqbfMTqM+WwahxOgUJKPNw0xw39Knr5iNVnSmHVOpwChZR4Ulg1YPUZc1h1DqdAISU5KKwasPqMKax6h1OgkJKcFFYNWH1qDqtk4RQopGQICqsGrD41hVXycAoUUjIkhVUDVp+Sw8otnAKFlJRAYdWA1aeksHIPp0AhJSVRWMkOCikpkcJKtimkpGQKK1FISRUUVhOmkJKaKKwmSCElNVJYTYhCSmqmsJoAhBR2MnXx4N3XX3zwUzPm9L/unT2w5x+r8vA9n5r9273/nB3blpI9s/+f6D6HAb/qahWEFdbtTAHu0zWpUKaNwRMrvnfvyJEjszvvvFNG6IEHHqD7HP7zyCEWEuIPizgPs3E6drQxsE6pkJoghVRRJhtOAW0MrFMqpCZIIVWEyYdTQBsD65QKqQlSSA1K4RShjYF1SoXUBCmkBqFwWoI2BtYpFVITpJDKSuG0Bm0MrFMqpCZoVUid+vfDH0aDTLpRODVEGwPrlEtDKvjc5z43e+ihh2Z33XUX7fC1uvfee2c//OEPZ7/+9a9nN27c2PLWW29ttX3605+mj6kV9h2C6bHHHqP7OIK1OmO6F3duCqeWaGOADhl10KUef/zx2f79++kgqM0XvvCF7WBa5rvf/S59bG327t279RcN26dLXAr9A4NtPujYYJTbKZw6oo0BOmTUQdeqPaiaBFSAoyr2HLVAQOEvF7YfV9gOqQCDbz4I2eCcOoVTT7QxQIeMOuha6PS1nvrhFI+F0SpHjx6lz1WDlkdQwY6QCjAY54OSDdapUTglQhsDdMiogzaCOSo2KEqHIyMWRKu89tpr9LlKd99999F918DSkAowOOeDlA3esVM4JUYbA3TIqIM2gr+h2cAoHQuhJnAExp6vZI888gjddw2sDakAg3U+aNlgHhuFkxPaGKBDRh20MTYwSoZP7FgANfHZz36WPmfJOsxFBY1DKsDgnQ9iNrhrp3ByRhsDdMiogzbGBkbJPvOZz9AAagKPZc9ZMrbPGmodUoEN5j1jw96npEUbA3TIqIM2dvfdd9PBUSocDbEAauLEiRP0OUvG9llDnUNKpAvaGKBDRh20sX379tHBUao+IfX1r3+dPmfJ2D5rSCElWdHGAB0y6qCN1bZeCkHDAqiJ2hZ24i8Qts8aUkhJVrQxQIeMOmhjuMyCDZBSdVl+ELzyyiv0OUuFv0DYPmtIISVZ0cYAHTLqoI3hI242QEqF9U4sgJpiz1kqrGNj+6whhZRkRRsDdMiogzaGj7jZACnRJz7xCRo8bdR00XHDC4mXUUhJVrQxQIeMOmgrtcxLtbleb5la5qXwqSvbVy1smj1z+iopcUcbA+uEvULq0KFDdKCUBnNKLHjawC1d2HOXZtW9onpCX4FT5rhBiO1m/UqkDdoYzDsd65CNlb5eqs9K8xiOyNhrlKTHSvM+cPR1wYTw0hGYNEYbA+tMvUOq9KOpn/zkJzRwuij9aKrHRcUerhsE1zGjIy5ZijYG1nl6hxSUejTVZwHnMqUeTeH2OQMdRTV10yi0ZAfaGFhnSRJSpd4Pve+yAwa3GManhez1htRz2cEQcKSF+a0DrG/KdNDGwDpIkpCCgwcP0sEzFHwax0ImBZxCstccSs/FmyXAUdZZo8CaINoYWKdIFlKA29WyQZRbiiUH65Ry0XHHWwSXLASW7kAwEbQxsI6QNKQwWLyDCpPDTz311Oz8+fOzzc3N2QcffLDt/Rdenr2378Gs/nLy2du2Adv08ssvzzY2Nra2lb2HVDAP1XPhZulwSohPDO9g/VfGgTYGtvOThhR4BRWCKQ4lJmdQxQHF/P73v98KrE9+8pP0fXU1gYCKYdJdR1cjRBsD2+nJQwoQVKlWoyOcMNBZACyTI6iaBNSid999d/btb387SViN8BSvDRxdHTZaizUStDGwHe0SUkGfL2zA3TCbHDkt4xlUbQNqEQL30Ucfpe+5CXxAwWo9QZi7wqmgwqpytDGwHewaUoAvbWh7gzycHrEB3pZHUPUJqEXf//736XtfBjXEUg9W44lTWFWONga2Y91DKsAAa3IKiAlxNqi7ShlUqQIqwDqudad/CCes6mc1ldsorCpFGwPbodlCKsCRFU4D2dFV6oAKUgRV6oAKcEobBxXmnHBa1/HLPadOYVUZ2hjYjsweUjEcYeEGevjYng3iVPoElVdABVevXt06WtLpXFIIK30VVQVoY2A7cfCQgnPnztHBm1qXoPIOqODnP/85rY30tnV/LNb/pQy0MbCdN3hIfe1rX6OD1kuboMoVUMHp06dpjSQJrLPSKWCBaGNgO23wkGq7BiqFJkGVO6Dgz3/+8+xLX/oSrZMkgVPAY2wsyHBoY2A7bNCQwje4sMGaw6qgGiKggpdeeonWSpJCv9ftYgpBG4P5zmI7MYt33nmHDtRcWFANGVCBjqayOc7GheRFGwPbSYOF1JBHUYsWg6qEgAIdTWWFiXVdwDwg2hjMdxDbce5++9vf0gE6BARVKQEFOMJkNRM3Wq4wINoItlNwzx62w9w988wzdHDKLfjUk9VOXOkTwAHQRtsRgwUUlHKqVzKd8g0Gd1nQpHpGOxpsBwwaUICFi2xgyi04HWa1k2x0+pfJbf9jhR88oKCk+aiSsdpJVmcXx4/42P4PFDzaAYNhA1J20lKEIuDDJc1TOdr6hxW5mIACNiBlp29961u0fpKd5qkcFRdQwAak7KSQKgqWKehCZQcIqcHWQi3DBqTspJAqkibUE0NI7TJFBRUbkLKTQqpYCqqEtv5hRS0qqNiAlJ2w6JXVT4qgT/4S2f4PKyqCqoj5qaEvLK4Fq50URUGVwI4GK+ypqNDZaZ3UerjPFqudFEdB1RNttMLiyxVZwbPAJR9sYMotup1wVRRUPdBGsMLuNvhYlRXdVe5bBtcI1zey2kmxFFQd0cbACnuHGWRCXfNSq2m1eZUUVB3QxpgVN/s81auvvkoHp3ww++Uvf0lrJlXQ3T5boo2MFfeAyXb6p3tKLaf1UdXTOqoWaOMyVlyc/mW7pbBu2bKTbtEyGgqqhmjjOlbgY1HBXeBoCl/jxAbrVOkoajRwVqKLkhugjU2gwMb9qErLEW7BPB2rkVQLQaUveViDNrZhRcZRletclRZ3fvTlC/pEb5R0P6o1aGNbVmTMVeEm9Wwn9IbBOeXTPrx3ffHCqF1g40o+Qhu7smLvMbgBGNsRvWCQTjWoTp8+TWsio6KlCUvQxr6s4LisJvkp4NSCCu9VK8snRTfNI2hjClZw3FXhuEkaVggqXFzLBrUXBAWOZnIGpE7xJkkT6QRtTMmKnjysMEeVYw0VJqsXgwJLInIEJD4o0CT5ZF1i42jKaKMHK37ysMKaIa9r/LD0YVlQnDt3zuWoSqd3Mqf5qQW00ZPtAITVyws7pDcM7BRhhZDAWqQmd7xEgCHIUoQVth3Bp6MnWaD5qTna6M12AI6o2I7pBadmCJk2gYWQwQW7CLquIYH5Kpx+tgksbCMeo0/uZAl8Sq71U4Y2erPiu4TUIgQOTgdxhIIjnhjCwWNiGkdheG72moBtanKkJmJOsfEzNbTRmxXfPaRERmLyp3200ZsVXiEl0szkT/toozcrukJKpLlJn/bRRm9W9CQh9ZWvfGX25JNP0p+JjMxkT/toozcreO+QOnPmzOzGjRtbNjc3tyal0baxsUF/X6Rym2wsTQFt9GYF7xVSiwG1zJUrV7aC6/nnn589++yzsxMnTtDnygFHe9gGbAu2Cdv25ptvKlClrWNsPI0dbfRmxe4cUk0CahUcdSEkLl68ODt//vyW5557bitEgqankIuPgfB8IYjwWmwbgmvXrimopA1crTG5SXTa6M0K3TmkMKgxuNmgrw1CTHNq0tLkvhaLNnqzQvc63RtDUCmgpIdJ3SmBNnqzIveeOK85qBRQ0tOk7pRAG71ZkXuHFNQYVAooSWQySxJoozcrcJKQgpqCSgElCU3maIo2erMCJwspqCGoFFDiYBJHU7TRmxU3aUhByUGlgBInkziaoo3erLjJQwouX75MQ2JoWMTJtlckgdEfTdFGb1bY5CGFxZksIEqBRahsu0V6Gv3RFG30ZoVNGlKlB1SgoBInu9k4Gwva6M2KmiykagmoQEElDka9Cp02erOiJgmp2gIqUFCJg9GuQqeN3qygvUOq1oAKFFSS2Gi/Bos2ekNBowK3UntABQoqSegmG2tjQBu9WUE7hxRuhcIGfK1wixf2PkU6OMzGW+1oozcrZueQwqJILI5kA742OCJk71Gko1EuR6CN3qyYvU73xhBUCihxMroJdNrozQrZe+K85qBSQImj0X2zDG30ZoXsHVJQY1ApoMTZdTbmakYbvVkhk4QU1BRUCijJZFTX89FGb1bEZCEFNQSVAkoyGtUKdNrozYqYNKSg5KBSQElmo1ozRRu9WRGThxRgzRELiaGxbRVxdoCNvRrRRm9WQIWUiK/RfMpHG71ZARVSIr5G8ykfbfRmBVRIifgbxX2maKM3K55CSsTfMTb+akMbvVnxFFIi/kZxLR9t9GbFU0iJ5LGLjcGa0EZvVjiFlEge1S9FoI3erHAKKZE8ql+KQBu9WeEUUiJ5VD8vRRu9WeEUUiKZxOOvNrTRmxVOISWST9V3RaCN3qxoCimRfKpeL0UbvVnRFFIi+Vxg47AWtNGbFU0hJZLPJhuHtaCN3qxoCimRjOIxWBPa6M2KppASyavayXPa6M0KppASyavaLw6ljd6sYAopkbyOs7FYA9roDQWLCpiEQkpkqWpXntNGb1YwhZRIXtV+wkcbvVnBFFIimcXjsBa00ZsVTCElkl+V95aijd6sWAopkfyqXIZAG71ZsRRSIvkppJqyYimkRPKrchkCbfSGYkXFS0IhJbKSQqopFCsqXhIKKZGVzrHxWDra6M2KpZASye+/2XgsHW30ZsVSSInkV+VXr9NGb1YshZRIfu+x8Vg62ujNiqWQEsnvr2w8lo42erNiKaREBhCPxRrQRm9WLIWUyADisVgD2ujNiqWQEhlAPBZrQBu9WbEUUiIDiMdiDWijNyuWQkpkAPFYrAFt9GSF2m1uLhYuFYVUGo899hhtl1Go7l7ntNGLFcgtoEAhlYZCavSqCira6MEK4xpQoJBKQyE1CdUEFW1MzQriHlCgkEpDITUZVQQVbUzJCpEloEAhlcajjz5K22WUig8q2piKFSBbQIFCKo1Dhw7RdhmtooOKNqZgbzxrQIFCKg2F1CQVG1S0MQV709ejIrhTSKVx//3303YZvSLvgU4bU7A3rCOpObatJTt48CBtl1E7y8ZxCWhjKvbGNSdl2LaW7J577qHtMlrFBhTQxpSsAPp0j2xryfbt2zd7/PHH6c9kdIoOKKCNqVkhsgSVQioNhNSRI0foz2RUig8ooI0erCDuQaWQSgMh9eCDD9KfyWhUEVBAG71YYVyDSiGVBkJq//799GcyCtUEFNBGT1Ygt6BSSKWBkLrrrrvoz6R6VQUU0EZPViSFVOEQUnfeeaeu4RsnhdQqViCd7lUghNRDDz1Efy7V0+keY4XRxHklQkjh3+znMgqaOF9kBXEPKFBIpRFCCrReatSqCCramJIVIktAgUIqjcWQ0sXGo1d8UNHGVKwA2QIKFFJpLIaUTvkmoeigoo0p2BvPGlCgkEpjMaTg6NGj9PdkVIoNKtqYgr3pS1ER3Cmk0ohDSqvPJ2Nyt2rZZTYXCuBOIZVGHFJa2DkJ07vpHdgbzxpUCqk04pACTaCP2jRvHxxYAbIF1cbGBg2JobFtLRkLqT179tDflepN+4sYAitEtqBiITE0tp0lYyEFOpoaneIDCmijBytIlqBiITE0tp0lWxZSOpoalSoCCmijFyuMe1BduXKFBsWQ2HaWbFlIgY6mRqGagALa6MkK5BpUFy9epEExJLadJVsVUjia0qUyVSsioGxc7DZ7zGFzbP7fdAnEjoYcrFDHo8Ilc+bMGRoUQ2LbWbJVIQVaN1WveCzmZGPhgLlgboaxscSmQXDtwuPok3mzYrmFVImf8LHtLNm6kMK6Ka1Cr1M8FnOwMYBwur44JhpCmB2nT+rNiuUWUvDmm2+yNzwYto0lWxdSgN9hj5WyxWPRk/X9XQZHTnRcNEWf3JsVyzWkSpuXYttYsiYhBbopXn3isejF+j0CCqdtdEy0QV/AmxXLNaSee+45+maHwraxZE1DSqd99YnHogfr88kCCuiLeLNiuYYUlHTKx7avZE1DCvbu3UufQ8oUj0UP1ucvxWOgD/oi3qxY7iF1/vx5+oaHwLavZG1CCg4ePEifR8oTj8XUrL8fj/t/X/SFvFmx3EPqxIkT9A0PgW1fydqGFGiRZx3isZiS9XWc5q1bXtAafTFvViz3kIJSJtDZtpWsS0iBvgKrfPFYTMn6evKjKKAv5s2KlSWkSjmaYttWsq4hhYl0BVXZ4rGYkvX1Lmuh1qIv5s2KlSWkoISjKbZdJesaUoCJdF02U654LKZi/RyXudD+3xd9QW9WrGwh9eSTT86uXbtG33wubLtK1iekQEFVrngspmL93OVUD+gLerNiZQspeP755+mbz4VtU8n6hhQoqMoUj8VUrJ+fjft9KvQFvVmxsoYUDHkLF7Y9JUsRUqCgKk88FlOxfp50bdQi+oLerFjZQ2rI0z62PSVLFVKgyfSyxGMxFevnCqkUhvqiBrYtJUsZUoCgOnLkCH0tySsei6lYP1dIpTLE/abYdpQsdUgFuiB5ePFYTMX6efJFnAF9QW9WrMFCCnIvS2DbUDKvkIL77rtP81QDisdiCtbHsdKc9v0U6It6s2INGlKQM6jY65fMM6QAtyDWPNUw4rGYgvVx3NSO9v0U6It6s2INHlKQK6jYa5fMO6QC3YY4v3gspmB93G35AdAX9WbFKiKkIMccFXvdkuUKKcAyBU2q5xOPxb6sf7ue6gF9YW9WrGJCCnCTPM/lCew1S5YzpALNVeURj8W+rH+7rTQP6At7s2IVFVKAi5E3Nzdpkfpir1eyIUIKsFQBp4AKKz/xWOzD+rbb9XqL6It7s2IVF1IBbpaX+qiKvU7JhgqpQGHlajcbk21Zv056i+BV6AZ4s0IVG1KAo6rLly/TgnXBXqNkQ4dUgLDCXT91H/WkjrMx2Zb1a9fJ8kV0A7yhUFHhioQV6imu+WPPXbJSQmrR/v37Z4888gjdXmnlutn60s0urD/jCCpbQAHdEG9WpCpCKkBY9VmuwJ6zZCWGVICjK0yyK7B6OcvG5TrWlzEHleUUbxHdGG9WpKpCKsBFyrjtS9ujK/ZcJSs5pBYhsHCEhfura3Foa42Dyvowjp7cP8Vbhm6UNytQlSG1CIGFpQsvvfTS2tBijy9ZLSEVQ2hh2zHpjiMtBddaOPU7zMao9VsEE1aSZz21Y3ZsXEr2AncYvFGk8CmDK6UvXb169ToGNuA0Cp+oYVHlxsYGK2QVEFqnT5/eej8/+9nPtr73LwjvFZPxeK84GsMpJHueEniGFJ7785///Ox73/vell/84hcUaoSff/WrX92aOMeCz64UVo389eTJk//1ne98Z/OnP/3p22+99dZ7NlZpaORGw6Ure0Kk72GD73/vfFU0BjQ6KT5lI8UsRjiS6vNFpFibhecoKaBTh9QXv/jF2Y9+9KPZr371K1qDJkqs09jhL14cPLzxxhtudzhogoZNW/ZEe4zLYSECC4ViRRwCghODxWOFOsIO4YzOwV47lxQhdf/9928dCfUJ8GXwnDgiHbpOU4Ijfzu6+pDtD280dJqyJ0A4ud3sahE65pBhhXDKdUEyAnDIQdgnpBBOL774In1fqQ1dp6lBnXONgUU0fNaxB2KuCad09Ek94bA/53wOdgwGAtsWbxiEQwRz15DCkZPHEeY6eE0cgbL3IumhT7L94IWG0Cr2oGNm0HNUwCmX99+gmP/wOF1pC6e8Oefn2obUww8/3Gu+KRX8BVb6POZY4C8Ftg880CBi7JezrzRdx7NT5twJTeBoARP1bFtTaxNSJ0+epNs7lKGOPqco5aVjq9BAitkvIqCyrzRtAp0y9Sc+Q5x3N5VjADYNqVxzT13gFJ29N0kHZzI5Tu9pKC2yX8JSeJfveE8pxeBF0XP97dAHQpRtfypNQqrkgAq86yR55qdoMAX2C5ggH3z+qam+p0OY+2HPWyLPAbgupGoIqEBB5c/7aIqGE9gPiz3FW6bPqV/Jp3jLeJ36rQqpmgIq0KmfL3yIxeqeyCkaUGA/zLL+KTUEVdtP/YZaYpCCx3KMZSFV2iR5G7k+dJgi9EFW8wRwkLRrWUANdsVzCjhtY8VkHAucRZdQXoeFFJYZsNevBeqk5Ql+WM17wjTT1l1EWUBluW+xtyaL+zC4S1gH1VebUG6ChVQJ66D6Sl0nucVhHG3fnYGFVFXzUMs0+ZvT+Vw6q5SnM3FIYSU5e80aaWW6j8QfOp1azKQ4oHAHA/agKq36ZAcBxh5TK/xNlvK0LwQUrsVD4LPXrJHH6bEkDakdN+NbDCh8mlfNcoOmlk0s1/hp3jqpPsX68pe/vB1SNX6at44+7UsvUUjRu4Vu/4f9wqiOogIszowLOrajqABHCfF77eIHP/jB9lEUe53a6WgqPVbnlpbeznj7P+yXil9V3lU8NzXGo6ig79qpb3zjG9shdfbsWfoaY6C5qXSwNpHVuIWV91vf+of9Eu4LxR48CouH9/gbdExzLDFcdL3Ygdp64YUXtkNqzHXCHB57/9Jez4vxb5skZ7b+Yb9Y1N0NUlvskDmuNRpan/VAf/rTn7ZCCrf8Zc89JroVcRr4i5HVdw3Mf9MvgYht/WP+APZEoxE6ZA0XEPfV9VQGyxjwByE1xgnzmCbQ++u4GBrLnBp/3TsCahSLN9cJA3fMpzAB+7Cgibffftv6xEchNYZFruv0PTWWTp/q4VujWn2DMkIKd9pkTzYqGLgJJviq0OVTPsxFhT8XLlygzztGrBbSTMu5KBw97bHuRYNoldHPRwU4MpjCfFTQZr4Fn+gt/nn11Vfpc46RxwXaU4D+1fCsBFNJx6xb0QBqAiFV5d0Ouqj5bgdtNb1MBgH14YcfWl+49ec3v/kNfc4x0lKE9hoGFMIJNypodWrHIKTYC4xSx08hqtRkUhhBFgcU/rzxxhv0OcdIk+ft4Mjzj3/84/+xWs5hvSUWhvcOp0AhNVKrBt9TTz01e+WVV2z/8z/vvPMOfc4x0p07m8H6whVnIjhqwrRR40/s2lBIjRTu8BB3NIQTJsjff/992/fL/0wppHT7ltUQTpjL/cMf/vC3qHaYCMcndZ0mw9uYVEhdvXqVto8RAhmnc4Cjpt/97ne2v5v9UUhNExYB43QOfvzjH7//+uuvv2undn+x/vCa1QqBhJUA7qF0u9nH/h+sBaOnOz4IxQAAAABJRU5ErkJggg==") + contentType = "image/png" + } + ) +} + +New-MgChatMessage -ChatId $chatId -BodyParameter $params + +``` +This example will send inline images along with the message + +### Example 2: Send a message with an emoji ```powershell @@ -14,5 +46,5 @@ $params = @{ New-MgChatMessage -ChatId $chatId -BodyParameter $params ``` -This example shows how to use the New-MgChatMessage Cmdlet. +This example will### Example 2: send a message with an emoji diff --git a/src/Teams/v1.0/examples/New-MgChatTab.md b/src/Teams/v1.0/examples/New-MgChatTab.md index ccad58b6a64..6a74801454c 100644 --- a/src/Teams/v1.0/examples/New-MgChatTab.md +++ b/src/Teams/v1.0/examples/New-MgChatTab.md @@ -1,6 +1,7 @@ ### Example 1: Code snippet ```powershell + Import-Module Microsoft.Graph.Teams $params = @{ @@ -15,8 +16,7 @@ $params = @{ } New-MgChatTab -ChatId $chatId -BodyParameter $params + ``` This example shows how to use the New-MgChatTab Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Teams/v1.0/examples/New-MgTeamChannelMessage.md b/src/Teams/v1.0/examples/New-MgTeamChannelMessage.md index aee806427d0..faec8482e61 100644 --- a/src/Teams/v1.0/examples/New-MgTeamChannelMessage.md +++ b/src/Teams/v1.0/examples/New-MgTeamChannelMessage.md @@ -1,4 +1,4 @@ -### Example 1: Code snippet +### Example 1: Send a Hello World message in a channel ```powershell @@ -13,9 +13,9 @@ $params = @{ New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params ``` -This example shows how to use the New-MgTeamChannelMessage Cmdlet. +This example will send a hello world message in a channel -### Example 2: Code snippet +### Example 2: @mentions a user in a channel message ```powershell @@ -44,9 +44,51 @@ $params = @{ New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params ``` -This example shows how to use the New-MgTeamChannelMessage Cmdlet. +This example @mentions a user in a channel message -### Example 3: Code snippet +### Example 3: Send a message containing cards + +```powershell + +Import-Module Microsoft.Graph.Teams + +$params = @{ + subject = $null + body = @{ + contentType = "html" + content = "" + } + attachments = @( + @{ + id = "74d20c7f34aa4a7fb74e2b30004247c5" + contentType = "application/vnd.microsoft.card.thumbnail" + contentUrl = $null + content = '{ + "title": "This is an example of posting a card", + "subtitle": "

This is the subtitle

", + "text": "Here is some body text.
\r\nAnd a hyperlink.
\r\nAnd below that is some buttons:", + "buttons": [ + { + "type": "messageBack", + "title": "Login to FakeBot", + "text": "login", + "displayText": "login", + "value": "login" + } + ] +}' + name = $null + thumbnailUrl = $null + } + ) +} + +New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params + +``` +This example will send a message containing cards + +### Example 4: Send a message with file attachment in it ```powershell @@ -70,9 +112,34 @@ $params = @{ New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params ``` -This example shows how to use the New-MgTeamChannelMessage Cmdlet. +This example will send a message with file attachment in it -### Example 4: Code snippet +### Example 5: Send a message that includes a file attachment using a file share link + +```powershell + +Import-Module Microsoft.Graph.Teams + +$params = @{ + body = @{ + contentType = "html" + content = "Testing with file share link. " + } + attachments = @( + @{ + id = "668f7fa8-8129-4de7-b32b-fe1b442e6ef1" + contentType = "reference" + contentUrl = "https://teamsgraph-my.sharepoint.com/:w:/g/personal/test_teamsgraph_onmicrosoft_com/Eah_j2YpgedNsyv-G0QubvEBma6Sd_76UtYkXwoJ-nYVEg?e=0H2Ibm" + } + ) +} + +New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params + +``` +This example will send a message that includes a file attachment using a file share link + +### Example 6: Send a card with inline images ```powershell @@ -190,9 +257,9 @@ $params = @{ New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params ``` -This example shows how to use the New-MgTeamChannelMessage Cmdlet. +This example will send a card with inline images -### Example 5: Code snippet +### Example 7: @mention a channel in a channel message ```powershell @@ -221,9 +288,9 @@ $params = @{ New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params ``` -This example shows how to use the New-MgTeamChannelMessage Cmdlet. +This example will @mention a channel in a channel message -### Example 6: Code snippet +### Example 8: @mention a team in a channel message ```powershell @@ -256,9 +323,9 @@ $params = @{ New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params ``` -This example shows how to use the New-MgTeamChannelMessage Cmdlet. +This example will @mention a team in a channel message -### Example 7: Code snippet +### Example 9: Send message that contains cards that are attributed to a Teams app ```powershell @@ -299,5 +366,46 @@ $params = @{ New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params ``` -This example shows how to use the New-MgTeamChannelMessage Cmdlet. +This example will### Example 9: send message that contains cards that are attributed to a teams app + +### Example 10: Send a message that contains an announcement + +```powershell + +Import-Module Microsoft.Graph.Teams + +$params = @{ + subject = "Announcement Subheading" + body = @{ + contentType = "text" + content = "Announcement text" + } + attachments = @( + @{ + id = "d7ddbf876ae340c3a03bada395ec7da7" + contentType = "application/vnd.microsoft.teams.messaging-announcementBanner" + contentUrl = $null + content = '{"title":"Announcement heading","cardImageType":"uploadedImage","cardImageDetails":{"uploadedImageDetail":{"originalImage":{"source":"../hostedContents/1/$value","width":1379,"height":268,"croppedWidth":918.0,"croppedHeight":178.4075416968818,"leftMargin":0.0,"topMargin":90.7962291515591,"imageContentType":"image/png"},"croppedImage":{"source":"../hostedContents/2/$value"}}}}' + name = $null + thumbnailUrl = $null + } + ) + hostedContents = @( + @{ + "@microsoft.graph.temporaryId" = "1" + contentBytes = [System.Text.Encoding]::ASCII.GetBytes("iVBORw0KGgoAAAANSUhEUgAABWMAAAEMCAYAAAChuaTsAAAAAXNSR0IArs4") + contentType = "image/png" + } + @{ + "@microsoft.graph.temporaryId" = "2" + contentBytes = [System.Text.Encoding]::ASCII.GetBytes("iVBORw0KGgoAAAANSUhEUgAAA5YAAAB4CAYAAACJrW0RAAAAAXNSR0IArs4") + contentType = "image/png" + } + ) +} + +New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params + +``` +This example will### Example 10: send a message that contains an announcement diff --git a/src/Teams/v1.0/examples/New-MgTeamChannelTab.md b/src/Teams/v1.0/examples/New-MgTeamChannelTab.md index e69de29bb2d..7bc1222748d 100644 --- a/src/Teams/v1.0/examples/New-MgTeamChannelTab.md +++ b/src/Teams/v1.0/examples/New-MgTeamChannelTab.md @@ -0,0 +1,22 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Teams + +$params = @{ + displayName = "My Contoso Tab" + "teamsApp@odata.bind" = "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps/06805b9e-77e3-4b93-ac81-525eb87513b8" + configuration = @{ + entityId = "2DCA2E6C7A10415CAF6B8AB6661B3154" + contentUrl = "https://www.contoso.com/Orders/2DCA2E6C7A10415CAF6B8AB6661B3154/tabView" + websiteUrl = "https://www.contoso.com/Orders/2DCA2E6C7A10415CAF6B8AB6661B3154" + removeUrl = "https://www.contoso.com/Orders/2DCA2E6C7A10415CAF6B8AB6661B3154/uninstallTab" + } +} + +New-MgTeamChannelTab -TeamId $teamId -ChannelId $channelId -BodyParameter $params + +``` +This example shows how to use the New-MgTeamChannelTab Cmdlet. + diff --git a/src/Teams/v1.0/examples/New-MgTeamInstalledApp.md b/src/Teams/v1.0/examples/New-MgTeamInstalledApp.md index 526b75ef842..b90eada5dd5 100644 --- a/src/Teams/v1.0/examples/New-MgTeamInstalledApp.md +++ b/src/Teams/v1.0/examples/New-MgTeamInstalledApp.md @@ -1,4 +1,4 @@ -### Example 1: Code snippet +### Example 1: Install an app in a team ```powershell @@ -11,9 +11,9 @@ $params = @{ New-MgTeamInstalledApp -TeamId $teamId -BodyParameter $params ``` -This example shows how to use the New-MgTeamInstalledApp Cmdlet. +This example will install an app in a team -### Example 2: Code snippet +### Example 2: Install an app in a team with consent to the resource-specific permissions required by the app ```powershell @@ -38,5 +38,5 @@ $params = @{ New-MgTeamInstalledApp -TeamId $teamId -BodyParameter $params ``` -This example shows how to use the New-MgTeamInstalledApp Cmdlet. +This example will install an app in a team with consent to the resource-specific permissions required by the app diff --git a/src/Teams/v1.0/examples/New-MgTeamScheduleSchedulingGroup.md b/src/Teams/v1.0/examples/New-MgTeamScheduleSchedulingGroup.md index f72d9f02812..fbfc007cee9 100644 --- a/src/Teams/v1.0/examples/New-MgTeamScheduleSchedulingGroup.md +++ b/src/Teams/v1.0/examples/New-MgTeamScheduleSchedulingGroup.md @@ -8,9 +8,9 @@ $params = @{ displayName = "Cashiers" isActive = $true userIds = @( - "c5d0c76b-80c4-481c-be50-923cd8d680a1" - "2a4296b3-a28a-44ba-bc66-0274b9b95851" - ) + "c5d0c76b-80c4-481c-be50-923cd8d680a1" +"2a4296b3-a28a-44ba-bc66-0274b9b95851" +) } New-MgTeamScheduleSchedulingGroup -TeamId $teamId -BodyParameter $params diff --git a/src/Teams/v1.0/examples/New-MgTeamTagMember.md b/src/Teams/v1.0/examples/New-MgTeamTagMember.md index 8e25b092b48..a68ce8de62e 100644 --- a/src/Teams/v1.0/examples/New-MgTeamTagMember.md +++ b/src/Teams/v1.0/examples/New-MgTeamTagMember.md @@ -1,6 +1,7 @@ ### Example 1: Code snippet ```powershell + Import-Module Microsoft.Graph.Teams $params = @{ @@ -8,8 +9,7 @@ $params = @{ } New-MgTeamTagMember -TeamId $teamId -TeamworkTagId $teamworkTagId -BodyParameter $params + ``` This example shows how to use the New-MgTeamTagMember Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Teams/v1.0/examples/New-MgUserTeamworkInstalledApp.md b/src/Teams/v1.0/examples/New-MgUserTeamworkInstalledApp.md index a40e027299a..411adc993d0 100644 --- a/src/Teams/v1.0/examples/New-MgUserTeamworkInstalledApp.md +++ b/src/Teams/v1.0/examples/New-MgUserTeamworkInstalledApp.md @@ -1,4 +1,4 @@ -### Example 1: Code snippet +### Example 1: Install an app for a user ```powershell @@ -11,5 +11,28 @@ $params = @{ New-MgUserTeamworkInstalledApp -UserId $userId -BodyParameter $params ``` -This example shows how to use the New-MgUserTeamworkInstalledApp Cmdlet. +This example will install an app for a user + +### Example 2: Install an app for a user and consent to the resource-specific permissions required by the app + +```powershell + +Import-Module Microsoft.Graph.Teams + +$params = @{ + "teamsApp@odata.bind" = "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps/12345678-9abc-def0-123456789a" + consentedPermissionSet = @{ + resourceSpecificPermissions = @( + @{ + permissionValue = "TeamsActivity.Send.User" + permissionType = "Application" + } + ) + } +} + +New-MgUserTeamworkInstalledApp -UserId $userId -BodyParameter $params + +``` +This example will install an app for a user and consent to the resource-specific permissions required by the app diff --git a/src/Teams/v1.0/examples/Remove-MgTeamMember.md b/src/Teams/v1.0/examples/Remove-MgTeamMember.md index 09f77633150..95728651903 100644 --- a/src/Teams/v1.0/examples/Remove-MgTeamMember.md +++ b/src/Teams/v1.0/examples/Remove-MgTeamMember.md @@ -1,11 +1,11 @@ ### Example 1: Code snippet ```powershell + Import-Module Microsoft.Graph.Teams Remove-MgTeamMember -TeamId $teamId -ConversationMemberId $conversationMemberId + ``` This example shows how to use the Remove-MgTeamMember Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Teams/v1.0/examples/Remove-MgTeamTagMember.md b/src/Teams/v1.0/examples/Remove-MgTeamTagMember.md index 3e42ddf4bd2..28ada3b0029 100644 --- a/src/Teams/v1.0/examples/Remove-MgTeamTagMember.md +++ b/src/Teams/v1.0/examples/Remove-MgTeamTagMember.md @@ -1,11 +1,11 @@ ### Example 1: Code snippet ```powershell + Import-Module Microsoft.Graph.Teams Remove-MgTeamTagMember -TeamId $teamId -TeamworkTagId $teamworkTagId -TeamworkTagMemberId $teamworkTagMemberId + ``` This example shows how to use the Remove-MgTeamTagMember Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Teams/v1.0/examples/Set-MgGroupTeam.md b/src/Teams/v1.0/examples/Set-MgGroupTeam.md new file mode 100644 index 00000000000..810204a53f9 --- /dev/null +++ b/src/Teams/v1.0/examples/Set-MgGroupTeam.md @@ -0,0 +1,26 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Teams + +$params = @{ + memberSettings = @{ + allowCreatePrivateChannels = $true + allowCreateUpdateChannels = $true + } + messagingSettings = @{ + allowUserEditMessages = $true + allowUserDeleteMessages = $true + } + funSettings = @{ + allowGiphy = $true + giphyContentRating = "strict" + } +} + +Set-MgGroupTeam -GroupId $groupId -BodyParameter $params + +``` +This example shows how to use the Set-MgGroupTeam Cmdlet. + diff --git a/src/Teams/v1.0/examples/Set-MgTeamPhotoContent.md b/src/Teams/v1.0/examples/Set-MgTeamPhotoContent.md index e69de29bb2d..5e52b4d15e1 100644 --- a/src/Teams/v1.0/examples/Set-MgTeamPhotoContent.md +++ b/src/Teams/v1.0/examples/Set-MgTeamPhotoContent.md @@ -0,0 +1,13 @@ +### Example 1: Update the photo of a team + +```powershell + +Import-Module Microsoft.Graph.Teams + +$params = Binary data for the image + +Set-MgTeamPhotoContent -TeamId $teamId -BodyParameter $params + +``` +This example will update the photo of a team + diff --git a/src/Teams/v1.0/examples/Set-MgTeamSchedule.md b/src/Teams/v1.0/examples/Set-MgTeamSchedule.md new file mode 100644 index 00000000000..d0fd5c216c0 --- /dev/null +++ b/src/Teams/v1.0/examples/Set-MgTeamSchedule.md @@ -0,0 +1,16 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Teams + +$params = @{ + enabled = $true + timeZone = "America/Chicago" +} + +Set-MgTeamSchedule -TeamId $teamId -BodyParameter $params + +``` +This example shows how to use the Set-MgTeamSchedule Cmdlet. + diff --git a/src/Teams/v1.0/examples/Update-MgAppCatalogTeamAppDefinition.md b/src/Teams/v1.0/examples/Update-MgAppCatalogTeamAppDefinition.md index e69de29bb2d..8b137891791 100644 --- a/src/Teams/v1.0/examples/Update-MgAppCatalogTeamAppDefinition.md +++ b/src/Teams/v1.0/examples/Update-MgAppCatalogTeamAppDefinition.md @@ -0,0 +1 @@ + diff --git a/src/Teams/v1.0/examples/Update-MgTeamChannelMember.md b/src/Teams/v1.0/examples/Update-MgTeamChannelMember.md index 2cd5cb91e0d..92e714a2eb6 100644 --- a/src/Teams/v1.0/examples/Update-MgTeamChannelMember.md +++ b/src/Teams/v1.0/examples/Update-MgTeamChannelMember.md @@ -7,8 +7,8 @@ Import-Module Microsoft.Graph.Teams $params = @{ "@odata.type" = "#microsoft.graph.aadUserConversationMember" roles = @( - "owner" - ) + "owner" +) } Update-MgTeamChannelMember -TeamId $teamId -ChannelId $channelId -ConversationMemberId $conversationMemberId -BodyParameter $params diff --git a/src/Teams/v1.0/examples/Update-MgTeamMember.md b/src/Teams/v1.0/examples/Update-MgTeamMember.md index 15daf30f085..23080e1ea2f 100644 --- a/src/Teams/v1.0/examples/Update-MgTeamMember.md +++ b/src/Teams/v1.0/examples/Update-MgTeamMember.md @@ -7,8 +7,8 @@ Import-Module Microsoft.Graph.Teams $params = @{ "@odata.type" = "#microsoft.graph.aadUserConversationMember" roles = @( - "owner" - ) + "owner" +) } Update-MgTeamMember -TeamId $teamId -ConversationMemberId $conversationMemberId -BodyParameter $params diff --git a/src/Teams/v1.0/examples/Update-MgTeamPhoto.md b/src/Teams/v1.0/examples/Update-MgTeamPhoto.md index e69de29bb2d..8b137891791 100644 --- a/src/Teams/v1.0/examples/Update-MgTeamPhoto.md +++ b/src/Teams/v1.0/examples/Update-MgTeamPhoto.md @@ -0,0 +1 @@ + diff --git a/src/Users.Actions/beta/examples/Remove-MgBetaUserCalendarPermanent.md b/src/Users.Actions/beta/examples/Remove-MgBetaUserCalendarPermanent.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Users.Actions/beta/examples/Remove-MgBetaUserContactFolderChildFolderContactPermanent.md b/src/Users.Actions/beta/examples/Remove-MgBetaUserContactFolderChildFolderContactPermanent.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Users.Actions/beta/examples/Remove-MgBetaUserContactFolderChildFolderPermanent.md b/src/Users.Actions/beta/examples/Remove-MgBetaUserContactFolderChildFolderPermanent.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Users.Actions/beta/examples/Remove-MgBetaUserContactFolderContactPermanent.md b/src/Users.Actions/beta/examples/Remove-MgBetaUserContactFolderContactPermanent.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Users.Actions/beta/examples/Remove-MgBetaUserContactFolderPermanent.md b/src/Users.Actions/beta/examples/Remove-MgBetaUserContactFolderPermanent.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Users.Actions/beta/examples/Remove-MgBetaUserContactPermanent.md b/src/Users.Actions/beta/examples/Remove-MgBetaUserContactPermanent.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Users.Actions/beta/examples/Remove-MgBetaUserDriveItemCheckout.md b/src/Users.Actions/beta/examples/Remove-MgBetaUserDriveItemCheckout.md new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/src/Users.Actions/beta/examples/Remove-MgBetaUserDriveItemCheckout.md @@ -0,0 +1 @@ + diff --git a/src/Users.Actions/beta/examples/Remove-MgBetaUserDriveRootCheckout.md b/src/Users.Actions/beta/examples/Remove-MgBetaUserDriveRootCheckout.md new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/src/Users.Actions/beta/examples/Remove-MgBetaUserDriveRootCheckout.md @@ -0,0 +1 @@ + diff --git a/src/Users.Actions/beta/examples/Remove-MgBetaUserEventInstancePermanent.md b/src/Users.Actions/beta/examples/Remove-MgBetaUserEventInstancePermanent.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Users.Actions/beta/examples/Remove-MgBetaUserEventPermanent.md b/src/Users.Actions/beta/examples/Remove-MgBetaUserEventPermanent.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Users.Actions/beta/examples/Remove-MgBetaUserMailFolderChildFolderMessagePermanent.md b/src/Users.Actions/beta/examples/Remove-MgBetaUserMailFolderChildFolderMessagePermanent.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Users.Actions/beta/examples/Remove-MgBetaUserMailFolderChildFolderPermanent.md b/src/Users.Actions/beta/examples/Remove-MgBetaUserMailFolderChildFolderPermanent.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Users.Actions/beta/examples/Remove-MgBetaUserMailFolderMessagePermanent.md b/src/Users.Actions/beta/examples/Remove-MgBetaUserMailFolderMessagePermanent.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Users.Actions/beta/examples/Remove-MgBetaUserMailFolderPermanent.md b/src/Users.Actions/beta/examples/Remove-MgBetaUserMailFolderPermanent.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Users.Actions/beta/examples/Remove-MgBetaUserMessagePermanent.md b/src/Users.Actions/beta/examples/Remove-MgBetaUserMessagePermanent.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Users.Actions/beta/examples/Remove-MgBetaUserOutlookTaskFolderPermanent.md b/src/Users.Actions/beta/examples/Remove-MgBetaUserOutlookTaskFolderPermanent.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Users.Actions/beta/examples/Remove-MgBetaUserOutlookTaskFolderTaskPermanent.md b/src/Users.Actions/beta/examples/Remove-MgBetaUserOutlookTaskFolderTaskPermanent.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Users.Actions/beta/examples/Remove-MgBetaUserOutlookTaskGroupTaskFolderPermanent.md b/src/Users.Actions/beta/examples/Remove-MgBetaUserOutlookTaskGroupTaskFolderPermanent.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Users.Actions/beta/examples/Remove-MgBetaUserOutlookTaskGroupTaskFolderTaskPermanent.md b/src/Users.Actions/beta/examples/Remove-MgBetaUserOutlookTaskGroupTaskFolderTaskPermanent.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Users.Actions/beta/examples/Remove-MgBetaUserOutlookTaskPermanent.md b/src/Users.Actions/beta/examples/Remove-MgBetaUserOutlookTaskPermanent.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Users.Actions/beta/examples/Start-MgBetaUserSolutionWorkingTimeScheduleWorkingTime.md b/src/Users.Actions/beta/examples/Start-MgBetaUserSolutionWorkingTimeScheduleWorkingTime.md new file mode 100644 index 00000000000..8869e5df85c --- /dev/null +++ b/src/Users.Actions/beta/examples/Start-MgBetaUserSolutionWorkingTimeScheduleWorkingTime.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Users.Actions + +Start-MgBetaUserSolutionWorkingTimeScheduleWorkingTime -UserId $userId + +``` +This example shows how to use the Start-MgBetaUserSolutionWorkingTimeScheduleWorkingTime Cmdlet. + diff --git a/src/Users.Actions/beta/examples/Stop-MgBetaUserSolutionWorkingTimeScheduleWorkingTime.md b/src/Users.Actions/beta/examples/Stop-MgBetaUserSolutionWorkingTimeScheduleWorkingTime.md new file mode 100644 index 00000000000..61814820ed4 --- /dev/null +++ b/src/Users.Actions/beta/examples/Stop-MgBetaUserSolutionWorkingTimeScheduleWorkingTime.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Users.Actions + +Stop-MgBetaUserSolutionWorkingTimeScheduleWorkingTime -UserId $userId + +``` +This example shows how to use the Stop-MgBetaUserSolutionWorkingTimeScheduleWorkingTime Cmdlet. + diff --git a/src/Users.Functions/beta/examples/Get-MgBetaUserCloudPcRemoteActionResult.md b/src/Users.Functions/beta/examples/Get-MgBetaUserCloudPcRemoteActionResult.md new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/src/Users.Functions/beta/examples/Get-MgBetaUserCloudPcRemoteActionResult.md @@ -0,0 +1 @@ + diff --git a/src/Users.Functions/beta/examples/Invoke-MgBetaCreationUserAuthenticationFido2MethodOption.md b/src/Users.Functions/beta/examples/Invoke-MgBetaCreationUserAuthenticationFido2MethodOption.md new file mode 100644 index 00000000000..24e5a59daf3 --- /dev/null +++ b/src/Users.Functions/beta/examples/Invoke-MgBetaCreationUserAuthenticationFido2MethodOption.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Users.Functions + +Invoke-MgBetaCreationUserAuthenticationFido2MethodOption -UserId $userId + +``` +This example shows how to use the Invoke-MgBetaCreationUserAuthenticationFido2MethodOption Cmdlet. + diff --git a/src/Users/v1.0/examples/Update-MgUserSettingItemInsight.md b/src/Users/v1.0/examples/Update-MgUserSettingItemInsight.md new file mode 100644 index 00000000000..a12d6ba06a4 --- /dev/null +++ b/src/Users/v1.0/examples/Update-MgUserSettingItemInsight.md @@ -0,0 +1,15 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Users + +$params = @{ + isEnabled = "false" +} + +Update-MgUserSettingItemInsight -UserId $userId -BodyParameter $params + +``` +This example shows how to use the Update-MgUserSettingItemInsight Cmdlet. +