From 8471071f97506df2daa4a89f04cefda249b096da Mon Sep 17 00:00:00 2001 From: Microsoft Graph DevX Tooling Date: Fri, 26 May 2023 04:55:40 +0000 Subject: [PATCH] Updating examples --- ...aApplicationFederatedIdentityCredential.md | 12 +- ...aApplicationFederatedIdentityCredential.md | 12 +- ...aApplicationFederatedIdentityCredential.md | 12 +- ...gApplicationFederatedIdentityCredential.md | 12 +- ...gApplicationFederatedIdentityCredential.md | 12 +- ...gApplicationFederatedIdentityCredential.md | 12 +- .../examples/Get-MgBetaUserCalendarGroup.md | 6 +- .../Get-MgBetaUserCalendarPermission.md | 6 +- .../beta/examples/Get-MgBetaUserEvent.md | 28 +- .../Remove-MgBetaUserCalendarGroup.md | 6 +- .../Remove-MgBetaUserCalendarPermission.md | 6 +- .../beta/examples/Remove-MgBetaUserEvent.md | 28 +- .../Update-MgBetaUserCalendarGroup.md | 6 +- .../Update-MgBetaUserCalendarPermission.md | 6 +- .../beta/examples/Update-MgBetaUserEvent.md | 28 +- .../v1.0/examples/Get-MgUserCalendarGroup.md | 6 +- .../examples/Get-MgUserCalendarPermission.md | 6 +- src/Calendar/v1.0/examples/Get-MgUserEvent.md | 28 +- .../examples/Remove-MgUserCalendarGroup.md | 6 +- .../Remove-MgUserCalendarPermission.md | 6 +- .../v1.0/examples/Remove-MgUserEvent.md | 28 +- .../examples/Update-MgUserCalendarGroup.md | 6 +- .../Update-MgUserCalendarPermission.md | 6 +- .../v1.0/examples/Update-MgUserEvent.md | 28 +- .../beta/examples/Get-MgBetaSubscription.md | 6 +- .../examples/Remove-MgBetaSubscription.md | 6 +- .../examples/Update-MgBetaSubscription.md | 6 +- .../v1.0/examples/Get-MgSubscription.md | 6 +- .../v1.0/examples/Remove-MgSubscription.md | 6 +- .../v1.0/examples/Update-MgSubscription.md | 6 +- .../examples/Get-MgBetaUserOnlineMeeting.md | 45 +- .../Remove-MgBetaUserOnlineMeeting.md | 45 +- .../Update-MgBetaUserOnlineMeeting.md | 45 +- .../v1.0/examples/Get-MgUserOnlineMeeting.md | 45 +- .../Get-MgUserOnlineMeetingAttendeeReport.md | 39 ++ .../examples/Remove-MgUserOnlineMeeting.md | 45 +- .../examples/Update-MgUserOnlineMeeting.md | 45 +- .../examples/Get-MgBetaPrintTaskDefinition.md | 9 +- .../Get-MgBetaPrintTaskDefinitionTask.md | 9 +- .../Remove-MgBetaPrintTaskDefinition.md | 9 +- .../Update-MgBetaPrintTaskDefinition.md | 9 +- .../v1.0/examples/Get-MgPrintConnector.md | 22 +- .../v1.0/examples/Get-MgPrintPrinter.md | 27 +- .../v1.0/examples/Get-MgPrintShare.md | 27 +- .../examples/Get-MgPrintTaskDefinition.md | 9 +- .../examples/Get-MgPrintTaskDefinitionTask.md | 9 +- .../examples/Remove-MgPrintTaskDefinition.md | 9 +- .../examples/Update-MgPrintTaskDefinition.md | 9 +- .../Update-MgPrintTaskDefinitionTask.md | 9 +- .../beta/examples/Get-MgBetaEducationClass.md | 7 +- .../Get-MgBetaEducationClassAssignment.md | 12 +- ...t-MgBetaEducationClassAssignmentDefault.md | 7 +- ...et-MgBetaEducationClassAssignmentRubric.md | 6 +- ...ucationClassAssignmentSubmissionOutcome.md | 42 +- .../Get-MgBetaEducationMeAssignmentRubric.md | 6 +- ...aEducationMeAssignmentSubmissionOutcome.md | 42 +- .../examples/Get-MgBetaEducationMeRubric.md | 6 +- .../examples/Get-MgBetaEducationSchool.md | 7 +- .../beta/examples/Get-MgBetaEducationUser.md | 9 +- ...Get-MgBetaEducationUserAssignmentRubric.md | 6 +- ...ducationUserAssignmentSubmissionOutcome.md | 42 +- .../examples/Get-MgBetaEducationUserRubric.md | 6 +- .../examples/Remove-MgBetaEducationClass.md | 7 +- .../Remove-MgBetaEducationClassAssignment.md | 12 +- ...ve-MgBetaEducationClassAssignmentRubric.md | 6 +- ...ucationClassAssignmentSubmissionOutcome.md | 42 +- ...emove-MgBetaEducationMeAssignmentRubric.md | 6 +- .../Remove-MgBetaEducationMeRubric.md | 6 +- .../examples/Remove-MgBetaEducationSchool.md | 7 +- .../examples/Remove-MgBetaEducationUser.md | 9 +- ...ove-MgBetaEducationUserAssignmentRubric.md | 6 +- .../examples/Update-MgBetaEducationClass.md | 7 +- .../Update-MgBetaEducationClassAssignment.md | 12 +- ...e-MgBetaEducationClassAssignmentDefault.md | 7 +- ...te-MgBetaEducationClassAssignmentRubric.md | 6 +- ...ucationClassAssignmentSubmissionOutcome.md | 42 +- ...pdate-MgBetaEducationMeAssignmentRubric.md | 6 +- .../Update-MgBetaEducationMeRubric.md | 6 +- .../examples/Update-MgBetaEducationSchool.md | 7 +- .../examples/Update-MgBetaEducationUser.md | 9 +- ...ate-MgBetaEducationUserAssignmentRubric.md | 6 +- .../v1.0/examples/Get-MgEducationClass.md | 7 +- .../Get-MgEducationClassAssignment.md | 12 +- .../Get-MgEducationClassAssignmentDefault.md | 7 +- .../Get-MgEducationClassAssignmentRubric.md | 6 +- ...ucationClassAssignmentSubmissionOutcome.md | 42 +- .../Get-MgEducationMeAssignmentRubric.md | 6 +- ...gEducationMeAssignmentSubmissionOutcome.md | 42 +- .../v1.0/examples/Get-MgEducationMeRubric.md | 6 +- .../v1.0/examples/Get-MgEducationSchool.md | 7 +- .../v1.0/examples/Get-MgEducationUser.md | 9 +- .../Get-MgEducationUserAssignmentRubric.md | 6 +- ...ducationUserAssignmentSubmissionOutcome.md | 42 +- .../examples/Get-MgEducationUserRubric.md | 6 +- .../v1.0/examples/Remove-MgEducationClass.md | 7 +- .../Remove-MgEducationClassAssignment.md | 12 +- ...Remove-MgEducationClassAssignmentRubric.md | 6 +- ...ucationClassAssignmentSubmissionOutcome.md | 22 +- .../Remove-MgEducationMeAssignmentRubric.md | 6 +- .../examples/Remove-MgEducationMeRubric.md | 6 +- .../v1.0/examples/Remove-MgEducationSchool.md | 7 +- .../v1.0/examples/Remove-MgEducationUser.md | 9 +- .../Remove-MgEducationUserAssignmentRubric.md | 6 +- .../v1.0/examples/Update-MgEducationClass.md | 7 +- .../Update-MgEducationClassAssignment.md | 12 +- ...pdate-MgEducationClassAssignmentDefault.md | 7 +- ...Update-MgEducationClassAssignmentRubric.md | 6 +- ...ucationClassAssignmentSubmissionOutcome.md | 42 +- .../Update-MgEducationMeAssignmentRubric.md | 6 +- .../examples/Update-MgEducationMeRubric.md | 6 +- .../v1.0/examples/Update-MgEducationSchool.md | 7 +- .../v1.0/examples/Update-MgEducationUser.md | 9 +- .../Update-MgEducationUserAssignmentRubric.md | 6 +- .../beta/examples/Get-MgBetaDriveItem.md | 5 +- .../beta/examples/Get-MgBetaGroupDriveItem.md | 5 +- .../beta/examples/Get-MgBetaUserDriveItem.md | 5 +- .../beta/examples/Remove-MgBetaDriveItem.md | 5 +- .../examples/Remove-MgBetaGroupDriveItem.md | 5 +- .../examples/Remove-MgBetaUserDriveItem.md | 5 +- .../beta/examples/Update-MgBetaDriveItem.md | 5 +- .../examples/Update-MgBetaGroupDriveItem.md | 5 +- .../examples/Update-MgBetaUserDriveItem.md | 5 +- src/Files/v1.0/examples/Get-MgDriveBundle.md | 9 + src/Files/v1.0/examples/Get-MgDriveItem.md | 30 +- .../examples/Get-MgDriveItemPermission.md | 22 +- .../v1.0/examples/Get-MgGroupDriveItem.md | 5 +- .../v1.0/examples/Get-MgUserDriveItem.md | 5 +- src/Files/v1.0/examples/Remove-MgDriveItem.md | 5 +- .../v1.0/examples/Remove-MgGroupDriveItem.md | 5 +- .../v1.0/examples/Remove-MgUserDriveItem.md | 5 +- src/Files/v1.0/examples/Update-MgDriveItem.md | 5 +- .../examples/Update-MgDriveItemPermission.md | 8 +- .../v1.0/examples/Update-MgGroupDriveItem.md | 5 +- .../v1.0/examples/Update-MgUserDriveItem.md | 5 +- .../Get-MgBetaGroupLifecyclePolicy.md | 8 +- .../beta/examples/Get-MgBetaGroupThread.md | 10 +- .../Get-MgBetaGroupThreadPostExtension.md | 54 ++- .../examples/New-MgBetaGroupMemberByRef.md | 19 +- .../Remove-MgBetaGroupLifecyclePolicy.md | 8 +- .../beta/examples/Remove-MgBetaGroupThread.md | 10 +- .../Update-MgBetaGroupLifecyclePolicy.md | 8 +- .../beta/examples/Update-MgBetaGroupThread.md | 10 +- .../Update-MgBetaGroupThreadPostExtension.md | 54 ++- .../examples/Get-MgGroupLifecyclePolicy.md | 8 +- src/Groups/v1.0/examples/Get-MgGroupThread.md | 10 +- .../Get-MgGroupThreadPostExtension.md | 54 ++- .../v1.0/examples/New-MgGroupMemberByRef.md | 19 +- .../examples/Remove-MgGroupLifecyclePolicy.md | 8 +- .../v1.0/examples/Remove-MgGroupThread.md | 10 +- .../examples/Update-MgGroupLifecyclePolicy.md | 8 +- .../v1.0/examples/Update-MgGroupThread.md | 10 +- .../Update-MgGroupThreadPostExtension.md | 54 ++- .../beta/examples/Get-MgBetaDevice.md | 15 +- .../Get-MgBetaDirectoryAdministrativeUnit.md | 6 +- .../beta/examples/Get-MgBetaOrganization.md | 21 +- .../Get-MgBetaOrganizationBranding.md | 32 +- ...-MgBetaOrganizationBrandingLocalization.md | 14 +- .../beta/examples/Remove-MgBetaDevice.md | 15 +- .../beta/examples/Remove-MgBetaDomain.md | 10 +- .../examples/Remove-MgBetaOrganization.md | 21 +- .../Remove-MgBetaOrganizationBranding.md | 32 +- ...-MgBetaOrganizationBrandingLocalization.md | 14 +- .../beta/examples/Update-MgBetaDevice.md | 15 +- .../beta/examples/Update-MgBetaDomain.md | 10 +- .../examples/Update-MgBetaOrganization.md | 21 +- .../Update-MgBetaOrganizationBranding.md | 32 +- ...-MgBetaOrganizationBrandingLocalization.md | 14 +- .../v1.0/examples/Get-MgDevice.md | 15 +- .../Get-MgDirectoryAdministrativeUnit.md | 6 +- .../v1.0/examples/Get-MgOrganization.md | 21 +- .../examples/Get-MgOrganizationBranding.md | 32 +- .../Get-MgOrganizationBrandingLocalization.md | 14 +- .../v1.0/examples/Remove-MgDevice.md | 15 +- .../Remove-MgDirectoryAdministrativeUnit.md | 6 +- .../v1.0/examples/Remove-MgDomain.md | 10 +- .../v1.0/examples/Remove-MgOrganization.md | 21 +- .../examples/Remove-MgOrganizationBranding.md | 32 +- ...move-MgOrganizationBrandingLocalization.md | 14 +- .../v1.0/examples/Update-MgDevice.md | 15 +- .../Update-MgDirectoryAdministrativeUnit.md | 6 +- .../v1.0/examples/Update-MgDomain.md | 10 +- .../v1.0/examples/Update-MgOrganization.md | 21 +- .../examples/Update-MgOrganizationBranding.md | 32 +- ...date-MgOrganizationBrandingLocalization.md | 14 +- ...itlementManagementConnectedOrganization.md | 8 +- ...overnanceAccessReviewDefinitionInstance.md | 43 +- ...anceAccessReviewDefinitionInstanceStage.md | 22 +- ...itlementManagementConnectedOrganization.md | 8 +- ...gBetaEntitlementManagementAccessPackage.md | 6 +- ...itlementManagementConnectedOrganization.md | 8 +- ...date-MgBetaEntitlementManagementSetting.md | 6 +- ...dentityGovernanceAccessReviewDefinition.md | 5 +- ...overnanceAccessReviewDefinitionInstance.md | 43 +- ...anceAccessReviewDefinitionInstanceStage.md | 22 +- ...et-MgEntitlementManagementAccessPackage.md | 6 +- ...entAccessPackageAssignmentApprovalStage.md | 22 +- .../Get-MgEntitlementManagementCatalog.md | 6 +- ...itlementManagementConnectedOrganization.md | 8 +- .../Get-MgEntitlementManagementSetting.md | 6 +- ...dentityGovernanceAccessReviewDefinition.md | 22 +- ...overnanceAccessReviewDefinitionInstance.md | 43 +- ...anceAccessReviewDefinitionInstanceStage.md | 22 +- ...gEntitlementManagementAssignmentRequest.md | 26 +- ...ve-MgEntitlementManagementAccessPackage.md | 6 +- ...entAccessPackageAssignmentApprovalStage.md | 5 +- .../Remove-MgEntitlementManagementCatalog.md | 6 +- ...itlementManagementConnectedOrganization.md | 8 +- ...tRequestUserConsentRequestApprovalStage.md | 5 +- ...te-MgEntitlementManagementAccessPackage.md | 6 +- ...entAccessPackageAssignmentApprovalStage.md | 5 +- .../Update-MgEntitlementManagementCatalog.md | 6 +- ...itlementManagementConnectedOrganization.md | 8 +- .../Update-MgEntitlementManagementSetting.md | 6 +- ...dentityGovernanceAccessReviewDefinition.md | 5 +- ...overnanceAccessReviewDefinitionInstance.md | 43 +- ...anceAccessReviewDefinitionInstanceStage.md | 22 +- ...tRequestUserConsentRequestApprovalStage.md | 5 +- .../Get-MgBetaIdentityApiConnector.md | 31 +- ...ntityB2XUserFlowUserAttributeAssignment.md | 15 +- .../examples/Get-MgBetaIdentityProvider.md | 25 +- .../Get-MgBetaIdentityUserFlowAttribute.md | 6 +- .../Get-MgBetaOauth2PermissionGrant.md | 6 +- ...-MgBetaPolicyActivityBasedTimeoutPolicy.md | 10 +- ...et-MgBetaPolicyAuthenticationFlowPolicy.md | 8 +- ...-MgBetaPolicyAuthenticationMethodPolicy.md | 20 +- .../Get-MgBetaPolicyClaimMappingPolicy.md | 6 +- ...Get-MgBetaPolicyCrossTenantAccessPolicy.md | 8 +- ...etaPolicyCrossTenantAccessPolicyDefault.md | 25 +- ...etaPolicyCrossTenantAccessPolicyPartner.md | 28 +- ...-MgBetaPolicyDefaultAppManagementPolicy.md | 42 +- .../Get-MgBetaPolicyFeatureRolloutPolicy.md | 18 +- ...dentitySecurityDefaultEnforcementPolicy.md | 6 +- ...et-MgBetaPolicyRoleManagementPolicyRule.md | 21 +- .../Get-MgBetaPolicyTokenIssuancePolicy.md | 10 +- .../Get-MgBetaPolicyTokenLifetimePolicy.md | 10 +- ...Get-MgBetaUserAuthenticationEmailMethod.md | 7 +- ...Get-MgBetaUserAuthenticationPhoneMethod.md | 7 +- .../Remove-MgBetaIdentityApiConnector.md | 31 +- .../examples/Remove-MgBetaIdentityProvider.md | 25 +- .../Remove-MgBetaIdentityUserFlowAttribute.md | 6 +- .../Remove-MgBetaOauth2PermissionGrant.md | 6 +- ...-MgBetaPolicyActivityBasedTimeoutPolicy.md | 10 +- ...ve-MgBetaPolicyAuthenticationFlowPolicy.md | 8 +- ...-MgBetaPolicyAuthenticationMethodPolicy.md | 20 +- .../Remove-MgBetaPolicyClaimMappingPolicy.md | 6 +- ...ove-MgBetaPolicyCrossTenantAccessPolicy.md | 8 +- ...etaPolicyCrossTenantAccessPolicyDefault.md | 25 +- ...etaPolicyCrossTenantAccessPolicyPartner.md | 28 +- ...Remove-MgBetaPolicyFeatureRolloutPolicy.md | 18 +- ...dentitySecurityDefaultEnforcementPolicy.md | 6 +- .../Remove-MgBetaPolicyTokenIssuancePolicy.md | 10 +- .../Remove-MgBetaPolicyTokenLifetimePolicy.md | 10 +- ...ove-MgBetaUserAuthenticationEmailMethod.md | 7 +- ...ove-MgBetaUserAuthenticationPhoneMethod.md | 7 +- .../Update-MgBetaIdentityApiConnector.md | 31 +- .../examples/Update-MgBetaIdentityProvider.md | 25 +- .../Update-MgBetaIdentityUserFlowAttribute.md | 6 +- .../Update-MgBetaOauth2PermissionGrant.md | 6 +- ...-MgBetaPolicyActivityBasedTimeoutPolicy.md | 10 +- .../Update-MgBetaPolicyAppManagementPolicy.md | 5 +- ...te-MgBetaPolicyAuthenticationFlowPolicy.md | 8 +- ...-MgBetaPolicyAuthenticationMethodPolicy.md | 20 +- .../Update-MgBetaPolicyClaimMappingPolicy.md | 6 +- ...ate-MgBetaPolicyCrossTenantAccessPolicy.md | 8 +- ...etaPolicyCrossTenantAccessPolicyDefault.md | 25 +- ...etaPolicyCrossTenantAccessPolicyPartner.md | 28 +- ...-MgBetaPolicyDefaultAppManagementPolicy.md | 42 +- ...Update-MgBetaPolicyFeatureRolloutPolicy.md | 18 +- ...dentitySecurityDefaultEnforcementPolicy.md | 6 +- ...te-MgBetaPolicyRoleManagementPolicyRule.md | 21 +- .../Update-MgBetaPolicyTokenIssuancePolicy.md | 10 +- .../Update-MgBetaPolicyTokenLifetimePolicy.md | 10 +- ...ate-MgBetaUserAuthenticationEmailMethod.md | 7 +- ...ate-MgBetaUserAuthenticationPhoneMethod.md | 7 +- .../examples/Get-MgIdentityApiConnector.md | 31 +- ...ntityB2XUserFlowUserAttributeAssignment.md | 15 +- .../v1.0/examples/Get-MgIdentityProvider.md | 25 +- .../Get-MgIdentityUserFlowAttribute.md | 6 +- .../examples/Get-MgOauth2PermissionGrant.md | 6 +- .../Get-MgPolicyActivityBasedTimeoutPolicy.md | 10 +- .../Get-MgPolicyAdminConsentRequestPolicy.md | 22 +- .../Get-MgPolicyAuthenticationFlowPolicy.md | 8 +- .../Get-MgPolicyAuthenticationMethodPolicy.md | 20 +- .../Get-MgPolicyClaimMappingPolicy.md | 6 +- .../Get-MgPolicyCrossTenantAccessPolicy.md | 8 +- ...-MgPolicyCrossTenantAccessPolicyDefault.md | 25 +- ...-MgPolicyCrossTenantAccessPolicyPartner.md | 28 +- .../Get-MgPolicyFeatureRolloutPolicy.md | 18 +- .../Get-MgPolicyHomeRealmDiscoveryPolicy.md | 22 +- ...dentitySecurityDefaultEnforcementPolicy.md | 6 +- .../Get-MgPolicyRoleManagementPolicyRule.md | 21 +- .../Get-MgPolicyTokenIssuancePolicy.md | 10 +- .../Get-MgPolicyTokenLifetimePolicy.md | 10 +- .../Get-MgUserAuthenticationEmailMethod.md | 7 +- .../Get-MgUserAuthenticationPhoneMethod.md | 7 +- .../examples/Remove-MgIdentityApiConnector.md | 31 +- ...ntityB2XUserFlowUserAttributeAssignment.md | 15 +- .../examples/Remove-MgIdentityProvider.md | 25 +- .../Remove-MgIdentityUserFlowAttribute.md | 6 +- .../Remove-MgOauth2PermissionGrant.md | 6 +- ...move-MgPolicyActivityBasedTimeoutPolicy.md | 10 +- ...Remove-MgPolicyAuthenticationFlowPolicy.md | 8 +- ...move-MgPolicyAuthenticationMethodPolicy.md | 20 +- .../Remove-MgPolicyClaimMappingPolicy.md | 6 +- .../Remove-MgPolicyCrossTenantAccessPolicy.md | 8 +- ...-MgPolicyCrossTenantAccessPolicyDefault.md | 25 +- ...-MgPolicyCrossTenantAccessPolicyPartner.md | 28 +- .../Remove-MgPolicyFeatureRolloutPolicy.md | 18 +- ...dentitySecurityDefaultEnforcementPolicy.md | 6 +- .../Remove-MgPolicyTokenIssuancePolicy.md | 10 +- .../Remove-MgPolicyTokenLifetimePolicy.md | 10 +- .../Remove-MgUserAuthenticationEmailMethod.md | 7 +- .../Remove-MgUserAuthenticationPhoneMethod.md | 7 +- .../examples/Update-MgIdentityApiConnector.md | 31 +- ...ntityB2XUserFlowUserAttributeAssignment.md | 15 +- .../examples/Update-MgIdentityProvider.md | 25 +- .../Update-MgIdentityUserFlowAttribute.md | 6 +- .../Update-MgOauth2PermissionGrant.md | 6 +- ...date-MgPolicyActivityBasedTimeoutPolicy.md | 10 +- ...Update-MgPolicyAuthenticationFlowPolicy.md | 8 +- ...date-MgPolicyAuthenticationMethodPolicy.md | 20 +- .../Update-MgPolicyClaimMappingPolicy.md | 6 +- .../Update-MgPolicyCrossTenantAccessPolicy.md | 8 +- ...-MgPolicyCrossTenantAccessPolicyDefault.md | 25 +- ...-MgPolicyCrossTenantAccessPolicyPartner.md | 28 +- .../Update-MgPolicyFeatureRolloutPolicy.md | 18 +- ...dentitySecurityDefaultEnforcementPolicy.md | 6 +- ...Update-MgPolicyRoleManagementPolicyRule.md | 21 +- .../Update-MgPolicyTokenIssuancePolicy.md | 10 +- .../Update-MgPolicyTokenLifetimePolicy.md | 10 +- .../Update-MgUserAuthenticationEmailMethod.md | 7 +- .../Update-MgUserAuthenticationPhoneMethod.md | 7 +- ...BetaUserInferenceClassificationOverride.md | 6 +- .../beta/examples/Get-MgBetaUserMailFolder.md | 16 +- .../Get-MgBetaUserMailFolderMessageRule.md | 9 +- .../beta/examples/Get-MgBetaUserMessage.md | 21 +- ...BetaUserInferenceClassificationOverride.md | 6 +- .../examples/Remove-MgBetaUserMailFolder.md | 16 +- .../Remove-MgBetaUserMailFolderMessageRule.md | 9 +- .../beta/examples/Remove-MgBetaUserMessage.md | 21 +- ...BetaUserInferenceClassificationOverride.md | 6 +- .../examples/Update-MgBetaUserMailFolder.md | 16 +- .../Update-MgBetaUserMailFolderMessageRule.md | 9 +- .../beta/examples/Update-MgBetaUserMessage.md | 21 +- ...t-MgUserInferenceClassificationOverride.md | 6 +- .../v1.0/examples/Get-MgUserMailFolder.md | 16 +- .../Get-MgUserMailFolderMessageRule.md | 9 +- src/Mail/v1.0/examples/Get-MgUserMessage.md | 21 +- ...e-MgUserInferenceClassificationOverride.md | 6 +- .../v1.0/examples/Remove-MgUserMailFolder.md | 16 +- .../Remove-MgUserMailFolderMessageRule.md | 9 +- .../v1.0/examples/Remove-MgUserMessage.md | 21 +- ...e-MgUserInferenceClassificationOverride.md | 6 +- .../v1.0/examples/Update-MgUserMailFolder.md | 16 +- .../Update-MgUserMailFolderMessageRule.md | 9 +- .../v1.0/examples/Update-MgUserMessage.md | 21 +- .../beta/examples/Get-MgBetaUserContact.md | 12 +- .../examples/Get-MgBetaUserContactFolder.md | 7 +- .../beta/examples/Remove-MgBetaUserContact.md | 12 +- .../Remove-MgBetaUserContactFolder.md | 7 +- .../beta/examples/Update-MgBetaUserContact.md | 12 +- .../Update-MgBetaUserContactFolder.md | 7 +- .../v1.0/examples/Get-MgUserContact.md | 12 +- .../v1.0/examples/Get-MgUserContactFolder.md | 7 +- .../v1.0/examples/Remove-MgUserContact.md | 12 +- .../examples/Remove-MgUserContactFolder.md | 7 +- .../v1.0/examples/Update-MgUserContact.md | 12 +- .../examples/Update-MgUserContactFolder.md | 7 +- .../beta/examples/Get-MgBetaPlannerBucket.md | 6 +- .../beta/examples/Get-MgBetaPlannerPlan.md | 6 +- .../beta/examples/Get-MgBetaPlannerTask.md | 15 +- ...etaPlannerTaskAssignedToTaskBoardFormat.md | 8 +- ...-MgBetaPlannerTaskBucketTaskBoardFormat.md | 6 +- .../examples/Get-MgBetaPlannerTaskDetail.md | 31 +- ...gBetaPlannerTaskProgressTaskBoardFormat.md | 6 +- .../examples/Remove-MgBetaPlannerBucket.md | 6 +- .../beta/examples/Remove-MgBetaPlannerPlan.md | 6 +- .../beta/examples/Remove-MgBetaPlannerTask.md | 15 +- ...etaPlannerTaskAssignedToTaskBoardFormat.md | 8 +- ...-MgBetaPlannerTaskBucketTaskBoardFormat.md | 6 +- ...gBetaPlannerTaskProgressTaskBoardFormat.md | 6 +- .../examples/Update-MgBetaPlannerBucket.md | 6 +- .../beta/examples/Update-MgBetaPlannerPlan.md | 6 +- .../beta/examples/Update-MgBetaPlannerTask.md | 15 +- ...etaPlannerTaskAssignedToTaskBoardFormat.md | 8 +- ...-MgBetaPlannerTaskBucketTaskBoardFormat.md | 6 +- .../Update-MgBetaPlannerTaskDetail.md | 31 +- ...gBetaPlannerTaskProgressTaskBoardFormat.md | 6 +- .../v1.0/examples/Get-MgPlannerBucket.md | 6 +- .../v1.0/examples/Get-MgPlannerPlan.md | 6 +- .../v1.0/examples/Get-MgPlannerPlanDetail.md | 22 +- .../v1.0/examples/Get-MgPlannerTask.md | 15 +- ...-MgPlannerTaskAssignedToTaskBoardFormat.md | 8 +- .../Get-MgPlannerTaskBucketTaskBoardFormat.md | 6 +- .../v1.0/examples/Get-MgPlannerTaskDetail.md | 31 +- ...et-MgPlannerTaskProgressTaskBoardFormat.md | 6 +- .../v1.0/examples/Remove-MgPlannerBucket.md | 6 +- .../v1.0/examples/Remove-MgPlannerPlan.md | 6 +- .../v1.0/examples/Remove-MgPlannerTask.md | 15 +- ...-MgPlannerTaskAssignedToTaskBoardFormat.md | 8 +- ...move-MgPlannerTaskBucketTaskBoardFormat.md | 6 +- ...ve-MgPlannerTaskProgressTaskBoardFormat.md | 6 +- .../v1.0/examples/Update-MgPlannerBucket.md | 6 +- .../v1.0/examples/Update-MgPlannerPlan.md | 6 +- .../v1.0/examples/Update-MgPlannerTask.md | 15 +- ...-MgPlannerTaskAssignedToTaskBoardFormat.md | 8 +- ...date-MgPlannerTaskBucketTaskBoardFormat.md | 6 +- .../examples/Update-MgPlannerTaskDetail.md | 31 +- ...te-MgPlannerTaskProgressTaskBoardFormat.md | 6 +- .../examples/Get-MgBetaSchemaExtension.md | 24 +- .../examples/Remove-MgBetaSchemaExtension.md | 24 +- .../examples/Update-MgBetaSchemaExtension.md | 24 +- .../v1.0/examples/Get-MgSchemaExtension.md | 24 +- .../v1.0/examples/Remove-MgSchemaExtension.md | 24 +- .../v1.0/examples/Update-MgSchemaExtension.md | 24 +- .../examples/Get-MgBetaExternalConnection.md | 7 +- .../Get-MgBetaExternalConnectionGroup.md | 7 +- .../Remove-MgBetaExternalConnection.md | 7 +- .../Remove-MgBetaExternalConnectionGroup.md | 7 +- .../Update-MgBetaExternalConnection.md | 7 +- .../v1.0/examples/Get-MgExternalConnection.md | 7 +- .../examples/Get-MgExternalConnectionGroup.md | 7 +- .../examples/Remove-MgExternalConnection.md | 7 +- .../Remove-MgExternalConnectionGroup.md | 7 +- .../examples/Update-MgExternalConnection.md | 7 +- .../Update-MgExternalConnectionGroup.md | 7 +- .../Get-MgBetaSecurityCaseEdiscoveryCase.md | 7 +- ...ecurityCaseEdiscoveryCaseReviewSetQuery.md | 7 +- ...-MgBetaSecurityCaseEdiscoveryCaseSearch.md | 6 +- ...MgBetaSecurityCaseEdiscoveryCaseSetting.md | 15 +- .../examples/Get-MgBetaSecurityIncident.md | 10 +- ...MgBetaSecuritySecureScoreControlProfile.md | 37 +- ...iscoveryCaseCustodianUnifiedGroupSource.md | 16 +- ...Remove-MgBetaSecurityCaseEdiscoveryCase.md | 7 +- ...ecurityCaseEdiscoveryCaseReviewSetQuery.md | 7 +- ...-MgBetaSecurityCaseEdiscoveryCaseSearch.md | 6 +- ...Update-MgBetaSecurityCaseEdiscoveryCase.md | 7 +- ...ecurityCaseEdiscoveryCaseReviewSetQuery.md | 7 +- ...-MgBetaSecurityCaseEdiscoveryCaseSearch.md | 6 +- ...MgBetaSecurityCaseEdiscoveryCaseSetting.md | 15 +- ...ate-MgBetaSecurityCaseEdiscoveryCaseTag.md | 5 +- .../examples/Update-MgBetaSecurityIncident.md | 10 +- ...MgBetaSecuritySecureScoreControlProfile.md | 37 +- .../Get-MgSecurityCaseEdiscoveryCase.md | 7 +- ...ecurityCaseEdiscoveryCaseReviewSetQuery.md | 7 +- .../Get-MgSecurityCaseEdiscoveryCaseSearch.md | 6 +- ...Get-MgSecurityCaseEdiscoveryCaseSetting.md | 15 +- .../Get-MgSecurityCaseEdiscoveryCaseTag.md | 22 +- ...Get-MgSecuritySecureScoreControlProfile.md | 37 +- ...iscoveryCaseCustodianUnifiedGroupSource.md | 16 +- .../Remove-MgSecurityCaseEdiscoveryCase.md | 7 +- ...ecurityCaseEdiscoveryCaseReviewSetQuery.md | 7 +- ...move-MgSecurityCaseEdiscoveryCaseSearch.md | 6 +- .../Update-MgSecurityCaseEdiscoveryCase.md | 7 +- ...ecurityCaseEdiscoveryCaseReviewSetQuery.md | 7 +- ...date-MgSecurityCaseEdiscoveryCaseSearch.md | 6 +- ...ate-MgSecurityCaseEdiscoveryCaseSetting.md | 15 +- .../Update-MgSecurityCaseEdiscoveryCaseTag.md | 5 +- ...ate-MgSecuritySecureScoreControlProfile.md | 37 +- .../examples/Get-MgBetaSiteContentType.md | 45 +- .../beta/examples/Get-MgBetaSitePermission.md | 8 +- .../beta/examples/Get-MgBetaSiteTermStore.md | 6 +- .../Get-MgBetaSiteTermStoreGroupSetTerm.md | 12 +- .../examples/Get-MgBetaSiteTermStoreSet.md | 6 +- .../examples/Remove-MgBetaSiteContentType.md | 45 +- .../examples/Remove-MgBetaSitePermission.md | 8 +- .../examples/Remove-MgBetaSiteTermStore.md | 6 +- .../examples/Update-MgBetaSiteContentType.md | 45 +- .../examples/Update-MgBetaSitePermission.md | 8 +- .../examples/Update-MgBetaSiteTermStore.md | 6 +- .../v1.0/examples/Get-MgSiteContentType.md | 45 +- .../v1.0/examples/Get-MgSitePermission.md | 8 +- .../v1.0/examples/Get-MgSiteTermStore.md | 6 +- .../Get-MgSiteTermStoreGroupSetTerm.md | 12 +- .../v1.0/examples/Get-MgSiteTermStoreSet.md | 6 +- .../v1.0/examples/Remove-MgSiteContentType.md | 45 +- .../v1.0/examples/Remove-MgSitePermission.md | 8 +- .../v1.0/examples/Remove-MgSiteTermStore.md | 6 +- .../examples/Remove-MgSiteTermStoreSet.md | 6 +- .../examples/Remove-MgSiteTermStoreSetTerm.md | 12 +- .../v1.0/examples/Update-MgSiteContentType.md | 45 +- .../v1.0/examples/Update-MgSitePermission.md | 8 +- .../v1.0/examples/Update-MgSiteTermStore.md | 6 +- .../examples/Update-MgSiteTermStoreSet.md | 6 +- .../examples/Update-MgSiteTermStoreSetTerm.md | 12 +- src/Teams/beta/examples/Get-MgBetaChat.md | 42 +- src/Teams/beta/examples/Get-MgBetaChatTab.md | 8 +- .../Get-MgBetaGroupTeamChannelMessage.md | 419 +----------------- .../examples/Get-MgBetaGroupTeamMember.md | 9 +- ...et-MgBetaGroupTeamPrimaryChannelMessage.md | 419 +----------------- .../Get-MgBetaGroupTeamScheduleOpenShift.md | 24 +- .../beta/examples/Get-MgBetaGroupTeamTag.md | 6 +- src/Teams/beta/examples/Get-MgBetaTeam.md | 16 +- .../examples/Get-MgBetaTeamChannelMessage.md | 419 +----------------- .../beta/examples/Get-MgBetaTeamMember.md | 9 +- .../Get-MgBetaTeamPrimaryChannelMessage.md | 419 +----------------- .../Get-MgBetaTeamScheduleOpenShift.md | 24 +- src/Teams/beta/examples/Get-MgBetaTeamTag.md | 6 +- ...-MgBetaTeamworkDeletedTeamChannelMember.md | 5 +- .../Get-MgBetaTeamworkWorkforceIntegration.md | 14 +- .../beta/examples/Get-MgBetaUserChatTab.md | 8 +- .../beta/examples/New-MgBetaChatMember.md | 8 +- .../beta/examples/New-MgBetaChatMessage.md | 2 + .../New-MgBetaGroupTeamChannelMessage.md | 2 + ...ew-MgBetaGroupTeamPrimaryChannelMessage.md | 2 + .../examples/New-MgBetaTeamChannelMessage.md | 2 + .../New-MgBetaTeamPrimaryChannelMessage.md | 2 + src/Teams/beta/examples/New-MgBetaUserChat.md | 15 +- .../beta/examples/New-MgBetaUserChatMember.md | 8 +- .../examples/New-MgBetaUserChatMessage.md | 2 + src/Teams/beta/examples/Remove-MgBetaChat.md | 42 +- .../beta/examples/Remove-MgBetaChatTab.md | 8 +- .../Remove-MgBetaGroupTeamChannelMember.md | 5 +- ...ove-MgBetaGroupTeamPrimaryChannelMember.md | 5 +- ...-MgBetaGroupTeamScheduleSchedulingGroup.md | 5 +- .../Remove-MgBetaGroupTeamScheduleShift.md | 5 +- .../Remove-MgBetaGroupTeamScheduleTimeOff.md | 5 +- ...ve-MgBetaGroupTeamScheduleTimeOffReason.md | 5 +- src/Teams/beta/examples/Remove-MgBetaTeam.md | 16 +- .../beta/examples/Remove-MgBetaTeamChannel.md | 2 +- .../beta/examples/Remove-MgBetaTeamMember.md | 9 +- .../Remove-MgBetaTeamPrimaryChannelMember.md | 5 +- .../Remove-MgBetaTeamScheduleOpenShift.md | 24 +- .../beta/examples/Remove-MgBetaTeamTag.md | 6 +- ...-MgBetaTeamworkDeletedTeamChannelMember.md | 5 +- ...move-MgBetaTeamworkWorkforceIntegration.md | 14 +- src/Teams/beta/examples/Update-MgBetaChat.md | 42 +- .../beta/examples/Update-MgBetaChatTab.md | 8 +- .../Update-MgBetaGroupTeamChannelMember.md | 5 +- ...ate-MgBetaGroupTeamPrimaryChannelMember.md | 5 +- ...-MgBetaGroupTeamScheduleSchedulingGroup.md | 5 +- .../Update-MgBetaGroupTeamScheduleShift.md | 5 +- .../Update-MgBetaGroupTeamScheduleTimeOff.md | 5 +- ...te-MgBetaGroupTeamScheduleTimeOffReason.md | 5 +- src/Teams/beta/examples/Update-MgBetaTeam.md | 16 +- .../beta/examples/Update-MgBetaTeamChannel.md | 2 +- .../Update-MgBetaTeamChannelMessage.md | 419 +----------------- .../beta/examples/Update-MgBetaTeamMember.md | 9 +- .../Update-MgBetaTeamPrimaryChannelMember.md | 5 +- ...pdate-MgBetaTeamScheduleSchedulingGroup.md | 5 +- .../Update-MgBetaTeamScheduleShift.md | 5 +- .../Update-MgBetaTeamScheduleTimeOff.md | 5 +- .../Update-MgBetaTeamScheduleTimeOffReason.md | 5 +- .../beta/examples/Update-MgBetaTeamTag.md | 6 +- ...-MgBetaTeamworkDeletedTeamChannelMember.md | 5 +- ...date-MgBetaTeamworkWorkforceIntegration.md | 14 +- src/Teams/v1.0/examples/Get-MgChat.md | 42 +- src/Teams/v1.0/examples/Get-MgChatTab.md | 8 +- .../examples/Get-MgGroupTeamChannelMessage.md | 419 +----------------- .../v1.0/examples/Get-MgGroupTeamMember.md | 9 +- .../Get-MgGroupTeamPrimaryChannelMessage.md | 419 +----------------- .../Get-MgGroupTeamScheduleOpenShift.md | 24 +- src/Teams/v1.0/examples/Get-MgGroupTeamTag.md | 6 +- src/Teams/v1.0/examples/Get-MgTeam.md | 16 +- .../v1.0/examples/Get-MgTeamChannelMember.md | 22 +- .../v1.0/examples/Get-MgTeamChannelMessage.md | 419 +----------------- src/Teams/v1.0/examples/Get-MgTeamMember.md | 9 +- .../Get-MgTeamPrimaryChannelMessage.md | 419 +----------------- .../examples/Get-MgTeamScheduleOpenShift.md | 24 +- .../Get-MgTeamScheduleSchedulingGroup.md | 22 +- .../v1.0/examples/Get-MgTeamScheduleShift.md | 22 +- .../examples/Get-MgTeamScheduleTimeOff.md | 22 +- .../Get-MgTeamScheduleTimeOffReason.md | 22 +- src/Teams/v1.0/examples/Get-MgTeamTag.md | 6 +- .../Get-MgTeamworkWorkforceIntegration.md | 14 +- src/Teams/v1.0/examples/Get-MgUserChatTab.md | 8 +- src/Teams/v1.0/examples/New-MgChatMember.md | 8 +- src/Teams/v1.0/examples/New-MgChatMessage.md | 2 + .../examples/New-MgGroupTeamChannelMessage.md | 2 + .../New-MgGroupTeamPrimaryChannelMessage.md | 2 + .../v1.0/examples/New-MgTeamChannelMessage.md | 2 + .../v1.0/examples/New-MgTeamInstalledApp.md | 24 +- .../New-MgTeamPrimaryChannelMessage.md | 2 + src/Teams/v1.0/examples/New-MgUserChat.md | 15 +- .../v1.0/examples/New-MgUserChatMember.md | 8 +- .../v1.0/examples/New-MgUserChatMessage.md | 2 + src/Teams/v1.0/examples/Remove-MgChat.md | 42 +- src/Teams/v1.0/examples/Remove-MgChatTab.md | 8 +- .../Remove-MgGroupTeamChannelMember.md | 5 +- .../Remove-MgGroupTeamPrimaryChannelMember.md | 5 +- ...move-MgGroupTeamScheduleSchedulingGroup.md | 5 +- .../Remove-MgGroupTeamScheduleShift.md | 5 +- .../Remove-MgGroupTeamScheduleTimeOff.md | 5 +- ...Remove-MgGroupTeamScheduleTimeOffReason.md | 5 +- src/Teams/v1.0/examples/Remove-MgTeam.md | 16 +- .../v1.0/examples/Remove-MgTeamChannel.md | 2 +- .../v1.0/examples/Remove-MgTeamMember.md | 9 +- .../Remove-MgTeamPrimaryChannelMember.md | 5 +- .../Remove-MgTeamScheduleOpenShift.md | 24 +- .../Remove-MgTeamworkWorkforceIntegration.md | 14 +- src/Teams/v1.0/examples/Update-MgChat.md | 42 +- src/Teams/v1.0/examples/Update-MgChatTab.md | 8 +- .../Update-MgGroupTeamChannelMember.md | 5 +- .../Update-MgGroupTeamPrimaryChannelMember.md | 5 +- ...date-MgGroupTeamScheduleSchedulingGroup.md | 5 +- .../Update-MgGroupTeamScheduleShift.md | 5 +- .../Update-MgGroupTeamScheduleTimeOff.md | 5 +- ...Update-MgGroupTeamScheduleTimeOffReason.md | 5 +- src/Teams/v1.0/examples/Update-MgTeam.md | 16 +- .../v1.0/examples/Update-MgTeamChannel.md | 2 +- .../examples/Update-MgTeamChannelMessage.md | 419 +----------------- .../v1.0/examples/Update-MgTeamMember.md | 9 +- .../Update-MgTeamPrimaryChannelMember.md | 5 +- .../Update-MgTeamScheduleOpenShift.md | 24 +- .../Update-MgTeamScheduleSchedulingGroup.md | 5 +- .../examples/Update-MgTeamScheduleTimeOff.md | 5 +- .../Update-MgTeamScheduleTimeOffReason.md | 5 +- src/Teams/v1.0/examples/Update-MgTeamTag.md | 6 +- .../Update-MgTeamworkWorkforceIntegration.md | 14 +- .../Get-MgBetaUserOutlookMasterCategory.md | 6 +- .../Get-MgBetaUserSettingShiftPreference.md | 27 +- .../beta/examples/Get-MgBetaUserTodoList.md | 6 +- .../examples/Get-MgBetaUserTodoListTask.md | 9 +- ...Get-MgBetaUserTodoListTaskChecklistItem.md | 6 +- ...et-MgBetaUserTodoListTaskLinkedResource.md | 9 +- .../Remove-MgBetaUserOutlookMasterCategory.md | 6 +- .../examples/Remove-MgBetaUserTodoList.md | 6 +- .../examples/Remove-MgBetaUserTodoListTask.md | 9 +- ...ove-MgBetaUserTodoListTaskChecklistItem.md | 6 +- ...ve-MgBetaUserTodoListTaskLinkedResource.md | 9 +- .../Update-MgBetaUserOutlookMasterCategory.md | 6 +- .../examples/Update-MgBetaUserTodoList.md | 6 +- .../examples/Update-MgBetaUserTodoListTask.md | 9 +- ...ate-MgBetaUserTodoListTaskChecklistItem.md | 6 +- ...te-MgBetaUserTodoListTaskLinkedResource.md | 9 +- .../Get-MgUserOutlookMasterCategory.md | 6 +- .../Get-MgUserSettingShiftPreference.md | 27 +- src/Users/v1.0/examples/Get-MgUserTodoList.md | 6 +- .../v1.0/examples/Get-MgUserTodoListTask.md | 9 +- .../Get-MgUserTodoListTaskChecklistItem.md | 6 +- .../Get-MgUserTodoListTaskLinkedResource.md | 9 +- .../Remove-MgUserOutlookMasterCategory.md | 6 +- .../v1.0/examples/Remove-MgUserTodoList.md | 6 +- .../examples/Remove-MgUserTodoListTask.md | 9 +- .../Remove-MgUserTodoListTaskChecklistItem.md | 6 +- ...Remove-MgUserTodoListTaskLinkedResource.md | 9 +- .../Update-MgUserOutlookMasterCategory.md | 6 +- .../Update-MgUserSettingShiftPreference.md | 27 +- .../v1.0/examples/Update-MgUserTodoList.md | 6 +- .../examples/Update-MgUserTodoListTask.md | 9 +- .../Update-MgUserTodoListTaskChecklistItem.md | 6 +- ...Update-MgUserTodoListTaskLinkedResource.md | 9 +- 642 files changed, 2169 insertions(+), 10238 deletions(-) diff --git a/src/Applications/beta/examples/Get-MgBetaApplicationFederatedIdentityCredential.md b/src/Applications/beta/examples/Get-MgBetaApplicationFederatedIdentityCredential.md index 05809298c62..959a7c4d00b 100644 --- a/src/Applications/beta/examples/Get-MgBetaApplicationFederatedIdentityCredential.md +++ b/src/Applications/beta/examples/Get-MgBetaApplicationFederatedIdentityCredential.md @@ -2,17 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Applications -$params = @{ - name = "testing02" - issuer = "https://login.microsoftonline.com/3d1e2be9-a10a-4a0c-8380-7ce190f98ed9/v2.0" - subject = "a7d388c3-5e3f-4959-ac7d-786b3383006a" - description = "Updated description" - audiences = @( - "api://AzureADTokenExchange" - ) -} - -Update-MgBetaApplicationFederatedIdentityCredential -ApplicationId $applicationId -FederatedIdentityCredentialId $federatedIdentityCredentialId -BodyParameter $params +Get-MgBetaApplicationFederatedIdentityCredential -ApplicationId $applicationId -FederatedIdentityCredentialId $federatedIdentityCredentialId ``` This example shows how to use the Get-MgBetaBetaApplicationFederatedIdentityCredential Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/beta/examples/Remove-MgBetaApplicationFederatedIdentityCredential.md b/src/Applications/beta/examples/Remove-MgBetaApplicationFederatedIdentityCredential.md index 63fabc0368b..ff773bf3df5 100644 --- a/src/Applications/beta/examples/Remove-MgBetaApplicationFederatedIdentityCredential.md +++ b/src/Applications/beta/examples/Remove-MgBetaApplicationFederatedIdentityCredential.md @@ -2,17 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Applications -$params = @{ - name = "testing02" - issuer = "https://login.microsoftonline.com/3d1e2be9-a10a-4a0c-8380-7ce190f98ed9/v2.0" - subject = "a7d388c3-5e3f-4959-ac7d-786b3383006a" - description = "Updated description" - audiences = @( - "api://AzureADTokenExchange" - ) -} - -Update-MgBetaApplicationFederatedIdentityCredential -ApplicationId $applicationId -FederatedIdentityCredentialId $federatedIdentityCredentialId -BodyParameter $params +Get-MgBetaApplicationFederatedIdentityCredential -ApplicationId $applicationId -FederatedIdentityCredentialId $federatedIdentityCredentialId ``` This example shows how to use the Remove-MgBetaBetaApplicationFederatedIdentityCredential Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/beta/examples/Update-MgBetaApplicationFederatedIdentityCredential.md b/src/Applications/beta/examples/Update-MgBetaApplicationFederatedIdentityCredential.md index c3844c34ff2..b7d4456da7a 100644 --- a/src/Applications/beta/examples/Update-MgBetaApplicationFederatedIdentityCredential.md +++ b/src/Applications/beta/examples/Update-MgBetaApplicationFederatedIdentityCredential.md @@ -2,17 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Applications -$params = @{ - name = "testing02" - issuer = "https://login.microsoftonline.com/3d1e2be9-a10a-4a0c-8380-7ce190f98ed9/v2.0" - subject = "a7d388c3-5e3f-4959-ac7d-786b3383006a" - description = "Updated description" - audiences = @( - "api://AzureADTokenExchange" - ) -} - -Update-MgBetaApplicationFederatedIdentityCredential -ApplicationId $applicationId -FederatedIdentityCredentialId $federatedIdentityCredentialId -BodyParameter $params +Get-MgBetaApplicationFederatedIdentityCredential -ApplicationId $applicationId -FederatedIdentityCredentialId $federatedIdentityCredentialId ``` This example shows how to use the Update-MgBetaBetaApplicationFederatedIdentityCredential Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/v1.0/examples/Get-MgApplicationFederatedIdentityCredential.md b/src/Applications/v1.0/examples/Get-MgApplicationFederatedIdentityCredential.md index 8b1ae6f231b..6e25c14d827 100644 --- a/src/Applications/v1.0/examples/Get-MgApplicationFederatedIdentityCredential.md +++ b/src/Applications/v1.0/examples/Get-MgApplicationFederatedIdentityCredential.md @@ -2,17 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Applications -$params = @{ - name = "testing02" - issuer = "https://login.microsoftonline.com/3d1e2be9-a10a-4a0c-8380-7ce190f98ed9/v2.0" - subject = "a7d388c3-5e3f-4959-ac7d-786b3383006a" - description = "Updated description" - audiences = @( - "api://AzureADTokenExchange" - ) -} - -Update-MgApplicationFederatedIdentityCredential -ApplicationId $applicationId -FederatedIdentityCredentialId $federatedIdentityCredentialId -BodyParameter $params +Get-MgApplicationFederatedIdentityCredential -ApplicationId $applicationId -FederatedIdentityCredentialId $federatedIdentityCredentialId ``` This example shows how to use the Get-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-MgApplicationFederatedIdentityCredential.md b/src/Applications/v1.0/examples/Remove-MgApplicationFederatedIdentityCredential.md index 00fd700006b..671aa92b4b5 100644 --- a/src/Applications/v1.0/examples/Remove-MgApplicationFederatedIdentityCredential.md +++ b/src/Applications/v1.0/examples/Remove-MgApplicationFederatedIdentityCredential.md @@ -2,17 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Applications -$params = @{ - name = "testing02" - issuer = "https://login.microsoftonline.com/3d1e2be9-a10a-4a0c-8380-7ce190f98ed9/v2.0" - subject = "a7d388c3-5e3f-4959-ac7d-786b3383006a" - description = "Updated description" - audiences = @( - "api://AzureADTokenExchange" - ) -} - -Update-MgApplicationFederatedIdentityCredential -ApplicationId $applicationId -FederatedIdentityCredentialId $federatedIdentityCredentialId -BodyParameter $params +Get-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/Update-MgApplicationFederatedIdentityCredential.md b/src/Applications/v1.0/examples/Update-MgApplicationFederatedIdentityCredential.md index 67759887cab..e5f244a9476 100644 --- a/src/Applications/v1.0/examples/Update-MgApplicationFederatedIdentityCredential.md +++ b/src/Applications/v1.0/examples/Update-MgApplicationFederatedIdentityCredential.md @@ -2,17 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Applications -$params = @{ - name = "testing02" - issuer = "https://login.microsoftonline.com/3d1e2be9-a10a-4a0c-8380-7ce190f98ed9/v2.0" - subject = "a7d388c3-5e3f-4959-ac7d-786b3383006a" - description = "Updated description" - audiences = @( - "api://AzureADTokenExchange" - ) -} - -Update-MgApplicationFederatedIdentityCredential -ApplicationId $applicationId -FederatedIdentityCredentialId $federatedIdentityCredentialId -BodyParameter $params +Get-MgApplicationFederatedIdentityCredential -ApplicationId $applicationId -FederatedIdentityCredentialId $federatedIdentityCredentialId ``` This example shows how to use the Update-MgApplicationFederatedIdentityCredential Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Calendar/beta/examples/Get-MgBetaUserCalendarGroup.md b/src/Calendar/beta/examples/Get-MgBetaUserCalendarGroup.md index 5f52ace5a7c..619bd4a2da9 100644 --- a/src/Calendar/beta/examples/Get-MgBetaUserCalendarGroup.md +++ b/src/Calendar/beta/examples/Get-MgBetaUserCalendarGroup.md @@ -2,12 +2,8 @@ ```powershell Import-Module Microsoft.Graph.Beta.Calendar -$params = @{ - name = "name-value" -} - # A UPN can also be used as -UserId. -Update-MgBetaUserCalendarGroup -UserId $userId -CalendarGroupId $calendarGroupId -BodyParameter $params +Get-MgBetaUserCalendarGroup -UserId $userId -CalendarGroupId $calendarGroupId ``` This example shows how to use the Get-MgBetaBetaUserCalendarGroup Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Calendar/beta/examples/Get-MgBetaUserCalendarPermission.md b/src/Calendar/beta/examples/Get-MgBetaUserCalendarPermission.md index 4e9c84ebc87..504c063ec76 100644 --- a/src/Calendar/beta/examples/Get-MgBetaUserCalendarPermission.md +++ b/src/Calendar/beta/examples/Get-MgBetaUserCalendarPermission.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Calendar -$params = @{ - role = "write" -} - -Update-MgBetaUserCalendarPermission -UserId $userId -CalendarPermissionId $calendarPermissionId -BodyParameter $params +Get-MgBetaUserCalendarPermission -UserId $userId -CalendarPermissionId $calendarPermissionId ``` This example shows how to use the Get-MgBetaBetaUserCalendarPermission Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Calendar/beta/examples/Get-MgBetaUserEvent.md b/src/Calendar/beta/examples/Get-MgBetaUserEvent.md index 64e36724477..6d6aa17c473 100644 --- a/src/Calendar/beta/examples/Get-MgBetaUserEvent.md +++ b/src/Calendar/beta/examples/Get-MgBetaUserEvent.md @@ -2,26 +2,18 @@ ```powershell Import-Module Microsoft.Graph.Beta.Calendar -$params = @{ - originalStartTimeZone = "originalStartTimeZone-value" - originalEndTimeZone = "originalEndTimeZone-value" - responseStatus = @{ - response = "" - time = [System.DateTime]::Parse("datetime-value") - } - recurrence = $null - reminderMinutesBeforeStart = 99 - isOnlineMeeting = $true - onlineMeetingProvider = "teamsForBusiness" - isReminderOn = $true - hideAttendees = $false - categories = @( - "Red category" - ) -} +# A UPN can also be used as -UserId. +Get-MgBetaUserEvent -UserId $userId -EventId $eventId -Property "subject,body,bodyPreview,organizer,attendees,start,end,location,hideAttendees" +``` +This example shows how to use the Get-MgBetaBetaUserEvent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Calendar # A UPN can also be used as -UserId. -Update-MgBetaUserEvent -UserId $userId -EventId $eventId -BodyParameter $params +Get-MgBetaUserEvent -UserId $userId -EventId $eventId -Property "subject,body,bodyPreview,organizer,attendees,start,end,location,locations" ``` This example shows how to use the Get-MgBetaBetaUserEvent Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Calendar/beta/examples/Remove-MgBetaUserCalendarGroup.md b/src/Calendar/beta/examples/Remove-MgBetaUserCalendarGroup.md index 20195d65d53..2a4082e8cf3 100644 --- a/src/Calendar/beta/examples/Remove-MgBetaUserCalendarGroup.md +++ b/src/Calendar/beta/examples/Remove-MgBetaUserCalendarGroup.md @@ -2,12 +2,8 @@ ```powershell Import-Module Microsoft.Graph.Beta.Calendar -$params = @{ - name = "name-value" -} - # A UPN can also be used as -UserId. -Update-MgBetaUserCalendarGroup -UserId $userId -CalendarGroupId $calendarGroupId -BodyParameter $params +Get-MgBetaUserCalendarGroup -UserId $userId -CalendarGroupId $calendarGroupId ``` This example shows how to use the Remove-MgBetaBetaUserCalendarGroup Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Calendar/beta/examples/Remove-MgBetaUserCalendarPermission.md b/src/Calendar/beta/examples/Remove-MgBetaUserCalendarPermission.md index 71e8ab15fb0..94ac8a9aaad 100644 --- a/src/Calendar/beta/examples/Remove-MgBetaUserCalendarPermission.md +++ b/src/Calendar/beta/examples/Remove-MgBetaUserCalendarPermission.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Calendar -$params = @{ - role = "write" -} - -Update-MgBetaUserCalendarPermission -UserId $userId -CalendarPermissionId $calendarPermissionId -BodyParameter $params +Get-MgBetaUserCalendarPermission -UserId $userId -CalendarPermissionId $calendarPermissionId ``` This example shows how to use the Remove-MgBetaBetaUserCalendarPermission Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Calendar/beta/examples/Remove-MgBetaUserEvent.md b/src/Calendar/beta/examples/Remove-MgBetaUserEvent.md index 1a789b6454d..10f20d9e22f 100644 --- a/src/Calendar/beta/examples/Remove-MgBetaUserEvent.md +++ b/src/Calendar/beta/examples/Remove-MgBetaUserEvent.md @@ -2,26 +2,18 @@ ```powershell Import-Module Microsoft.Graph.Beta.Calendar -$params = @{ - originalStartTimeZone = "originalStartTimeZone-value" - originalEndTimeZone = "originalEndTimeZone-value" - responseStatus = @{ - response = "" - time = [System.DateTime]::Parse("datetime-value") - } - recurrence = $null - reminderMinutesBeforeStart = 99 - isOnlineMeeting = $true - onlineMeetingProvider = "teamsForBusiness" - isReminderOn = $true - hideAttendees = $false - categories = @( - "Red category" - ) -} +# A UPN can also be used as -UserId. +Get-MgBetaUserEvent -UserId $userId -EventId $eventId -Property "subject,body,bodyPreview,organizer,attendees,start,end,location,hideAttendees" +``` +This example shows how to use the Remove-MgBetaBetaUserEvent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Calendar # A UPN can also be used as -UserId. -Update-MgBetaUserEvent -UserId $userId -EventId $eventId -BodyParameter $params +Get-MgBetaUserEvent -UserId $userId -EventId $eventId -Property "subject,body,bodyPreview,organizer,attendees,start,end,location,locations" ``` This example shows how to use the Remove-MgBetaBetaUserEvent Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Calendar/beta/examples/Update-MgBetaUserCalendarGroup.md b/src/Calendar/beta/examples/Update-MgBetaUserCalendarGroup.md index 45cfa184148..86981aadf51 100644 --- a/src/Calendar/beta/examples/Update-MgBetaUserCalendarGroup.md +++ b/src/Calendar/beta/examples/Update-MgBetaUserCalendarGroup.md @@ -2,12 +2,8 @@ ```powershell Import-Module Microsoft.Graph.Beta.Calendar -$params = @{ - name = "name-value" -} - # A UPN can also be used as -UserId. -Update-MgBetaUserCalendarGroup -UserId $userId -CalendarGroupId $calendarGroupId -BodyParameter $params +Get-MgBetaUserCalendarGroup -UserId $userId -CalendarGroupId $calendarGroupId ``` This example shows how to use the Update-MgBetaBetaUserCalendarGroup Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Calendar/beta/examples/Update-MgBetaUserCalendarPermission.md b/src/Calendar/beta/examples/Update-MgBetaUserCalendarPermission.md index ac9e3fd94d7..8ffa9d434c9 100644 --- a/src/Calendar/beta/examples/Update-MgBetaUserCalendarPermission.md +++ b/src/Calendar/beta/examples/Update-MgBetaUserCalendarPermission.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Calendar -$params = @{ - role = "write" -} - -Update-MgBetaUserCalendarPermission -UserId $userId -CalendarPermissionId $calendarPermissionId -BodyParameter $params +Get-MgBetaUserCalendarPermission -UserId $userId -CalendarPermissionId $calendarPermissionId ``` This example shows how to use the Update-MgBetaBetaUserCalendarPermission Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Calendar/beta/examples/Update-MgBetaUserEvent.md b/src/Calendar/beta/examples/Update-MgBetaUserEvent.md index 98e447531be..35bedb4f5c1 100644 --- a/src/Calendar/beta/examples/Update-MgBetaUserEvent.md +++ b/src/Calendar/beta/examples/Update-MgBetaUserEvent.md @@ -2,26 +2,18 @@ ```powershell Import-Module Microsoft.Graph.Beta.Calendar -$params = @{ - originalStartTimeZone = "originalStartTimeZone-value" - originalEndTimeZone = "originalEndTimeZone-value" - responseStatus = @{ - response = "" - time = [System.DateTime]::Parse("datetime-value") - } - recurrence = $null - reminderMinutesBeforeStart = 99 - isOnlineMeeting = $true - onlineMeetingProvider = "teamsForBusiness" - isReminderOn = $true - hideAttendees = $false - categories = @( - "Red category" - ) -} +# A UPN can also be used as -UserId. +Get-MgBetaUserEvent -UserId $userId -EventId $eventId -Property "subject,body,bodyPreview,organizer,attendees,start,end,location,hideAttendees" +``` +This example shows how to use the Update-MgBetaBetaUserEvent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Calendar # A UPN can also be used as -UserId. -Update-MgBetaUserEvent -UserId $userId -EventId $eventId -BodyParameter $params +Get-MgBetaUserEvent -UserId $userId -EventId $eventId -Property "subject,body,bodyPreview,organizer,attendees,start,end,location,locations" ``` This example shows how to use the Update-MgBetaBetaUserEvent Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Calendar/v1.0/examples/Get-MgUserCalendarGroup.md b/src/Calendar/v1.0/examples/Get-MgUserCalendarGroup.md index 2f8cde87bb4..2208f135bba 100644 --- a/src/Calendar/v1.0/examples/Get-MgUserCalendarGroup.md +++ b/src/Calendar/v1.0/examples/Get-MgUserCalendarGroup.md @@ -2,12 +2,8 @@ ```powershell Import-Module Microsoft.Graph.Calendar -$params = @{ - name = "name-value" -} - # A UPN can also be used as -UserId. -Update-MgUserCalendarGroup -UserId $userId -CalendarGroupId $calendarGroupId -BodyParameter $params +Get-MgUserCalendarGroup -UserId $userId -CalendarGroupId $calendarGroupId ``` This example shows how to use the Get-MgUserCalendarGroup Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Calendar/v1.0/examples/Get-MgUserCalendarPermission.md b/src/Calendar/v1.0/examples/Get-MgUserCalendarPermission.md index 8299031beae..d11f5118d17 100644 --- a/src/Calendar/v1.0/examples/Get-MgUserCalendarPermission.md +++ b/src/Calendar/v1.0/examples/Get-MgUserCalendarPermission.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Calendar -$params = @{ - role = "write" -} - -Update-MgUserCalendarPermission -UserId $userId -CalendarPermissionId $calendarPermissionId -BodyParameter $params +Get-MgUserCalendarPermission -UserId $userId -CalendarPermissionId $calendarPermissionId ``` This example shows how to use the Get-MgUserCalendarPermission Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Calendar/v1.0/examples/Get-MgUserEvent.md b/src/Calendar/v1.0/examples/Get-MgUserEvent.md index 2c6dc0c99c6..686e5d0f4cc 100644 --- a/src/Calendar/v1.0/examples/Get-MgUserEvent.md +++ b/src/Calendar/v1.0/examples/Get-MgUserEvent.md @@ -2,26 +2,18 @@ ```powershell Import-Module Microsoft.Graph.Calendar -$params = @{ - originalStartTimeZone = "originalStartTimeZone-value" - originalEndTimeZone = "originalEndTimeZone-value" - responseStatus = @{ - response = "" - time = [System.DateTime]::Parse("datetime-value") - } - recurrence = $null - reminderMinutesBeforeStart = 99 - isOnlineMeeting = $true - onlineMeetingProvider = "teamsForBusiness" - isReminderOn = $true - hideAttendees = $false - categories = @( - "Red category" - ) -} +# A UPN can also be used as -UserId. +Get-MgUserEvent -UserId $userId -EventId $eventId -Property "subject,body,bodyPreview,organizer,attendees,start,end,location,hideAttendees" +``` +This example shows how to use the Get-MgUserEvent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Code snippet + +```powershell Import-Module Microsoft.Graph.Calendar # A UPN can also be used as -UserId. -Update-MgUserEvent -UserId $userId -EventId $eventId -BodyParameter $params +Get-MgUserEvent -UserId $userId -EventId $eventId -Property "subject,body,bodyPreview,organizer,attendees,start,end,location,locations" ``` This example shows how to use the Get-MgUserEvent Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Calendar/v1.0/examples/Remove-MgUserCalendarGroup.md b/src/Calendar/v1.0/examples/Remove-MgUserCalendarGroup.md index 7d12c8c6671..ae3ae3e5cf8 100644 --- a/src/Calendar/v1.0/examples/Remove-MgUserCalendarGroup.md +++ b/src/Calendar/v1.0/examples/Remove-MgUserCalendarGroup.md @@ -2,12 +2,8 @@ ```powershell Import-Module Microsoft.Graph.Calendar -$params = @{ - name = "name-value" -} - # A UPN can also be used as -UserId. -Update-MgUserCalendarGroup -UserId $userId -CalendarGroupId $calendarGroupId -BodyParameter $params +Get-MgUserCalendarGroup -UserId $userId -CalendarGroupId $calendarGroupId ``` This example shows how to use the Remove-MgUserCalendarGroup Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Calendar/v1.0/examples/Remove-MgUserCalendarPermission.md b/src/Calendar/v1.0/examples/Remove-MgUserCalendarPermission.md index 3b5e14b1759..390c17b3713 100644 --- a/src/Calendar/v1.0/examples/Remove-MgUserCalendarPermission.md +++ b/src/Calendar/v1.0/examples/Remove-MgUserCalendarPermission.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Calendar -$params = @{ - role = "write" -} - -Update-MgUserCalendarPermission -UserId $userId -CalendarPermissionId $calendarPermissionId -BodyParameter $params +Get-MgUserCalendarPermission -UserId $userId -CalendarPermissionId $calendarPermissionId ``` This example shows how to use the Remove-MgUserCalendarPermission Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Calendar/v1.0/examples/Remove-MgUserEvent.md b/src/Calendar/v1.0/examples/Remove-MgUserEvent.md index c8a2e6e6ea0..49686e0cf88 100644 --- a/src/Calendar/v1.0/examples/Remove-MgUserEvent.md +++ b/src/Calendar/v1.0/examples/Remove-MgUserEvent.md @@ -2,26 +2,18 @@ ```powershell Import-Module Microsoft.Graph.Calendar -$params = @{ - originalStartTimeZone = "originalStartTimeZone-value" - originalEndTimeZone = "originalEndTimeZone-value" - responseStatus = @{ - response = "" - time = [System.DateTime]::Parse("datetime-value") - } - recurrence = $null - reminderMinutesBeforeStart = 99 - isOnlineMeeting = $true - onlineMeetingProvider = "teamsForBusiness" - isReminderOn = $true - hideAttendees = $false - categories = @( - "Red category" - ) -} +# A UPN can also be used as -UserId. +Get-MgUserEvent -UserId $userId -EventId $eventId -Property "subject,body,bodyPreview,organizer,attendees,start,end,location,hideAttendees" +``` +This example shows how to use the Remove-MgUserEvent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Code snippet + +```powershell Import-Module Microsoft.Graph.Calendar # A UPN can also be used as -UserId. -Update-MgUserEvent -UserId $userId -EventId $eventId -BodyParameter $params +Get-MgUserEvent -UserId $userId -EventId $eventId -Property "subject,body,bodyPreview,organizer,attendees,start,end,location,locations" ``` This example shows how to use the Remove-MgUserEvent Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Calendar/v1.0/examples/Update-MgUserCalendarGroup.md b/src/Calendar/v1.0/examples/Update-MgUserCalendarGroup.md index 27537922be6..3517cffe122 100644 --- a/src/Calendar/v1.0/examples/Update-MgUserCalendarGroup.md +++ b/src/Calendar/v1.0/examples/Update-MgUserCalendarGroup.md @@ -2,12 +2,8 @@ ```powershell Import-Module Microsoft.Graph.Calendar -$params = @{ - name = "name-value" -} - # A UPN can also be used as -UserId. -Update-MgUserCalendarGroup -UserId $userId -CalendarGroupId $calendarGroupId -BodyParameter $params +Get-MgUserCalendarGroup -UserId $userId -CalendarGroupId $calendarGroupId ``` This example shows how to use the Update-MgUserCalendarGroup Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Calendar/v1.0/examples/Update-MgUserCalendarPermission.md b/src/Calendar/v1.0/examples/Update-MgUserCalendarPermission.md index 9c7234563db..e0162abfef5 100644 --- a/src/Calendar/v1.0/examples/Update-MgUserCalendarPermission.md +++ b/src/Calendar/v1.0/examples/Update-MgUserCalendarPermission.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Calendar -$params = @{ - role = "write" -} - -Update-MgUserCalendarPermission -UserId $userId -CalendarPermissionId $calendarPermissionId -BodyParameter $params +Get-MgUserCalendarPermission -UserId $userId -CalendarPermissionId $calendarPermissionId ``` This example shows how to use the Update-MgUserCalendarPermission Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Calendar/v1.0/examples/Update-MgUserEvent.md b/src/Calendar/v1.0/examples/Update-MgUserEvent.md index a5d3e8ae0b8..9a6048c0a80 100644 --- a/src/Calendar/v1.0/examples/Update-MgUserEvent.md +++ b/src/Calendar/v1.0/examples/Update-MgUserEvent.md @@ -2,26 +2,18 @@ ```powershell Import-Module Microsoft.Graph.Calendar -$params = @{ - originalStartTimeZone = "originalStartTimeZone-value" - originalEndTimeZone = "originalEndTimeZone-value" - responseStatus = @{ - response = "" - time = [System.DateTime]::Parse("datetime-value") - } - recurrence = $null - reminderMinutesBeforeStart = 99 - isOnlineMeeting = $true - onlineMeetingProvider = "teamsForBusiness" - isReminderOn = $true - hideAttendees = $false - categories = @( - "Red category" - ) -} +# A UPN can also be used as -UserId. +Get-MgUserEvent -UserId $userId -EventId $eventId -Property "subject,body,bodyPreview,organizer,attendees,start,end,location,hideAttendees" +``` +This example shows how to use the Update-MgUserEvent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Code snippet + +```powershell Import-Module Microsoft.Graph.Calendar # A UPN can also be used as -UserId. -Update-MgUserEvent -UserId $userId -EventId $eventId -BodyParameter $params +Get-MgUserEvent -UserId $userId -EventId $eventId -Property "subject,body,bodyPreview,organizer,attendees,start,end,location,locations" ``` This example shows how to use the Update-MgUserEvent Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/ChangeNotifications/beta/examples/Get-MgBetaSubscription.md b/src/ChangeNotifications/beta/examples/Get-MgBetaSubscription.md index 58aa12a7e42..5f3b78b4f2d 100644 --- a/src/ChangeNotifications/beta/examples/Get-MgBetaSubscription.md +++ b/src/ChangeNotifications/beta/examples/Get-MgBetaSubscription.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.ChangeNotifications -$params = @{ - expirationDateTime = [System.DateTime]::Parse("2016-11-22T18:23:45.9356913Z") -} - -Update-MgBetaSubscription -SubscriptionId $subscriptionId -BodyParameter $params +Get-MgBetaSubscription -SubscriptionId $subscriptionId ``` This example shows how to use the Get-MgBetaBetaSubscription Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/ChangeNotifications/beta/examples/Remove-MgBetaSubscription.md b/src/ChangeNotifications/beta/examples/Remove-MgBetaSubscription.md index 660d22992a8..de9ddf35068 100644 --- a/src/ChangeNotifications/beta/examples/Remove-MgBetaSubscription.md +++ b/src/ChangeNotifications/beta/examples/Remove-MgBetaSubscription.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.ChangeNotifications -$params = @{ - expirationDateTime = [System.DateTime]::Parse("2016-11-22T18:23:45.9356913Z") -} - -Update-MgBetaSubscription -SubscriptionId $subscriptionId -BodyParameter $params +Get-MgBetaSubscription -SubscriptionId $subscriptionId ``` This example shows how to use the Remove-MgBetaBetaSubscription Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/ChangeNotifications/beta/examples/Update-MgBetaSubscription.md b/src/ChangeNotifications/beta/examples/Update-MgBetaSubscription.md index 0c48d9f2b94..daaa0a6fe09 100644 --- a/src/ChangeNotifications/beta/examples/Update-MgBetaSubscription.md +++ b/src/ChangeNotifications/beta/examples/Update-MgBetaSubscription.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.ChangeNotifications -$params = @{ - expirationDateTime = [System.DateTime]::Parse("2016-11-22T18:23:45.9356913Z") -} - -Update-MgBetaSubscription -SubscriptionId $subscriptionId -BodyParameter $params +Get-MgBetaSubscription -SubscriptionId $subscriptionId ``` This example shows how to use the Update-MgBetaBetaSubscription Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/ChangeNotifications/v1.0/examples/Get-MgSubscription.md b/src/ChangeNotifications/v1.0/examples/Get-MgSubscription.md index 76ddf1fb173..1b736580f29 100644 --- a/src/ChangeNotifications/v1.0/examples/Get-MgSubscription.md +++ b/src/ChangeNotifications/v1.0/examples/Get-MgSubscription.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.ChangeNotifications -$params = @{ - expirationDateTime = [System.DateTime]::Parse("2016-11-22T18:23:45.9356913Z") -} - -Update-MgSubscription -SubscriptionId $subscriptionId -BodyParameter $params +Get-MgSubscription -SubscriptionId $subscriptionId ``` This example shows how to use the Get-MgSubscription Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/ChangeNotifications/v1.0/examples/Remove-MgSubscription.md b/src/ChangeNotifications/v1.0/examples/Remove-MgSubscription.md index cc64212f137..35875fc4a26 100644 --- a/src/ChangeNotifications/v1.0/examples/Remove-MgSubscription.md +++ b/src/ChangeNotifications/v1.0/examples/Remove-MgSubscription.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.ChangeNotifications -$params = @{ - expirationDateTime = [System.DateTime]::Parse("2016-11-22T18:23:45.9356913Z") -} - -Update-MgSubscription -SubscriptionId $subscriptionId -BodyParameter $params +Get-MgSubscription -SubscriptionId $subscriptionId ``` This example shows how to use the Remove-MgSubscription Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/ChangeNotifications/v1.0/examples/Update-MgSubscription.md b/src/ChangeNotifications/v1.0/examples/Update-MgSubscription.md index bb9c0ae8805..fb77fcd3b10 100644 --- a/src/ChangeNotifications/v1.0/examples/Update-MgSubscription.md +++ b/src/ChangeNotifications/v1.0/examples/Update-MgSubscription.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.ChangeNotifications -$params = @{ - expirationDateTime = [System.DateTime]::Parse("2016-11-22T18:23:45.9356913Z") -} - -Update-MgSubscription -SubscriptionId $subscriptionId -BodyParameter $params +Get-MgSubscription -SubscriptionId $subscriptionId ``` This example shows how to use the Update-MgSubscription Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/beta/examples/Get-MgBetaUserOnlineMeeting.md b/src/CloudCommunications/beta/examples/Get-MgBetaUserOnlineMeeting.md index ada7bde1707..acd461eab90 100644 --- a/src/CloudCommunications/beta/examples/Get-MgBetaUserOnlineMeeting.md +++ b/src/CloudCommunications/beta/examples/Get-MgBetaUserOnlineMeeting.md @@ -1,31 +1,48 @@ -### Example 1: Code snippet +### Example 1: Retrieve an online meeting by videoTeleconferenceId ```powershell Import-Module Microsoft.Graph.Beta.CloudCommunications -$params = @{ - startDateTime = [System.DateTime]::Parse("2020-09-09T14:33:30.8546353-07:00") - endDateTime = [System.DateTime]::Parse("2020-09-09T15:03:30.8566356-07:00") - subject = "Patch Meeting Subject" -} +Get-MgBetaCommunicationOnlineMeeting -Filter "VideoTeleconferenceId eq '123456789'" +``` +This example shows how to use the Get-MgBetaBetaUserOnlineMeeting Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Retrieve an online meeting by meeting ID + +```powershell Import-Module Microsoft.Graph.Beta.CloudCommunications # A UPN can also be used as -UserId. -Update-MgBetaUserOnlineMeeting -UserId $userId -OnlineMeetingId $onlineMeetingId -BodyParameter $params +Get-MgBetaUserOnlineMeeting -UserId $userId -OnlineMeetingId $onlineMeetingId ``` This example shows how to use the Get-MgBetaBetaUserOnlineMeeting Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Code snippet +### Example 3: Retrieve an online meeting by joinWebUrl ```powershell Import-Module Microsoft.Graph.Beta.CloudCommunications -$params = @{ - lobbyBypassSettings = @{ - isDialInBypassEnabled = $true - } -} +# A UPN can also be used as -UserId. +Get-MgBetaUserOnlineMeeting -UserId $userId -Filter "JoinWebUrl eq 'https://teams.microsoft.com/l/meetup-join/19:meeting_MGQ4MDQyNTEtNTQ2NS00YjQxLTlkM2EtZWVkODYxODYzMmY2@thread.v2/0?context" +``` +This example shows how to use the Get-MgBetaBetaUserOnlineMeeting Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Retrieve an online meeting by joinMeetingId + +```powershell Import-Module Microsoft.Graph.Beta.CloudCommunications + +# A UPN can also be used as -UserId. +Get-MgBetaUserOnlineMeeting -UserId $userId -Filter "joinMeetingIdSettings/joinMeetingId eq '1234567890'" +``` +This example shows how to use the Get-MgBetaBetaUserOnlineMeeting Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 5: Fetch attendee report of a Teams live event + +```powershell Import-Module Microsoft.Graph.Beta.CloudCommunications # A UPN can also be used as -UserId. -Update-MgBetaUserOnlineMeeting -UserId $userId -OnlineMeetingId $onlineMeetingId -BodyParameter $params +Get-MgBetaUserOnlineMeetingAttendeeReport -UserId $userId -OnlineMeetingId $onlineMeetingId ``` This example shows how to use the Get-MgBetaBetaUserOnlineMeeting Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/beta/examples/Remove-MgBetaUserOnlineMeeting.md b/src/CloudCommunications/beta/examples/Remove-MgBetaUserOnlineMeeting.md index b14fb7ed3e9..6b3a2b72e8b 100644 --- a/src/CloudCommunications/beta/examples/Remove-MgBetaUserOnlineMeeting.md +++ b/src/CloudCommunications/beta/examples/Remove-MgBetaUserOnlineMeeting.md @@ -1,31 +1,48 @@ -### Example 1: Code snippet +### Example 1: Retrieve an online meeting by videoTeleconferenceId ```powershell Import-Module Microsoft.Graph.Beta.CloudCommunications -$params = @{ - startDateTime = [System.DateTime]::Parse("2020-09-09T14:33:30.8546353-07:00") - endDateTime = [System.DateTime]::Parse("2020-09-09T15:03:30.8566356-07:00") - subject = "Patch Meeting Subject" -} +Get-MgBetaCommunicationOnlineMeeting -Filter "VideoTeleconferenceId eq '123456789'" +``` +This example shows how to use the Remove-MgBetaBetaUserOnlineMeeting Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Retrieve an online meeting by meeting ID + +```powershell Import-Module Microsoft.Graph.Beta.CloudCommunications # A UPN can also be used as -UserId. -Update-MgBetaUserOnlineMeeting -UserId $userId -OnlineMeetingId $onlineMeetingId -BodyParameter $params +Get-MgBetaUserOnlineMeeting -UserId $userId -OnlineMeetingId $onlineMeetingId ``` This example shows how to use the Remove-MgBetaBetaUserOnlineMeeting Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Code snippet +### Example 3: Retrieve an online meeting by joinWebUrl ```powershell Import-Module Microsoft.Graph.Beta.CloudCommunications -$params = @{ - lobbyBypassSettings = @{ - isDialInBypassEnabled = $true - } -} +# A UPN can also be used as -UserId. +Get-MgBetaUserOnlineMeeting -UserId $userId -Filter "JoinWebUrl eq 'https://teams.microsoft.com/l/meetup-join/19:meeting_MGQ4MDQyNTEtNTQ2NS00YjQxLTlkM2EtZWVkODYxODYzMmY2@thread.v2/0?context" +``` +This example shows how to use the Remove-MgBetaBetaUserOnlineMeeting Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Retrieve an online meeting by joinMeetingId + +```powershell Import-Module Microsoft.Graph.Beta.CloudCommunications + +# A UPN can also be used as -UserId. +Get-MgBetaUserOnlineMeeting -UserId $userId -Filter "joinMeetingIdSettings/joinMeetingId eq '1234567890'" +``` +This example shows how to use the Remove-MgBetaBetaUserOnlineMeeting Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 5: Fetch attendee report of a Teams live event + +```powershell Import-Module Microsoft.Graph.Beta.CloudCommunications # A UPN can also be used as -UserId. -Update-MgBetaUserOnlineMeeting -UserId $userId -OnlineMeetingId $onlineMeetingId -BodyParameter $params +Get-MgBetaUserOnlineMeetingAttendeeReport -UserId $userId -OnlineMeetingId $onlineMeetingId ``` This example shows how to use the Remove-MgBetaBetaUserOnlineMeeting Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/beta/examples/Update-MgBetaUserOnlineMeeting.md b/src/CloudCommunications/beta/examples/Update-MgBetaUserOnlineMeeting.md index 413a309de5f..008e1d723b6 100644 --- a/src/CloudCommunications/beta/examples/Update-MgBetaUserOnlineMeeting.md +++ b/src/CloudCommunications/beta/examples/Update-MgBetaUserOnlineMeeting.md @@ -1,31 +1,48 @@ -### Example 1: Code snippet +### Example 1: Retrieve an online meeting by videoTeleconferenceId ```powershell Import-Module Microsoft.Graph.Beta.CloudCommunications -$params = @{ - startDateTime = [System.DateTime]::Parse("2020-09-09T14:33:30.8546353-07:00") - endDateTime = [System.DateTime]::Parse("2020-09-09T15:03:30.8566356-07:00") - subject = "Patch Meeting Subject" -} +Get-MgBetaCommunicationOnlineMeeting -Filter "VideoTeleconferenceId eq '123456789'" +``` +This example shows how to use the Update-MgBetaBetaUserOnlineMeeting Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Retrieve an online meeting by meeting ID + +```powershell Import-Module Microsoft.Graph.Beta.CloudCommunications # A UPN can also be used as -UserId. -Update-MgBetaUserOnlineMeeting -UserId $userId -OnlineMeetingId $onlineMeetingId -BodyParameter $params +Get-MgBetaUserOnlineMeeting -UserId $userId -OnlineMeetingId $onlineMeetingId ``` This example shows how to use the Update-MgBetaBetaUserOnlineMeeting Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Code snippet +### Example 3: Retrieve an online meeting by joinWebUrl ```powershell Import-Module Microsoft.Graph.Beta.CloudCommunications -$params = @{ - lobbyBypassSettings = @{ - isDialInBypassEnabled = $true - } -} +# A UPN can also be used as -UserId. +Get-MgBetaUserOnlineMeeting -UserId $userId -Filter "JoinWebUrl eq 'https://teams.microsoft.com/l/meetup-join/19:meeting_MGQ4MDQyNTEtNTQ2NS00YjQxLTlkM2EtZWVkODYxODYzMmY2@thread.v2/0?context" +``` +This example shows how to use the Update-MgBetaBetaUserOnlineMeeting Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Retrieve an online meeting by joinMeetingId + +```powershell Import-Module Microsoft.Graph.Beta.CloudCommunications + +# A UPN can also be used as -UserId. +Get-MgBetaUserOnlineMeeting -UserId $userId -Filter "joinMeetingIdSettings/joinMeetingId eq '1234567890'" +``` +This example shows how to use the Update-MgBetaBetaUserOnlineMeeting Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 5: Fetch attendee report of a Teams live event + +```powershell Import-Module Microsoft.Graph.Beta.CloudCommunications # A UPN can also be used as -UserId. -Update-MgBetaUserOnlineMeeting -UserId $userId -OnlineMeetingId $onlineMeetingId -BodyParameter $params +Get-MgBetaUserOnlineMeetingAttendeeReport -UserId $userId -OnlineMeetingId $onlineMeetingId ``` This example shows how to use the Update-MgBetaBetaUserOnlineMeeting Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/v1.0/examples/Get-MgUserOnlineMeeting.md b/src/CloudCommunications/v1.0/examples/Get-MgUserOnlineMeeting.md index 0965cb53ea0..94fd54eab82 100644 --- a/src/CloudCommunications/v1.0/examples/Get-MgUserOnlineMeeting.md +++ b/src/CloudCommunications/v1.0/examples/Get-MgUserOnlineMeeting.md @@ -1,31 +1,48 @@ -### Example 1: Code snippet +### Example 1: Retrieve an online meeting by videoTeleconferenceId ```powershell Import-Module Microsoft.Graph.CloudCommunications -$params = @{ - startDateTime = [System.DateTime]::Parse("2020-09-09T14:33:30.8546353-07:00") - endDateTime = [System.DateTime]::Parse("2020-09-09T15:03:30.8566356-07:00") - subject = "Patch Meeting Subject" -} +Get-MgCommunicationOnlineMeeting -Filter "VideoTeleconferenceId eq '123456789'" +``` +This example shows how to use the Get-MgUserOnlineMeeting Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Retrieve an online meeting by meeting ID + +```powershell Import-Module Microsoft.Graph.CloudCommunications # A UPN can also be used as -UserId. -Update-MgUserOnlineMeeting -UserId $userId -OnlineMeetingId $onlineMeetingId -BodyParameter $params +Get-MgUserOnlineMeeting -UserId $userId -OnlineMeetingId $onlineMeetingId ``` This example shows how to use the Get-MgUserOnlineMeeting Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Code snippet +### Example 3: Retrieve an online meeting by joinWebUrl ```powershell Import-Module Microsoft.Graph.CloudCommunications -$params = @{ - lobbyBypassSettings = @{ - isDialInBypassEnabled = $true - } -} +# A UPN can also be used as -UserId. +Get-MgUserOnlineMeeting -UserId $userId -Filter "JoinWebUrl eq 'https://teams.microsoft.com/l/meetup-join/19:meeting_MGQ4MDQyNTEtNTQ2NS00YjQxLTlkM2EtZWVkODYxODYzMmY2@thread.v2/0?context" +``` +This example shows how to use the Get-MgUserOnlineMeeting Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Retrieve an online meeting by joinMeetingId + +```powershell Import-Module Microsoft.Graph.CloudCommunications + +# A UPN can also be used as -UserId. +Get-MgUserOnlineMeeting -UserId $userId -Filter "joinMeetingIdSettings/joinMeetingId eq '1234567890'" +``` +This example shows how to use the Get-MgUserOnlineMeeting Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 5: Fetch attendee report of a Teams live event + +```powershell Import-Module Microsoft.Graph.CloudCommunications # A UPN can also be used as -UserId. -Update-MgUserOnlineMeeting -UserId $userId -OnlineMeetingId $onlineMeetingId -BodyParameter $params +Get-MgUserOnlineMeetingAttendeeReport -UserId $userId -OnlineMeetingId $onlineMeetingId ``` This example shows how to use the Get-MgUserOnlineMeeting Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/v1.0/examples/Get-MgUserOnlineMeetingAttendeeReport.md b/src/CloudCommunications/v1.0/examples/Get-MgUserOnlineMeetingAttendeeReport.md index d03ddff68df..1cd4ea01eae 100644 --- a/src/CloudCommunications/v1.0/examples/Get-MgUserOnlineMeetingAttendeeReport.md +++ b/src/CloudCommunications/v1.0/examples/Get-MgUserOnlineMeetingAttendeeReport.md @@ -1,3 +1,42 @@ +### Example 1: Retrieve an online meeting by videoTeleconferenceId + +```powershell Import-Module Microsoft.Graph.CloudCommunications + +Get-MgCommunicationOnlineMeeting -Filter "VideoTeleconferenceId eq '123456789'" +``` +This example shows how to use the Get-MgUserOnlineMeetingAttendeeReport Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Retrieve an online meeting by meeting ID + +```powershell Import-Module Microsoft.Graph.CloudCommunications + +# A UPN can also be used as -UserId. +Get-MgUserOnlineMeeting -UserId $userId -OnlineMeetingId $onlineMeetingId +``` +This example shows how to use the Get-MgUserOnlineMeetingAttendeeReport Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Retrieve an online meeting by joinWebUrl + +```powershell Import-Module Microsoft.Graph.CloudCommunications + +# A UPN can also be used as -UserId. +Get-MgUserOnlineMeeting -UserId $userId -Filter "JoinWebUrl eq 'https://teams.microsoft.com/l/meetup-join/19:meeting_MGQ4MDQyNTEtNTQ2NS00YjQxLTlkM2EtZWVkODYxODYzMmY2@thread.v2/0?context" +``` +This example shows how to use the Get-MgUserOnlineMeetingAttendeeReport Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Retrieve an online meeting by joinMeetingId + +```powershell Import-Module Microsoft.Graph.CloudCommunications + +# A UPN can also be used as -UserId. +Get-MgUserOnlineMeeting -UserId $userId -Filter "joinMeetingIdSettings/joinMeetingId eq '1234567890'" +``` +This example shows how to use the Get-MgUserOnlineMeetingAttendeeReport Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + ### Example 5: Fetch attendee report of a Teams live event ```powershell Import-Module Microsoft.Graph.CloudCommunications diff --git a/src/CloudCommunications/v1.0/examples/Remove-MgUserOnlineMeeting.md b/src/CloudCommunications/v1.0/examples/Remove-MgUserOnlineMeeting.md index 5e0cfbeb243..dd0a1f06947 100644 --- a/src/CloudCommunications/v1.0/examples/Remove-MgUserOnlineMeeting.md +++ b/src/CloudCommunications/v1.0/examples/Remove-MgUserOnlineMeeting.md @@ -1,31 +1,48 @@ -### Example 1: Code snippet +### Example 1: Retrieve an online meeting by videoTeleconferenceId ```powershell Import-Module Microsoft.Graph.CloudCommunications -$params = @{ - startDateTime = [System.DateTime]::Parse("2020-09-09T14:33:30.8546353-07:00") - endDateTime = [System.DateTime]::Parse("2020-09-09T15:03:30.8566356-07:00") - subject = "Patch Meeting Subject" -} +Get-MgCommunicationOnlineMeeting -Filter "VideoTeleconferenceId eq '123456789'" +``` +This example shows how to use the Remove-MgUserOnlineMeeting Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Retrieve an online meeting by meeting ID + +```powershell Import-Module Microsoft.Graph.CloudCommunications # A UPN can also be used as -UserId. -Update-MgUserOnlineMeeting -UserId $userId -OnlineMeetingId $onlineMeetingId -BodyParameter $params +Get-MgUserOnlineMeeting -UserId $userId -OnlineMeetingId $onlineMeetingId ``` This example shows how to use the Remove-MgUserOnlineMeeting Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Code snippet +### Example 3: Retrieve an online meeting by joinWebUrl ```powershell Import-Module Microsoft.Graph.CloudCommunications -$params = @{ - lobbyBypassSettings = @{ - isDialInBypassEnabled = $true - } -} +# A UPN can also be used as -UserId. +Get-MgUserOnlineMeeting -UserId $userId -Filter "JoinWebUrl eq 'https://teams.microsoft.com/l/meetup-join/19:meeting_MGQ4MDQyNTEtNTQ2NS00YjQxLTlkM2EtZWVkODYxODYzMmY2@thread.v2/0?context" +``` +This example shows how to use the Remove-MgUserOnlineMeeting Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Retrieve an online meeting by joinMeetingId + +```powershell Import-Module Microsoft.Graph.CloudCommunications + +# A UPN can also be used as -UserId. +Get-MgUserOnlineMeeting -UserId $userId -Filter "joinMeetingIdSettings/joinMeetingId eq '1234567890'" +``` +This example shows how to use the Remove-MgUserOnlineMeeting Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 5: Fetch attendee report of a Teams live event + +```powershell Import-Module Microsoft.Graph.CloudCommunications # A UPN can also be used as -UserId. -Update-MgUserOnlineMeeting -UserId $userId -OnlineMeetingId $onlineMeetingId -BodyParameter $params +Get-MgUserOnlineMeetingAttendeeReport -UserId $userId -OnlineMeetingId $onlineMeetingId ``` This example shows how to use the Remove-MgUserOnlineMeeting Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/v1.0/examples/Update-MgUserOnlineMeeting.md b/src/CloudCommunications/v1.0/examples/Update-MgUserOnlineMeeting.md index d996e0ad92a..2567f3b1907 100644 --- a/src/CloudCommunications/v1.0/examples/Update-MgUserOnlineMeeting.md +++ b/src/CloudCommunications/v1.0/examples/Update-MgUserOnlineMeeting.md @@ -1,31 +1,48 @@ -### Example 1: Code snippet +### Example 1: Retrieve an online meeting by videoTeleconferenceId ```powershell Import-Module Microsoft.Graph.CloudCommunications -$params = @{ - startDateTime = [System.DateTime]::Parse("2020-09-09T14:33:30.8546353-07:00") - endDateTime = [System.DateTime]::Parse("2020-09-09T15:03:30.8566356-07:00") - subject = "Patch Meeting Subject" -} +Get-MgCommunicationOnlineMeeting -Filter "VideoTeleconferenceId eq '123456789'" +``` +This example shows how to use the Update-MgUserOnlineMeeting Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Retrieve an online meeting by meeting ID + +```powershell Import-Module Microsoft.Graph.CloudCommunications # A UPN can also be used as -UserId. -Update-MgUserOnlineMeeting -UserId $userId -OnlineMeetingId $onlineMeetingId -BodyParameter $params +Get-MgUserOnlineMeeting -UserId $userId -OnlineMeetingId $onlineMeetingId ``` This example shows how to use the Update-MgUserOnlineMeeting Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Code snippet +### Example 3: Retrieve an online meeting by joinWebUrl ```powershell Import-Module Microsoft.Graph.CloudCommunications -$params = @{ - lobbyBypassSettings = @{ - isDialInBypassEnabled = $true - } -} +# A UPN can also be used as -UserId. +Get-MgUserOnlineMeeting -UserId $userId -Filter "JoinWebUrl eq 'https://teams.microsoft.com/l/meetup-join/19:meeting_MGQ4MDQyNTEtNTQ2NS00YjQxLTlkM2EtZWVkODYxODYzMmY2@thread.v2/0?context" +``` +This example shows how to use the Update-MgUserOnlineMeeting Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Retrieve an online meeting by joinMeetingId + +```powershell Import-Module Microsoft.Graph.CloudCommunications + +# A UPN can also be used as -UserId. +Get-MgUserOnlineMeeting -UserId $userId -Filter "joinMeetingIdSettings/joinMeetingId eq '1234567890'" +``` +This example shows how to use the Update-MgUserOnlineMeeting Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 5: Fetch attendee report of a Teams live event + +```powershell Import-Module Microsoft.Graph.CloudCommunications # A UPN can also be used as -UserId. -Update-MgUserOnlineMeeting -UserId $userId -OnlineMeetingId $onlineMeetingId -BodyParameter $params +Get-MgUserOnlineMeetingAttendeeReport -UserId $userId -OnlineMeetingId $onlineMeetingId ``` This example shows how to use the Update-MgUserOnlineMeeting Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.CloudPrint/beta/examples/Get-MgBetaPrintTaskDefinition.md b/src/Devices.CloudPrint/beta/examples/Get-MgBetaPrintTaskDefinition.md index b9ab7dde778..e9416567f2d 100644 --- a/src/Devices.CloudPrint/beta/examples/Get-MgBetaPrintTaskDefinition.md +++ b/src/Devices.CloudPrint/beta/examples/Get-MgBetaPrintTaskDefinition.md @@ -2,14 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Devices.CloudPrint -$params = @{ - displayName = "Test TaskDefinitionName" - createdBy = @{ - displayName = "Requesting App Display Name" - } -} - -Update-MgBetaPrintTaskDefinition -PrintTaskDefinitionId $printTaskDefinitionId -BodyParameter $params +Get-MgBetaPrintTaskDefinition -PrintTaskDefinitionId $printTaskDefinitionId ``` This example shows how to use the Get-MgBetaBetaPrintTaskDefinition Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.CloudPrint/beta/examples/Get-MgBetaPrintTaskDefinitionTask.md b/src/Devices.CloudPrint/beta/examples/Get-MgBetaPrintTaskDefinitionTask.md index 8bd47ae98e6..e3b0b9d63da 100644 --- a/src/Devices.CloudPrint/beta/examples/Get-MgBetaPrintTaskDefinitionTask.md +++ b/src/Devices.CloudPrint/beta/examples/Get-MgBetaPrintTaskDefinitionTask.md @@ -2,14 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Devices.CloudPrint -$params = @{ - status = @{ - state = "completed" - description = "completed" - } -} - -Update-MgBetaPrintTaskDefinitionTask -PrintTaskDefinitionId $printTaskDefinitionId -PrintTaskId $printTaskId -BodyParameter $params +Get-MgBetaPrintTaskDefinitionTask -PrintTaskDefinitionId $printTaskDefinitionId -PrintTaskId $printTaskId ``` This example shows how to use the Get-MgBetaBetaPrintTaskDefinitionTask Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.CloudPrint/beta/examples/Remove-MgBetaPrintTaskDefinition.md b/src/Devices.CloudPrint/beta/examples/Remove-MgBetaPrintTaskDefinition.md index c2589c51371..3a9f2300333 100644 --- a/src/Devices.CloudPrint/beta/examples/Remove-MgBetaPrintTaskDefinition.md +++ b/src/Devices.CloudPrint/beta/examples/Remove-MgBetaPrintTaskDefinition.md @@ -2,14 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Devices.CloudPrint -$params = @{ - displayName = "Test TaskDefinitionName" - createdBy = @{ - displayName = "Requesting App Display Name" - } -} - -Update-MgBetaPrintTaskDefinition -PrintTaskDefinitionId $printTaskDefinitionId -BodyParameter $params +Get-MgBetaPrintTaskDefinition -PrintTaskDefinitionId $printTaskDefinitionId ``` This example shows how to use the Remove-MgBetaBetaPrintTaskDefinition Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.CloudPrint/beta/examples/Update-MgBetaPrintTaskDefinition.md b/src/Devices.CloudPrint/beta/examples/Update-MgBetaPrintTaskDefinition.md index 867daa2ef40..874f699873c 100644 --- a/src/Devices.CloudPrint/beta/examples/Update-MgBetaPrintTaskDefinition.md +++ b/src/Devices.CloudPrint/beta/examples/Update-MgBetaPrintTaskDefinition.md @@ -2,14 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Devices.CloudPrint -$params = @{ - displayName = "Test TaskDefinitionName" - createdBy = @{ - displayName = "Requesting App Display Name" - } -} - -Update-MgBetaPrintTaskDefinition -PrintTaskDefinitionId $printTaskDefinitionId -BodyParameter $params +Get-MgBetaPrintTaskDefinition -PrintTaskDefinitionId $printTaskDefinitionId ``` This example shows how to use the Update-MgBetaBetaPrintTaskDefinition Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintConnector.md b/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintConnector.md index f6c6949389e..9e12f1d9d32 100644 --- a/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintConnector.md +++ b/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintConnector.md @@ -1,17 +1,9 @@ -### Example 1: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Devices.CloudPrint -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +Get-MgPrintConnector -PrintConnectorId $printConnectorId +``` +This example shows how to use the Get-MgPrintConnector Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintPrinter.md b/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintPrinter.md index f6c6949389e..826f5ced4db 100644 --- a/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintPrinter.md +++ b/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintPrinter.md @@ -1,17 +1,18 @@ -### Example 1: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} +### Example 1: Get a printer -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Devices.CloudPrint -{{ Add description here }} +Get-MgPrintPrinter -PrinterId $printerId +``` +This example shows how to use the Get-MgPrintPrinter Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Get a printer and its capabilities -### Example 2: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} +```powershell Import-Module Microsoft.Graph.Devices.CloudPrint -{{ Add output here }} -``` - -{{ Add description here }} +Get-MgPrintPrinter -PrinterId $printerId -Property "id,displayName,capabilities" +``` +This example shows how to use the Get-MgPrintPrinter Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintShare.md b/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintShare.md index f6c6949389e..24b4f809f4b 100644 --- a/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintShare.md +++ b/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintShare.md @@ -1,17 +1,18 @@ -### Example 1: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} +### Example 1: Get a printerShare -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Devices.CloudPrint -{{ Add description here }} +Get-MgPrintShare -PrinterShareId $printerShareId +``` +This example shows how to use the Get-MgPrintShare Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Get a printerShare and its capabilities -### Example 2: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} +```powershell Import-Module Microsoft.Graph.Devices.CloudPrint -{{ Add output here }} -``` - -{{ Add description here }} +Get-MgPrintShare -PrinterShareId $printerShareId -Property "id,displayName,capabilities" +``` +This example shows how to use the Get-MgPrintShare Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintTaskDefinition.md b/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintTaskDefinition.md index 42077bb939e..6c821c0e05f 100644 --- a/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintTaskDefinition.md +++ b/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintTaskDefinition.md @@ -2,14 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Devices.CloudPrint -$params = @{ - displayName = "Test TaskDefinitionName" - createdBy = @{ - displayName = "Requesting App Display Name" - } -} - -Update-MgPrintTaskDefinition -PrintTaskDefinitionId $printTaskDefinitionId -BodyParameter $params +Get-MgPrintTaskDefinition -PrintTaskDefinitionId $printTaskDefinitionId ``` This example shows how to use the Get-MgPrintTaskDefinition Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintTaskDefinitionTask.md b/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintTaskDefinitionTask.md index fbf2af2b2d8..c1105ebe9de 100644 --- a/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintTaskDefinitionTask.md +++ b/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintTaskDefinitionTask.md @@ -2,14 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Devices.CloudPrint -$params = @{ - status = @{ - state = "completed" - description = "completed" - } -} - -Update-MgPrintTaskDefinitionTask -PrintTaskDefinitionId $printTaskDefinitionId -PrintTaskId $printTaskId -BodyParameter $params +Get-MgPrintTaskDefinitionTask -PrintTaskDefinitionId $printTaskDefinitionId -PrintTaskId $printTaskId ``` This example shows how to use the Get-MgPrintTaskDefinitionTask Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.CloudPrint/v1.0/examples/Remove-MgPrintTaskDefinition.md b/src/Devices.CloudPrint/v1.0/examples/Remove-MgPrintTaskDefinition.md index ce012b25b8c..948de73b7d8 100644 --- a/src/Devices.CloudPrint/v1.0/examples/Remove-MgPrintTaskDefinition.md +++ b/src/Devices.CloudPrint/v1.0/examples/Remove-MgPrintTaskDefinition.md @@ -2,14 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Devices.CloudPrint -$params = @{ - displayName = "Test TaskDefinitionName" - createdBy = @{ - displayName = "Requesting App Display Name" - } -} - -Update-MgPrintTaskDefinition -PrintTaskDefinitionId $printTaskDefinitionId -BodyParameter $params +Get-MgPrintTaskDefinition -PrintTaskDefinitionId $printTaskDefinitionId ``` This example shows how to use the Remove-MgPrintTaskDefinition Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.CloudPrint/v1.0/examples/Update-MgPrintTaskDefinition.md b/src/Devices.CloudPrint/v1.0/examples/Update-MgPrintTaskDefinition.md index 73535c68164..ebea18b4d3c 100644 --- a/src/Devices.CloudPrint/v1.0/examples/Update-MgPrintTaskDefinition.md +++ b/src/Devices.CloudPrint/v1.0/examples/Update-MgPrintTaskDefinition.md @@ -2,14 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Devices.CloudPrint -$params = @{ - displayName = "Test TaskDefinitionName" - createdBy = @{ - displayName = "Requesting App Display Name" - } -} - -Update-MgPrintTaskDefinition -PrintTaskDefinitionId $printTaskDefinitionId -BodyParameter $params +Get-MgPrintTaskDefinition -PrintTaskDefinitionId $printTaskDefinitionId ``` This example shows how to use the Update-MgPrintTaskDefinition Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.CloudPrint/v1.0/examples/Update-MgPrintTaskDefinitionTask.md b/src/Devices.CloudPrint/v1.0/examples/Update-MgPrintTaskDefinitionTask.md index 776de4721bb..07d15d18f13 100644 --- a/src/Devices.CloudPrint/v1.0/examples/Update-MgPrintTaskDefinitionTask.md +++ b/src/Devices.CloudPrint/v1.0/examples/Update-MgPrintTaskDefinitionTask.md @@ -2,14 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Devices.CloudPrint -$params = @{ - status = @{ - state = "completed" - description = "completed" - } -} - -Update-MgPrintTaskDefinitionTask -PrintTaskDefinitionId $printTaskDefinitionId -PrintTaskId $printTaskId -BodyParameter $params +Get-MgPrintTaskDefinitionTask -PrintTaskDefinitionId $printTaskDefinitionId -PrintTaskId $printTaskId ``` This example shows how to use the Update-MgPrintTaskDefinitionTask Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/beta/examples/Get-MgBetaEducationClass.md b/src/Education/beta/examples/Get-MgBetaEducationClass.md index e9f98ba4699..06a399b8139 100644 --- a/src/Education/beta/examples/Get-MgBetaEducationClass.md +++ b/src/Education/beta/examples/Get-MgBetaEducationClass.md @@ -2,12 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Education -$params = @{ - description = "History - World History 1" - displayName = "World History Level 1" -} - -Update-MgBetaEducationClass -EducationClassId $educationClassId -BodyParameter $params +Get-MgBetaEducationClass -EducationClassId $educationClassId ``` This example shows how to use the Get-MgBetaBetaEducationClass Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/beta/examples/Get-MgBetaEducationClassAssignment.md b/src/Education/beta/examples/Get-MgBetaEducationClassAssignment.md index cd835610d50..2e11e16f615 100644 --- a/src/Education/beta/examples/Get-MgBetaEducationClassAssignment.md +++ b/src/Education/beta/examples/Get-MgBetaEducationClassAssignment.md @@ -2,17 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Education -$params = @{ - displayName = "Reading and review test 09.03 #5" - instructions = @{ - contentType = "text" - content = "Read chapter 5 and write your review" - } - dueDateTime = [System.DateTime]::Parse("2021-09-10T00:00:00Z") - addedStudentAction = "none" -} - -Update-MgBetaEducationClassAssignment -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params +Get-MgBetaEducationClassAssignment -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId ``` This example shows how to use the Get-MgBetaBetaEducationClassAssignment Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/beta/examples/Get-MgBetaEducationClassAssignmentDefault.md b/src/Education/beta/examples/Get-MgBetaEducationClassAssignmentDefault.md index cc0caafb9b3..52558f45376 100644 --- a/src/Education/beta/examples/Get-MgBetaEducationClassAssignmentDefault.md +++ b/src/Education/beta/examples/Get-MgBetaEducationClassAssignmentDefault.md @@ -2,12 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Education -$params = @{ - addedStudentAction = "assignIfOpen" - notificationChannelUrl = "https://graph.microsoft.com/beta/teams('acdefc6b-2dc6-4e71-b1e9-6d9810ab1793')/channels('3da03fc4-8eac-4459-84fb-1422dc01f65e')" -} - -Update-MgBetaEducationClassAssignmentDefault -EducationClassId $educationClassId -BodyParameter $params +Get-MgBetaEducationClassAssignmentDefault -EducationClassId $educationClassId ``` This example shows how to use the Get-MgBetaBetaEducationClassAssignmentDefault Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/beta/examples/Get-MgBetaEducationClassAssignmentRubric.md b/src/Education/beta/examples/Get-MgBetaEducationClassAssignmentRubric.md index 76dcdf2c038..a99fe61f643 100644 --- a/src/Education/beta/examples/Get-MgBetaEducationClassAssignmentRubric.md +++ b/src/Education/beta/examples/Get-MgBetaEducationClassAssignmentRubric.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Education -$params = @{ - "@odata.id" = "https://graph.microsoft.com/v1.0/education/me/rubrics/ceb3863e-6912-4ea9-ac41-3c2bb7b6672d" -} - -Set-MgBetaEducationClassAssignmentRubricByRef -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params +Get-MgBetaEducationClassAssignmentRubric -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId ``` This example shows how to use the Get-MgBetaBetaEducationClassAssignmentRubric Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/beta/examples/Get-MgBetaEducationClassAssignmentSubmissionOutcome.md b/src/Education/beta/examples/Get-MgBetaEducationClassAssignmentSubmissionOutcome.md index 1d594668b4a..863c2558f90 100644 --- a/src/Education/beta/examples/Get-MgBetaEducationClassAssignmentSubmissionOutcome.md +++ b/src/Education/beta/examples/Get-MgBetaEducationClassAssignmentSubmissionOutcome.md @@ -1,46 +1,8 @@ -### Example 1: Update a feedback outcome +### Example 1: Code snippet ```powershell Import-Module Microsoft.Graph.Beta.Education -$params = @{ - "@odata.type" = "#microsoft.graph.educationFeedbackOutcome" -} - -Update-MgBetaEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationOutcomeId $educationOutcomeId -BodyParameter $params -``` -This example shows how to use the Get-MgBetaBetaEducationClassAssignmentSubmissionOutcome Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Update a points outcome - -```powershell Import-Module Microsoft.Graph.Beta.Education - -$params = @{ - "@odata.type" = "#microsoft.graph.educationPointsOutcome" - points = @{ - "@odata.type" = "#microsoft.graph.educationAssignmentPointsGrade" - points = - } -} - -Update-MgBetaEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationOutcomeId $educationOutcomeId -BodyParameter $params -``` -This example shows how to use the Get-MgBetaBetaEducationClassAssignmentSubmissionOutcome Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 3: Update a rubric outcome - -```powershell Import-Module Microsoft.Graph.Beta.Education - -$params = @{ - "@odata.type" = "#microsoft.graph.educationRubricOutcome" - rubricQualityFeedback = @( - ) - rubricQualitySelectedLevels = @( - ) -} - -Update-MgBetaEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationOutcomeId $educationOutcomeId -BodyParameter $params +Remove-MgBetaEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationOutcomeId $educationOutcomeId ``` This example shows how to use the Get-MgBetaBetaEducationClassAssignmentSubmissionOutcome Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/beta/examples/Get-MgBetaEducationMeAssignmentRubric.md b/src/Education/beta/examples/Get-MgBetaEducationMeAssignmentRubric.md index ce459b9bb44..ee195af7284 100644 --- a/src/Education/beta/examples/Get-MgBetaEducationMeAssignmentRubric.md +++ b/src/Education/beta/examples/Get-MgBetaEducationMeAssignmentRubric.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Education -$params = @{ - "@odata.id" = "https://graph.microsoft.com/v1.0/education/me/rubrics/ceb3863e-6912-4ea9-ac41-3c2bb7b6672d" -} - -Set-MgBetaEducationClassAssignmentRubricByRef -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params +Get-MgBetaEducationClassAssignmentRubric -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId ``` This example shows how to use the Get-MgBetaBetaEducationMeAssignmentRubric Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/beta/examples/Get-MgBetaEducationMeAssignmentSubmissionOutcome.md b/src/Education/beta/examples/Get-MgBetaEducationMeAssignmentSubmissionOutcome.md index 49b98ca7421..ac554e26d74 100644 --- a/src/Education/beta/examples/Get-MgBetaEducationMeAssignmentSubmissionOutcome.md +++ b/src/Education/beta/examples/Get-MgBetaEducationMeAssignmentSubmissionOutcome.md @@ -1,46 +1,8 @@ -### Example 1: Update a feedback outcome +### Example 1: Code snippet ```powershell Import-Module Microsoft.Graph.Beta.Education -$params = @{ - "@odata.type" = "#microsoft.graph.educationFeedbackOutcome" -} - -Update-MgBetaEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationOutcomeId $educationOutcomeId -BodyParameter $params -``` -This example shows how to use the Get-MgBetaBetaEducationMeAssignmentSubmissionOutcome Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Update a points outcome - -```powershell Import-Module Microsoft.Graph.Beta.Education - -$params = @{ - "@odata.type" = "#microsoft.graph.educationPointsOutcome" - points = @{ - "@odata.type" = "#microsoft.graph.educationAssignmentPointsGrade" - points = - } -} - -Update-MgBetaEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationOutcomeId $educationOutcomeId -BodyParameter $params -``` -This example shows how to use the Get-MgBetaBetaEducationMeAssignmentSubmissionOutcome Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 3: Update a rubric outcome - -```powershell Import-Module Microsoft.Graph.Beta.Education - -$params = @{ - "@odata.type" = "#microsoft.graph.educationRubricOutcome" - rubricQualityFeedback = @( - ) - rubricQualitySelectedLevels = @( - ) -} - -Update-MgBetaEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationOutcomeId $educationOutcomeId -BodyParameter $params +Remove-MgBetaEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationOutcomeId $educationOutcomeId ``` This example shows how to use the Get-MgBetaBetaEducationMeAssignmentSubmissionOutcome Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/beta/examples/Get-MgBetaEducationMeRubric.md b/src/Education/beta/examples/Get-MgBetaEducationMeRubric.md index 0f37faff5fe..e4586855823 100644 --- a/src/Education/beta/examples/Get-MgBetaEducationMeRubric.md +++ b/src/Education/beta/examples/Get-MgBetaEducationMeRubric.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Education -$params = @{ - displayName = "Example Credit Rubric after display name patch" -} - -Update-MgBetaEducationMeRubric -EducationRubricId $educationRubricId -BodyParameter $params +Get-MgBetaEducationMeRubric -EducationRubricId $educationRubricId ``` This example shows how to use the Get-MgBetaBetaEducationMeRubric Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/beta/examples/Get-MgBetaEducationSchool.md b/src/Education/beta/examples/Get-MgBetaEducationSchool.md index 1fe42301a84..3db51e33168 100644 --- a/src/Education/beta/examples/Get-MgBetaEducationSchool.md +++ b/src/Education/beta/examples/Get-MgBetaEducationSchool.md @@ -2,12 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Education -$params = @{ - displayName = "Fabrikam Arts High School" - description = "Magnate school for the arts. Los Angeles School District" -} - -Update-MgBetaEducationSchool -EducationSchoolId $educationSchoolId -BodyParameter $params +Get-MgBetaEducationSchool -EducationSchoolId $educationSchoolId ``` This example shows how to use the Get-MgBetaBetaEducationSchool Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/beta/examples/Get-MgBetaEducationUser.md b/src/Education/beta/examples/Get-MgBetaEducationUser.md index d45bed1279a..cc7aabae115 100644 --- a/src/Education/beta/examples/Get-MgBetaEducationUser.md +++ b/src/Education/beta/examples/Get-MgBetaEducationUser.md @@ -2,14 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Education -$params = @{ - displayName = "Rogelio Cazares" - givenName = "Rogelio" - middleName = "Fernando" - surname = "Cazares" -} - -Update-MgBetaEducationUser -EducationUserId $educationUserId -BodyParameter $params +Get-MgBetaEducationUser -EducationUserId $educationUserId ``` This example shows how to use the Get-MgBetaBetaEducationUser Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/beta/examples/Get-MgBetaEducationUserAssignmentRubric.md b/src/Education/beta/examples/Get-MgBetaEducationUserAssignmentRubric.md index f57d2149b20..a541c720db3 100644 --- a/src/Education/beta/examples/Get-MgBetaEducationUserAssignmentRubric.md +++ b/src/Education/beta/examples/Get-MgBetaEducationUserAssignmentRubric.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Education -$params = @{ - "@odata.id" = "https://graph.microsoft.com/v1.0/education/me/rubrics/ceb3863e-6912-4ea9-ac41-3c2bb7b6672d" -} - -Set-MgBetaEducationClassAssignmentRubricByRef -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params +Get-MgBetaEducationClassAssignmentRubric -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId ``` This example shows how to use the Get-MgBetaBetaEducationUserAssignmentRubric Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/beta/examples/Get-MgBetaEducationUserAssignmentSubmissionOutcome.md b/src/Education/beta/examples/Get-MgBetaEducationUserAssignmentSubmissionOutcome.md index 72cdff4fd5a..e3e34bbd704 100644 --- a/src/Education/beta/examples/Get-MgBetaEducationUserAssignmentSubmissionOutcome.md +++ b/src/Education/beta/examples/Get-MgBetaEducationUserAssignmentSubmissionOutcome.md @@ -1,46 +1,8 @@ -### Example 1: Update a feedback outcome +### Example 1: Code snippet ```powershell Import-Module Microsoft.Graph.Beta.Education -$params = @{ - "@odata.type" = "#microsoft.graph.educationFeedbackOutcome" -} - -Update-MgBetaEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationOutcomeId $educationOutcomeId -BodyParameter $params -``` -This example shows how to use the Get-MgBetaBetaEducationUserAssignmentSubmissionOutcome Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Update a points outcome - -```powershell Import-Module Microsoft.Graph.Beta.Education - -$params = @{ - "@odata.type" = "#microsoft.graph.educationPointsOutcome" - points = @{ - "@odata.type" = "#microsoft.graph.educationAssignmentPointsGrade" - points = - } -} - -Update-MgBetaEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationOutcomeId $educationOutcomeId -BodyParameter $params -``` -This example shows how to use the Get-MgBetaBetaEducationUserAssignmentSubmissionOutcome Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 3: Update a rubric outcome - -```powershell Import-Module Microsoft.Graph.Beta.Education - -$params = @{ - "@odata.type" = "#microsoft.graph.educationRubricOutcome" - rubricQualityFeedback = @( - ) - rubricQualitySelectedLevels = @( - ) -} - -Update-MgBetaEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationOutcomeId $educationOutcomeId -BodyParameter $params +Remove-MgBetaEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationOutcomeId $educationOutcomeId ``` This example shows how to use the Get-MgBetaBetaEducationUserAssignmentSubmissionOutcome Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/beta/examples/Get-MgBetaEducationUserRubric.md b/src/Education/beta/examples/Get-MgBetaEducationUserRubric.md index ab7f9eb4774..622a3a59335 100644 --- a/src/Education/beta/examples/Get-MgBetaEducationUserRubric.md +++ b/src/Education/beta/examples/Get-MgBetaEducationUserRubric.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Education -$params = @{ - displayName = "Example Credit Rubric after display name patch" -} - -Update-MgBetaEducationMeRubric -EducationRubricId $educationRubricId -BodyParameter $params +Get-MgBetaEducationMeRubric -EducationRubricId $educationRubricId ``` This example shows how to use the Get-MgBetaBetaEducationUserRubric Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/beta/examples/Remove-MgBetaEducationClass.md b/src/Education/beta/examples/Remove-MgBetaEducationClass.md index 31341838a74..8bddcf82815 100644 --- a/src/Education/beta/examples/Remove-MgBetaEducationClass.md +++ b/src/Education/beta/examples/Remove-MgBetaEducationClass.md @@ -2,12 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Education -$params = @{ - description = "History - World History 1" - displayName = "World History Level 1" -} - -Update-MgBetaEducationClass -EducationClassId $educationClassId -BodyParameter $params +Get-MgBetaEducationClass -EducationClassId $educationClassId ``` This example shows how to use the Remove-MgBetaBetaEducationClass Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/beta/examples/Remove-MgBetaEducationClassAssignment.md b/src/Education/beta/examples/Remove-MgBetaEducationClassAssignment.md index fedd50ac64d..3129f7ffa1f 100644 --- a/src/Education/beta/examples/Remove-MgBetaEducationClassAssignment.md +++ b/src/Education/beta/examples/Remove-MgBetaEducationClassAssignment.md @@ -2,17 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Education -$params = @{ - displayName = "Reading and review test 09.03 #5" - instructions = @{ - contentType = "text" - content = "Read chapter 5 and write your review" - } - dueDateTime = [System.DateTime]::Parse("2021-09-10T00:00:00Z") - addedStudentAction = "none" -} - -Update-MgBetaEducationClassAssignment -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params +Get-MgBetaEducationClassAssignment -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId ``` This example shows how to use the Remove-MgBetaBetaEducationClassAssignment Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/beta/examples/Remove-MgBetaEducationClassAssignmentRubric.md b/src/Education/beta/examples/Remove-MgBetaEducationClassAssignmentRubric.md index fbd4afd9a18..8929985d9a8 100644 --- a/src/Education/beta/examples/Remove-MgBetaEducationClassAssignmentRubric.md +++ b/src/Education/beta/examples/Remove-MgBetaEducationClassAssignmentRubric.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Education -$params = @{ - "@odata.id" = "https://graph.microsoft.com/v1.0/education/me/rubrics/ceb3863e-6912-4ea9-ac41-3c2bb7b6672d" -} - -Set-MgBetaEducationClassAssignmentRubricByRef -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params +Get-MgBetaEducationClassAssignmentRubric -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId ``` This example shows how to use the Remove-MgBetaBetaEducationClassAssignmentRubric Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/beta/examples/Remove-MgBetaEducationClassAssignmentSubmissionOutcome.md b/src/Education/beta/examples/Remove-MgBetaEducationClassAssignmentSubmissionOutcome.md index af0b7896654..03e3b4968bc 100644 --- a/src/Education/beta/examples/Remove-MgBetaEducationClassAssignmentSubmissionOutcome.md +++ b/src/Education/beta/examples/Remove-MgBetaEducationClassAssignmentSubmissionOutcome.md @@ -1,46 +1,8 @@ -### Example 1: Update a feedback outcome +### Example 1: Code snippet ```powershell Import-Module Microsoft.Graph.Beta.Education -$params = @{ - "@odata.type" = "#microsoft.graph.educationFeedbackOutcome" -} - -Update-MgBetaEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationOutcomeId $educationOutcomeId -BodyParameter $params -``` -This example shows how to use the Remove-MgBetaBetaEducationClassAssignmentSubmissionOutcome Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Update a points outcome - -```powershell Import-Module Microsoft.Graph.Beta.Education - -$params = @{ - "@odata.type" = "#microsoft.graph.educationPointsOutcome" - points = @{ - "@odata.type" = "#microsoft.graph.educationAssignmentPointsGrade" - points = - } -} - -Update-MgBetaEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationOutcomeId $educationOutcomeId -BodyParameter $params -``` -This example shows how to use the Remove-MgBetaBetaEducationClassAssignmentSubmissionOutcome Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 3: Update a rubric outcome - -```powershell Import-Module Microsoft.Graph.Beta.Education - -$params = @{ - "@odata.type" = "#microsoft.graph.educationRubricOutcome" - rubricQualityFeedback = @( - ) - rubricQualitySelectedLevels = @( - ) -} - -Update-MgBetaEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationOutcomeId $educationOutcomeId -BodyParameter $params +Remove-MgBetaEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationOutcomeId $educationOutcomeId ``` This example shows how to use the Remove-MgBetaBetaEducationClassAssignmentSubmissionOutcome Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/beta/examples/Remove-MgBetaEducationMeAssignmentRubric.md b/src/Education/beta/examples/Remove-MgBetaEducationMeAssignmentRubric.md index 9c67f269277..0545946c22b 100644 --- a/src/Education/beta/examples/Remove-MgBetaEducationMeAssignmentRubric.md +++ b/src/Education/beta/examples/Remove-MgBetaEducationMeAssignmentRubric.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Education -$params = @{ - "@odata.id" = "https://graph.microsoft.com/v1.0/education/me/rubrics/ceb3863e-6912-4ea9-ac41-3c2bb7b6672d" -} - -Set-MgBetaEducationClassAssignmentRubricByRef -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params +Get-MgBetaEducationClassAssignmentRubric -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId ``` This example shows how to use the Remove-MgBetaBetaEducationMeAssignmentRubric Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/beta/examples/Remove-MgBetaEducationMeRubric.md b/src/Education/beta/examples/Remove-MgBetaEducationMeRubric.md index 4c3d8a515f3..f923c524412 100644 --- a/src/Education/beta/examples/Remove-MgBetaEducationMeRubric.md +++ b/src/Education/beta/examples/Remove-MgBetaEducationMeRubric.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Education -$params = @{ - displayName = "Example Credit Rubric after display name patch" -} - -Update-MgBetaEducationMeRubric -EducationRubricId $educationRubricId -BodyParameter $params +Get-MgBetaEducationMeRubric -EducationRubricId $educationRubricId ``` This example shows how to use the Remove-MgBetaBetaEducationMeRubric Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/beta/examples/Remove-MgBetaEducationSchool.md b/src/Education/beta/examples/Remove-MgBetaEducationSchool.md index f543ef69f9a..9c8f604aaa2 100644 --- a/src/Education/beta/examples/Remove-MgBetaEducationSchool.md +++ b/src/Education/beta/examples/Remove-MgBetaEducationSchool.md @@ -2,12 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Education -$params = @{ - displayName = "Fabrikam Arts High School" - description = "Magnate school for the arts. Los Angeles School District" -} - -Update-MgBetaEducationSchool -EducationSchoolId $educationSchoolId -BodyParameter $params +Get-MgBetaEducationSchool -EducationSchoolId $educationSchoolId ``` This example shows how to use the Remove-MgBetaBetaEducationSchool Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/beta/examples/Remove-MgBetaEducationUser.md b/src/Education/beta/examples/Remove-MgBetaEducationUser.md index 6bf6822a1be..5d32f06c178 100644 --- a/src/Education/beta/examples/Remove-MgBetaEducationUser.md +++ b/src/Education/beta/examples/Remove-MgBetaEducationUser.md @@ -2,14 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Education -$params = @{ - displayName = "Rogelio Cazares" - givenName = "Rogelio" - middleName = "Fernando" - surname = "Cazares" -} - -Update-MgBetaEducationUser -EducationUserId $educationUserId -BodyParameter $params +Get-MgBetaEducationUser -EducationUserId $educationUserId ``` This example shows how to use the Remove-MgBetaBetaEducationUser Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/beta/examples/Remove-MgBetaEducationUserAssignmentRubric.md b/src/Education/beta/examples/Remove-MgBetaEducationUserAssignmentRubric.md index 056e58ed30c..9e9120db916 100644 --- a/src/Education/beta/examples/Remove-MgBetaEducationUserAssignmentRubric.md +++ b/src/Education/beta/examples/Remove-MgBetaEducationUserAssignmentRubric.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Education -$params = @{ - "@odata.id" = "https://graph.microsoft.com/v1.0/education/me/rubrics/ceb3863e-6912-4ea9-ac41-3c2bb7b6672d" -} - -Set-MgBetaEducationClassAssignmentRubricByRef -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params +Get-MgBetaEducationClassAssignmentRubric -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId ``` This example shows how to use the Remove-MgBetaBetaEducationUserAssignmentRubric Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/beta/examples/Update-MgBetaEducationClass.md b/src/Education/beta/examples/Update-MgBetaEducationClass.md index 73eafd42432..ee83630c861 100644 --- a/src/Education/beta/examples/Update-MgBetaEducationClass.md +++ b/src/Education/beta/examples/Update-MgBetaEducationClass.md @@ -2,12 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Education -$params = @{ - description = "History - World History 1" - displayName = "World History Level 1" -} - -Update-MgBetaEducationClass -EducationClassId $educationClassId -BodyParameter $params +Get-MgBetaEducationClass -EducationClassId $educationClassId ``` This example shows how to use the Update-MgBetaBetaEducationClass Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/beta/examples/Update-MgBetaEducationClassAssignment.md b/src/Education/beta/examples/Update-MgBetaEducationClassAssignment.md index a0495dfa6b9..4d2bc9d6ef5 100644 --- a/src/Education/beta/examples/Update-MgBetaEducationClassAssignment.md +++ b/src/Education/beta/examples/Update-MgBetaEducationClassAssignment.md @@ -2,17 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Education -$params = @{ - displayName = "Reading and review test 09.03 #5" - instructions = @{ - contentType = "text" - content = "Read chapter 5 and write your review" - } - dueDateTime = [System.DateTime]::Parse("2021-09-10T00:00:00Z") - addedStudentAction = "none" -} - -Update-MgBetaEducationClassAssignment -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params +Get-MgBetaEducationClassAssignment -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId ``` This example shows how to use the Update-MgBetaBetaEducationClassAssignment Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/beta/examples/Update-MgBetaEducationClassAssignmentDefault.md b/src/Education/beta/examples/Update-MgBetaEducationClassAssignmentDefault.md index 71208fbace6..a6ef66abf4e 100644 --- a/src/Education/beta/examples/Update-MgBetaEducationClassAssignmentDefault.md +++ b/src/Education/beta/examples/Update-MgBetaEducationClassAssignmentDefault.md @@ -2,12 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Education -$params = @{ - addedStudentAction = "assignIfOpen" - notificationChannelUrl = "https://graph.microsoft.com/beta/teams('acdefc6b-2dc6-4e71-b1e9-6d9810ab1793')/channels('3da03fc4-8eac-4459-84fb-1422dc01f65e')" -} - -Update-MgBetaEducationClassAssignmentDefault -EducationClassId $educationClassId -BodyParameter $params +Get-MgBetaEducationClassAssignmentDefault -EducationClassId $educationClassId ``` This example shows how to use the Update-MgBetaBetaEducationClassAssignmentDefault Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/beta/examples/Update-MgBetaEducationClassAssignmentRubric.md b/src/Education/beta/examples/Update-MgBetaEducationClassAssignmentRubric.md index 0e6379cdc0e..13d23e89c1f 100644 --- a/src/Education/beta/examples/Update-MgBetaEducationClassAssignmentRubric.md +++ b/src/Education/beta/examples/Update-MgBetaEducationClassAssignmentRubric.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Education -$params = @{ - "@odata.id" = "https://graph.microsoft.com/v1.0/education/me/rubrics/ceb3863e-6912-4ea9-ac41-3c2bb7b6672d" -} - -Set-MgBetaEducationClassAssignmentRubricByRef -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params +Get-MgBetaEducationClassAssignmentRubric -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId ``` This example shows how to use the Update-MgBetaBetaEducationClassAssignmentRubric Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/beta/examples/Update-MgBetaEducationClassAssignmentSubmissionOutcome.md b/src/Education/beta/examples/Update-MgBetaEducationClassAssignmentSubmissionOutcome.md index f65e428409a..021264c3e47 100644 --- a/src/Education/beta/examples/Update-MgBetaEducationClassAssignmentSubmissionOutcome.md +++ b/src/Education/beta/examples/Update-MgBetaEducationClassAssignmentSubmissionOutcome.md @@ -1,46 +1,8 @@ -### Example 1: Update a feedback outcome +### Example 1: Code snippet ```powershell Import-Module Microsoft.Graph.Beta.Education -$params = @{ - "@odata.type" = "#microsoft.graph.educationFeedbackOutcome" -} - -Update-MgBetaEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationOutcomeId $educationOutcomeId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaBetaEducationClassAssignmentSubmissionOutcome Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Update a points outcome - -```powershell Import-Module Microsoft.Graph.Beta.Education - -$params = @{ - "@odata.type" = "#microsoft.graph.educationPointsOutcome" - points = @{ - "@odata.type" = "#microsoft.graph.educationAssignmentPointsGrade" - points = - } -} - -Update-MgBetaEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationOutcomeId $educationOutcomeId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaBetaEducationClassAssignmentSubmissionOutcome Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 3: Update a rubric outcome - -```powershell Import-Module Microsoft.Graph.Beta.Education - -$params = @{ - "@odata.type" = "#microsoft.graph.educationRubricOutcome" - rubricQualityFeedback = @( - ) - rubricQualitySelectedLevels = @( - ) -} - -Update-MgBetaEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationOutcomeId $educationOutcomeId -BodyParameter $params +Remove-MgBetaEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationOutcomeId $educationOutcomeId ``` This example shows how to use the Update-MgBetaBetaEducationClassAssignmentSubmissionOutcome Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/beta/examples/Update-MgBetaEducationMeAssignmentRubric.md b/src/Education/beta/examples/Update-MgBetaEducationMeAssignmentRubric.md index a419cad1569..16c30327a6f 100644 --- a/src/Education/beta/examples/Update-MgBetaEducationMeAssignmentRubric.md +++ b/src/Education/beta/examples/Update-MgBetaEducationMeAssignmentRubric.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Education -$params = @{ - "@odata.id" = "https://graph.microsoft.com/v1.0/education/me/rubrics/ceb3863e-6912-4ea9-ac41-3c2bb7b6672d" -} - -Set-MgBetaEducationClassAssignmentRubricByRef -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params +Get-MgBetaEducationClassAssignmentRubric -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId ``` This example shows how to use the Update-MgBetaBetaEducationMeAssignmentRubric Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/beta/examples/Update-MgBetaEducationMeRubric.md b/src/Education/beta/examples/Update-MgBetaEducationMeRubric.md index e071ea32b41..e5329fd9fe4 100644 --- a/src/Education/beta/examples/Update-MgBetaEducationMeRubric.md +++ b/src/Education/beta/examples/Update-MgBetaEducationMeRubric.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Education -$params = @{ - displayName = "Example Credit Rubric after display name patch" -} - -Update-MgBetaEducationMeRubric -EducationRubricId $educationRubricId -BodyParameter $params +Get-MgBetaEducationMeRubric -EducationRubricId $educationRubricId ``` This example shows how to use the Update-MgBetaBetaEducationMeRubric Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/beta/examples/Update-MgBetaEducationSchool.md b/src/Education/beta/examples/Update-MgBetaEducationSchool.md index ed93a95b891..5cb46e4ac59 100644 --- a/src/Education/beta/examples/Update-MgBetaEducationSchool.md +++ b/src/Education/beta/examples/Update-MgBetaEducationSchool.md @@ -2,12 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Education -$params = @{ - displayName = "Fabrikam Arts High School" - description = "Magnate school for the arts. Los Angeles School District" -} - -Update-MgBetaEducationSchool -EducationSchoolId $educationSchoolId -BodyParameter $params +Get-MgBetaEducationSchool -EducationSchoolId $educationSchoolId ``` This example shows how to use the Update-MgBetaBetaEducationSchool Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/beta/examples/Update-MgBetaEducationUser.md b/src/Education/beta/examples/Update-MgBetaEducationUser.md index b535b1e27c1..164482dc21c 100644 --- a/src/Education/beta/examples/Update-MgBetaEducationUser.md +++ b/src/Education/beta/examples/Update-MgBetaEducationUser.md @@ -2,14 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Education -$params = @{ - displayName = "Rogelio Cazares" - givenName = "Rogelio" - middleName = "Fernando" - surname = "Cazares" -} - -Update-MgBetaEducationUser -EducationUserId $educationUserId -BodyParameter $params +Get-MgBetaEducationUser -EducationUserId $educationUserId ``` This example shows how to use the Update-MgBetaBetaEducationUser Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/beta/examples/Update-MgBetaEducationUserAssignmentRubric.md b/src/Education/beta/examples/Update-MgBetaEducationUserAssignmentRubric.md index 614cb54928c..677eb89778c 100644 --- a/src/Education/beta/examples/Update-MgBetaEducationUserAssignmentRubric.md +++ b/src/Education/beta/examples/Update-MgBetaEducationUserAssignmentRubric.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Education -$params = @{ - "@odata.id" = "https://graph.microsoft.com/v1.0/education/me/rubrics/ceb3863e-6912-4ea9-ac41-3c2bb7b6672d" -} - -Set-MgBetaEducationClassAssignmentRubricByRef -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params +Get-MgBetaEducationClassAssignmentRubric -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId ``` This example shows how to use the Update-MgBetaBetaEducationUserAssignmentRubric Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/v1.0/examples/Get-MgEducationClass.md b/src/Education/v1.0/examples/Get-MgEducationClass.md index b8a2469b62f..4f012aa53f4 100644 --- a/src/Education/v1.0/examples/Get-MgEducationClass.md +++ b/src/Education/v1.0/examples/Get-MgEducationClass.md @@ -2,12 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Education -$params = @{ - description = "History - World History 1" - displayName = "World History Level 1" -} - -Update-MgEducationClass -EducationClassId $educationClassId -BodyParameter $params +Get-MgEducationClass -EducationClassId $educationClassId ``` This example shows how to use the Get-MgEducationClass Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/v1.0/examples/Get-MgEducationClassAssignment.md b/src/Education/v1.0/examples/Get-MgEducationClassAssignment.md index d181f864db1..2d0556fac91 100644 --- a/src/Education/v1.0/examples/Get-MgEducationClassAssignment.md +++ b/src/Education/v1.0/examples/Get-MgEducationClassAssignment.md @@ -2,17 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Education -$params = @{ - displayName = "Reading and review test 09.03 #5" - instructions = @{ - contentType = "text" - content = "Read chapter 5 and write your review" - } - dueDateTime = [System.DateTime]::Parse("2021-09-10T00:00:00Z") - addedStudentAction = "none" -} - -Update-MgEducationClassAssignment -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params +Get-MgEducationClassAssignment -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId ``` This example shows how to use the Get-MgEducationClassAssignment Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/v1.0/examples/Get-MgEducationClassAssignmentDefault.md b/src/Education/v1.0/examples/Get-MgEducationClassAssignmentDefault.md index 092b6ed05ff..4674a6e5348 100644 --- a/src/Education/v1.0/examples/Get-MgEducationClassAssignmentDefault.md +++ b/src/Education/v1.0/examples/Get-MgEducationClassAssignmentDefault.md @@ -2,12 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Education -$params = @{ - addedStudentAction = "assignIfOpen" - notificationChannelUrl = "https://graph.microsoft.com/beta/teams('acdefc6b-2dc6-4e71-b1e9-6d9810ab1793')/channels('3da03fc4-8eac-4459-84fb-1422dc01f65e')" -} - -Update-MgEducationClassAssignmentDefault -EducationClassId $educationClassId -BodyParameter $params +Get-MgEducationClassAssignmentDefault -EducationClassId $educationClassId ``` This example shows how to use the Get-MgEducationClassAssignmentDefault Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/v1.0/examples/Get-MgEducationClassAssignmentRubric.md b/src/Education/v1.0/examples/Get-MgEducationClassAssignmentRubric.md index fc0f0ff022d..aa1d9813b39 100644 --- a/src/Education/v1.0/examples/Get-MgEducationClassAssignmentRubric.md +++ b/src/Education/v1.0/examples/Get-MgEducationClassAssignmentRubric.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Education -$params = @{ - "@odata.id" = "https://graph.microsoft.com/v1.0/education/me/rubrics/ceb3863e-6912-4ea9-ac41-3c2bb7b6672d" -} - -Set-MgEducationClassAssignmentRubricByRef -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params +Get-MgEducationClassAssignmentRubric -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId ``` This example shows how to use the Get-MgEducationClassAssignmentRubric Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/v1.0/examples/Get-MgEducationClassAssignmentSubmissionOutcome.md b/src/Education/v1.0/examples/Get-MgEducationClassAssignmentSubmissionOutcome.md index 322ff721d85..c45402631db 100644 --- a/src/Education/v1.0/examples/Get-MgEducationClassAssignmentSubmissionOutcome.md +++ b/src/Education/v1.0/examples/Get-MgEducationClassAssignmentSubmissionOutcome.md @@ -1,46 +1,8 @@ -### Example 1: Update a feedback outcome +### Example 1: Code snippet ```powershell Import-Module Microsoft.Graph.Education -$params = @{ - "@odata.type" = "#microsoft.graph.educationFeedbackOutcome" -} - -Update-MgEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationOutcomeId $educationOutcomeId -BodyParameter $params -``` -This example shows how to use the Get-MgEducationClassAssignmentSubmissionOutcome Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Update a points outcome - -```powershell Import-Module Microsoft.Graph.Education - -$params = @{ - "@odata.type" = "#microsoft.graph.educationPointsOutcome" - points = @{ - "@odata.type" = "#microsoft.graph.educationAssignmentPointsGrade" - points = - } -} - -Update-MgEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationOutcomeId $educationOutcomeId -BodyParameter $params -``` -This example shows how to use the Get-MgEducationClassAssignmentSubmissionOutcome Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 3: Update a rubric outcome - -```powershell Import-Module Microsoft.Graph.Education - -$params = @{ - "@odata.type" = "#microsoft.graph.educationRubricOutcome" - rubricQualityFeedback = @( - ) - rubricQualitySelectedLevels = @( - ) -} - -Update-MgEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationOutcomeId $educationOutcomeId -BodyParameter $params +Remove-MgEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationOutcomeId $educationOutcomeId ``` This example shows how to use the Get-MgEducationClassAssignmentSubmissionOutcome Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/v1.0/examples/Get-MgEducationMeAssignmentRubric.md b/src/Education/v1.0/examples/Get-MgEducationMeAssignmentRubric.md index 3699712050c..ca48ff2b4e0 100644 --- a/src/Education/v1.0/examples/Get-MgEducationMeAssignmentRubric.md +++ b/src/Education/v1.0/examples/Get-MgEducationMeAssignmentRubric.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Education -$params = @{ - "@odata.id" = "https://graph.microsoft.com/v1.0/education/me/rubrics/ceb3863e-6912-4ea9-ac41-3c2bb7b6672d" -} - -Set-MgEducationClassAssignmentRubricByRef -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params +Get-MgEducationClassAssignmentRubric -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId ``` This example shows how to use the Get-MgEducationMeAssignmentRubric Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/v1.0/examples/Get-MgEducationMeAssignmentSubmissionOutcome.md b/src/Education/v1.0/examples/Get-MgEducationMeAssignmentSubmissionOutcome.md index 80935c0fd0e..f168b77a449 100644 --- a/src/Education/v1.0/examples/Get-MgEducationMeAssignmentSubmissionOutcome.md +++ b/src/Education/v1.0/examples/Get-MgEducationMeAssignmentSubmissionOutcome.md @@ -1,46 +1,8 @@ -### Example 1: Update a feedback outcome +### Example 1: Code snippet ```powershell Import-Module Microsoft.Graph.Education -$params = @{ - "@odata.type" = "#microsoft.graph.educationFeedbackOutcome" -} - -Update-MgEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationOutcomeId $educationOutcomeId -BodyParameter $params -``` -This example shows how to use the Get-MgEducationMeAssignmentSubmissionOutcome Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Update a points outcome - -```powershell Import-Module Microsoft.Graph.Education - -$params = @{ - "@odata.type" = "#microsoft.graph.educationPointsOutcome" - points = @{ - "@odata.type" = "#microsoft.graph.educationAssignmentPointsGrade" - points = - } -} - -Update-MgEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationOutcomeId $educationOutcomeId -BodyParameter $params -``` -This example shows how to use the Get-MgEducationMeAssignmentSubmissionOutcome Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 3: Update a rubric outcome - -```powershell Import-Module Microsoft.Graph.Education - -$params = @{ - "@odata.type" = "#microsoft.graph.educationRubricOutcome" - rubricQualityFeedback = @( - ) - rubricQualitySelectedLevels = @( - ) -} - -Update-MgEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationOutcomeId $educationOutcomeId -BodyParameter $params +Remove-MgEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationOutcomeId $educationOutcomeId ``` This example shows how to use the Get-MgEducationMeAssignmentSubmissionOutcome Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/v1.0/examples/Get-MgEducationMeRubric.md b/src/Education/v1.0/examples/Get-MgEducationMeRubric.md index 82dd147e075..773382f88da 100644 --- a/src/Education/v1.0/examples/Get-MgEducationMeRubric.md +++ b/src/Education/v1.0/examples/Get-MgEducationMeRubric.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Education -$params = @{ - displayName = "Example Credit Rubric after display name patch" -} - -Update-MgEducationMeRubric -EducationRubricId $educationRubricId -BodyParameter $params +Get-MgEducationMeRubric -EducationRubricId $educationRubricId ``` This example shows how to use the Get-MgEducationMeRubric Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/v1.0/examples/Get-MgEducationSchool.md b/src/Education/v1.0/examples/Get-MgEducationSchool.md index 655dd885aa4..a832b6512c3 100644 --- a/src/Education/v1.0/examples/Get-MgEducationSchool.md +++ b/src/Education/v1.0/examples/Get-MgEducationSchool.md @@ -2,12 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Education -$params = @{ - displayName = "Fabrikam Arts High School" - description = "Magnate school for the arts. Los Angeles School District" -} - -Update-MgEducationSchool -EducationSchoolId $educationSchoolId -BodyParameter $params +Get-MgEducationSchool -EducationSchoolId $educationSchoolId ``` This example shows how to use the Get-MgEducationSchool Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/v1.0/examples/Get-MgEducationUser.md b/src/Education/v1.0/examples/Get-MgEducationUser.md index 03321a5aa07..cd9ae72a0d8 100644 --- a/src/Education/v1.0/examples/Get-MgEducationUser.md +++ b/src/Education/v1.0/examples/Get-MgEducationUser.md @@ -2,14 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Education -$params = @{ - displayName = "Rogelio Cazares" - givenName = "Rogelio" - middleName = "Fernando" - surname = "Cazares" -} - -Update-MgEducationUser -EducationUserId $educationUserId -BodyParameter $params +Get-MgEducationUser -EducationUserId $educationUserId ``` This example shows how to use the Get-MgEducationUser Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/v1.0/examples/Get-MgEducationUserAssignmentRubric.md b/src/Education/v1.0/examples/Get-MgEducationUserAssignmentRubric.md index cbb465a941f..d10029ac831 100644 --- a/src/Education/v1.0/examples/Get-MgEducationUserAssignmentRubric.md +++ b/src/Education/v1.0/examples/Get-MgEducationUserAssignmentRubric.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Education -$params = @{ - "@odata.id" = "https://graph.microsoft.com/v1.0/education/me/rubrics/ceb3863e-6912-4ea9-ac41-3c2bb7b6672d" -} - -Set-MgEducationClassAssignmentRubricByRef -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params +Get-MgEducationClassAssignmentRubric -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId ``` This example shows how to use the Get-MgEducationUserAssignmentRubric Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/v1.0/examples/Get-MgEducationUserAssignmentSubmissionOutcome.md b/src/Education/v1.0/examples/Get-MgEducationUserAssignmentSubmissionOutcome.md index 56b50d1d6cd..470a74caf6d 100644 --- a/src/Education/v1.0/examples/Get-MgEducationUserAssignmentSubmissionOutcome.md +++ b/src/Education/v1.0/examples/Get-MgEducationUserAssignmentSubmissionOutcome.md @@ -1,46 +1,8 @@ -### Example 1: Update a feedback outcome +### Example 1: Code snippet ```powershell Import-Module Microsoft.Graph.Education -$params = @{ - "@odata.type" = "#microsoft.graph.educationFeedbackOutcome" -} - -Update-MgEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationOutcomeId $educationOutcomeId -BodyParameter $params -``` -This example shows how to use the Get-MgEducationUserAssignmentSubmissionOutcome Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Update a points outcome - -```powershell Import-Module Microsoft.Graph.Education - -$params = @{ - "@odata.type" = "#microsoft.graph.educationPointsOutcome" - points = @{ - "@odata.type" = "#microsoft.graph.educationAssignmentPointsGrade" - points = - } -} - -Update-MgEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationOutcomeId $educationOutcomeId -BodyParameter $params -``` -This example shows how to use the Get-MgEducationUserAssignmentSubmissionOutcome Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 3: Update a rubric outcome - -```powershell Import-Module Microsoft.Graph.Education - -$params = @{ - "@odata.type" = "#microsoft.graph.educationRubricOutcome" - rubricQualityFeedback = @( - ) - rubricQualitySelectedLevels = @( - ) -} - -Update-MgEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationOutcomeId $educationOutcomeId -BodyParameter $params +Remove-MgEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationOutcomeId $educationOutcomeId ``` This example shows how to use the Get-MgEducationUserAssignmentSubmissionOutcome Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/v1.0/examples/Get-MgEducationUserRubric.md b/src/Education/v1.0/examples/Get-MgEducationUserRubric.md index 9745671e09f..8443da91835 100644 --- a/src/Education/v1.0/examples/Get-MgEducationUserRubric.md +++ b/src/Education/v1.0/examples/Get-MgEducationUserRubric.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Education -$params = @{ - displayName = "Example Credit Rubric after display name patch" -} - -Update-MgEducationMeRubric -EducationRubricId $educationRubricId -BodyParameter $params +Get-MgEducationMeRubric -EducationRubricId $educationRubricId ``` This example shows how to use the Get-MgEducationUserRubric Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/v1.0/examples/Remove-MgEducationClass.md b/src/Education/v1.0/examples/Remove-MgEducationClass.md index f3d2e346352..5be01683550 100644 --- a/src/Education/v1.0/examples/Remove-MgEducationClass.md +++ b/src/Education/v1.0/examples/Remove-MgEducationClass.md @@ -2,12 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Education -$params = @{ - description = "History - World History 1" - displayName = "World History Level 1" -} - -Update-MgEducationClass -EducationClassId $educationClassId -BodyParameter $params +Get-MgEducationClass -EducationClassId $educationClassId ``` This example shows how to use the Remove-MgEducationClass Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/v1.0/examples/Remove-MgEducationClassAssignment.md b/src/Education/v1.0/examples/Remove-MgEducationClassAssignment.md index 4ee1771207a..a90d9ef3d23 100644 --- a/src/Education/v1.0/examples/Remove-MgEducationClassAssignment.md +++ b/src/Education/v1.0/examples/Remove-MgEducationClassAssignment.md @@ -2,17 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Education -$params = @{ - displayName = "Reading and review test 09.03 #5" - instructions = @{ - contentType = "text" - content = "Read chapter 5 and write your review" - } - dueDateTime = [System.DateTime]::Parse("2021-09-10T00:00:00Z") - addedStudentAction = "none" -} - -Update-MgEducationClassAssignment -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params +Get-MgEducationClassAssignment -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId ``` This example shows how to use the Remove-MgEducationClassAssignment Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/v1.0/examples/Remove-MgEducationClassAssignmentRubric.md b/src/Education/v1.0/examples/Remove-MgEducationClassAssignmentRubric.md index f9158fa28b4..a5d69df1614 100644 --- a/src/Education/v1.0/examples/Remove-MgEducationClassAssignmentRubric.md +++ b/src/Education/v1.0/examples/Remove-MgEducationClassAssignmentRubric.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Education -$params = @{ - "@odata.id" = "https://graph.microsoft.com/v1.0/education/me/rubrics/ceb3863e-6912-4ea9-ac41-3c2bb7b6672d" -} - -Set-MgEducationClassAssignmentRubricByRef -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params +Get-MgEducationClassAssignmentRubric -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId ``` This example shows how to use the Remove-MgEducationClassAssignmentRubric Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/v1.0/examples/Remove-MgEducationClassAssignmentSubmissionOutcome.md b/src/Education/v1.0/examples/Remove-MgEducationClassAssignmentSubmissionOutcome.md index f6c6949389e..40e58aa3cee 100644 --- a/src/Education/v1.0/examples/Remove-MgEducationClassAssignmentSubmissionOutcome.md +++ b/src/Education/v1.0/examples/Remove-MgEducationClassAssignmentSubmissionOutcome.md @@ -1,17 +1,9 @@ -### Example 1: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Education -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +Remove-MgEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationOutcomeId $educationOutcomeId +``` +This example shows how to use the Remove-MgEducationClassAssignmentSubmissionOutcome Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/v1.0/examples/Remove-MgEducationMeAssignmentRubric.md b/src/Education/v1.0/examples/Remove-MgEducationMeAssignmentRubric.md index bae2161318f..4b412da93ad 100644 --- a/src/Education/v1.0/examples/Remove-MgEducationMeAssignmentRubric.md +++ b/src/Education/v1.0/examples/Remove-MgEducationMeAssignmentRubric.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Education -$params = @{ - "@odata.id" = "https://graph.microsoft.com/v1.0/education/me/rubrics/ceb3863e-6912-4ea9-ac41-3c2bb7b6672d" -} - -Set-MgEducationClassAssignmentRubricByRef -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params +Get-MgEducationClassAssignmentRubric -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId ``` This example shows how to use the Remove-MgEducationMeAssignmentRubric Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/v1.0/examples/Remove-MgEducationMeRubric.md b/src/Education/v1.0/examples/Remove-MgEducationMeRubric.md index f5a75c47051..7e9499078eb 100644 --- a/src/Education/v1.0/examples/Remove-MgEducationMeRubric.md +++ b/src/Education/v1.0/examples/Remove-MgEducationMeRubric.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Education -$params = @{ - displayName = "Example Credit Rubric after display name patch" -} - -Update-MgEducationMeRubric -EducationRubricId $educationRubricId -BodyParameter $params +Get-MgEducationMeRubric -EducationRubricId $educationRubricId ``` This example shows how to use the Remove-MgEducationMeRubric Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/v1.0/examples/Remove-MgEducationSchool.md b/src/Education/v1.0/examples/Remove-MgEducationSchool.md index 9e2d1499bdd..88de7418549 100644 --- a/src/Education/v1.0/examples/Remove-MgEducationSchool.md +++ b/src/Education/v1.0/examples/Remove-MgEducationSchool.md @@ -2,12 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Education -$params = @{ - displayName = "Fabrikam Arts High School" - description = "Magnate school for the arts. Los Angeles School District" -} - -Update-MgEducationSchool -EducationSchoolId $educationSchoolId -BodyParameter $params +Get-MgEducationSchool -EducationSchoolId $educationSchoolId ``` This example shows how to use the Remove-MgEducationSchool Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/v1.0/examples/Remove-MgEducationUser.md b/src/Education/v1.0/examples/Remove-MgEducationUser.md index aa9e4183937..510909f94cc 100644 --- a/src/Education/v1.0/examples/Remove-MgEducationUser.md +++ b/src/Education/v1.0/examples/Remove-MgEducationUser.md @@ -2,14 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Education -$params = @{ - displayName = "Rogelio Cazares" - givenName = "Rogelio" - middleName = "Fernando" - surname = "Cazares" -} - -Update-MgEducationUser -EducationUserId $educationUserId -BodyParameter $params +Get-MgEducationUser -EducationUserId $educationUserId ``` This example shows how to use the Remove-MgEducationUser Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/v1.0/examples/Remove-MgEducationUserAssignmentRubric.md b/src/Education/v1.0/examples/Remove-MgEducationUserAssignmentRubric.md index 3c972fd21fa..f73b39bb011 100644 --- a/src/Education/v1.0/examples/Remove-MgEducationUserAssignmentRubric.md +++ b/src/Education/v1.0/examples/Remove-MgEducationUserAssignmentRubric.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Education -$params = @{ - "@odata.id" = "https://graph.microsoft.com/v1.0/education/me/rubrics/ceb3863e-6912-4ea9-ac41-3c2bb7b6672d" -} - -Set-MgEducationClassAssignmentRubricByRef -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params +Get-MgEducationClassAssignmentRubric -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId ``` This example shows how to use the Remove-MgEducationUserAssignmentRubric Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/v1.0/examples/Update-MgEducationClass.md b/src/Education/v1.0/examples/Update-MgEducationClass.md index 5d4f9a3f4ec..9c0c59cc324 100644 --- a/src/Education/v1.0/examples/Update-MgEducationClass.md +++ b/src/Education/v1.0/examples/Update-MgEducationClass.md @@ -2,12 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Education -$params = @{ - description = "History - World History 1" - displayName = "World History Level 1" -} - -Update-MgEducationClass -EducationClassId $educationClassId -BodyParameter $params +Get-MgEducationClass -EducationClassId $educationClassId ``` This example shows how to use the Update-MgEducationClass Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/v1.0/examples/Update-MgEducationClassAssignment.md b/src/Education/v1.0/examples/Update-MgEducationClassAssignment.md index 3eb6f3dba9c..842dd31e1cc 100644 --- a/src/Education/v1.0/examples/Update-MgEducationClassAssignment.md +++ b/src/Education/v1.0/examples/Update-MgEducationClassAssignment.md @@ -2,17 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Education -$params = @{ - displayName = "Reading and review test 09.03 #5" - instructions = @{ - contentType = "text" - content = "Read chapter 5 and write your review" - } - dueDateTime = [System.DateTime]::Parse("2021-09-10T00:00:00Z") - addedStudentAction = "none" -} - -Update-MgEducationClassAssignment -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params +Get-MgEducationClassAssignment -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId ``` This example shows how to use the Update-MgEducationClassAssignment Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/v1.0/examples/Update-MgEducationClassAssignmentDefault.md b/src/Education/v1.0/examples/Update-MgEducationClassAssignmentDefault.md index 53a46c27eb7..77e7502fda0 100644 --- a/src/Education/v1.0/examples/Update-MgEducationClassAssignmentDefault.md +++ b/src/Education/v1.0/examples/Update-MgEducationClassAssignmentDefault.md @@ -2,12 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Education -$params = @{ - addedStudentAction = "assignIfOpen" - notificationChannelUrl = "https://graph.microsoft.com/beta/teams('acdefc6b-2dc6-4e71-b1e9-6d9810ab1793')/channels('3da03fc4-8eac-4459-84fb-1422dc01f65e')" -} - -Update-MgEducationClassAssignmentDefault -EducationClassId $educationClassId -BodyParameter $params +Get-MgEducationClassAssignmentDefault -EducationClassId $educationClassId ``` This example shows how to use the Update-MgEducationClassAssignmentDefault Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/v1.0/examples/Update-MgEducationClassAssignmentRubric.md b/src/Education/v1.0/examples/Update-MgEducationClassAssignmentRubric.md index 53d25e5a933..77867f76637 100644 --- a/src/Education/v1.0/examples/Update-MgEducationClassAssignmentRubric.md +++ b/src/Education/v1.0/examples/Update-MgEducationClassAssignmentRubric.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Education -$params = @{ - "@odata.id" = "https://graph.microsoft.com/v1.0/education/me/rubrics/ceb3863e-6912-4ea9-ac41-3c2bb7b6672d" -} - -Set-MgEducationClassAssignmentRubricByRef -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params +Get-MgEducationClassAssignmentRubric -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId ``` This example shows how to use the Update-MgEducationClassAssignmentRubric Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/v1.0/examples/Update-MgEducationClassAssignmentSubmissionOutcome.md b/src/Education/v1.0/examples/Update-MgEducationClassAssignmentSubmissionOutcome.md index e378a709d9c..5411f413e21 100644 --- a/src/Education/v1.0/examples/Update-MgEducationClassAssignmentSubmissionOutcome.md +++ b/src/Education/v1.0/examples/Update-MgEducationClassAssignmentSubmissionOutcome.md @@ -1,46 +1,8 @@ -### Example 1: Update a feedback outcome +### Example 1: Code snippet ```powershell Import-Module Microsoft.Graph.Education -$params = @{ - "@odata.type" = "#microsoft.graph.educationFeedbackOutcome" -} - -Update-MgEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationOutcomeId $educationOutcomeId -BodyParameter $params -``` -This example shows how to use the Update-MgEducationClassAssignmentSubmissionOutcome Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Update a points outcome - -```powershell Import-Module Microsoft.Graph.Education - -$params = @{ - "@odata.type" = "#microsoft.graph.educationPointsOutcome" - points = @{ - "@odata.type" = "#microsoft.graph.educationAssignmentPointsGrade" - points = - } -} - -Update-MgEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationOutcomeId $educationOutcomeId -BodyParameter $params -``` -This example shows how to use the Update-MgEducationClassAssignmentSubmissionOutcome Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 3: Update a rubric outcome - -```powershell Import-Module Microsoft.Graph.Education - -$params = @{ - "@odata.type" = "#microsoft.graph.educationRubricOutcome" - rubricQualityFeedback = @( - ) - rubricQualitySelectedLevels = @( - ) -} - -Update-MgEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationOutcomeId $educationOutcomeId -BodyParameter $params +Remove-MgEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationOutcomeId $educationOutcomeId ``` This example shows how to use the Update-MgEducationClassAssignmentSubmissionOutcome Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/v1.0/examples/Update-MgEducationMeAssignmentRubric.md b/src/Education/v1.0/examples/Update-MgEducationMeAssignmentRubric.md index de533d08a0f..8db3cb5a509 100644 --- a/src/Education/v1.0/examples/Update-MgEducationMeAssignmentRubric.md +++ b/src/Education/v1.0/examples/Update-MgEducationMeAssignmentRubric.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Education -$params = @{ - "@odata.id" = "https://graph.microsoft.com/v1.0/education/me/rubrics/ceb3863e-6912-4ea9-ac41-3c2bb7b6672d" -} - -Set-MgEducationClassAssignmentRubricByRef -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params +Get-MgEducationClassAssignmentRubric -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId ``` This example shows how to use the Update-MgEducationMeAssignmentRubric Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/v1.0/examples/Update-MgEducationMeRubric.md b/src/Education/v1.0/examples/Update-MgEducationMeRubric.md index b0015661785..ae4c46d703a 100644 --- a/src/Education/v1.0/examples/Update-MgEducationMeRubric.md +++ b/src/Education/v1.0/examples/Update-MgEducationMeRubric.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Education -$params = @{ - displayName = "Example Credit Rubric after display name patch" -} - -Update-MgEducationMeRubric -EducationRubricId $educationRubricId -BodyParameter $params +Get-MgEducationMeRubric -EducationRubricId $educationRubricId ``` This example shows how to use the Update-MgEducationMeRubric Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/v1.0/examples/Update-MgEducationSchool.md b/src/Education/v1.0/examples/Update-MgEducationSchool.md index 8d43118d3ed..9c6d9d0eb9d 100644 --- a/src/Education/v1.0/examples/Update-MgEducationSchool.md +++ b/src/Education/v1.0/examples/Update-MgEducationSchool.md @@ -2,12 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Education -$params = @{ - displayName = "Fabrikam Arts High School" - description = "Magnate school for the arts. Los Angeles School District" -} - -Update-MgEducationSchool -EducationSchoolId $educationSchoolId -BodyParameter $params +Get-MgEducationSchool -EducationSchoolId $educationSchoolId ``` This example shows how to use the Update-MgEducationSchool Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/v1.0/examples/Update-MgEducationUser.md b/src/Education/v1.0/examples/Update-MgEducationUser.md index 548a6c25697..6564e415745 100644 --- a/src/Education/v1.0/examples/Update-MgEducationUser.md +++ b/src/Education/v1.0/examples/Update-MgEducationUser.md @@ -2,14 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Education -$params = @{ - displayName = "Rogelio Cazares" - givenName = "Rogelio" - middleName = "Fernando" - surname = "Cazares" -} - -Update-MgEducationUser -EducationUserId $educationUserId -BodyParameter $params +Get-MgEducationUser -EducationUserId $educationUserId ``` This example shows how to use the Update-MgEducationUser Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/v1.0/examples/Update-MgEducationUserAssignmentRubric.md b/src/Education/v1.0/examples/Update-MgEducationUserAssignmentRubric.md index 74f1f1ef7a8..3ddeb731ea3 100644 --- a/src/Education/v1.0/examples/Update-MgEducationUserAssignmentRubric.md +++ b/src/Education/v1.0/examples/Update-MgEducationUserAssignmentRubric.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Education -$params = @{ - "@odata.id" = "https://graph.microsoft.com/v1.0/education/me/rubrics/ceb3863e-6912-4ea9-ac41-3c2bb7b6672d" -} - -Set-MgEducationClassAssignmentRubricByRef -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params +Get-MgEducationClassAssignmentRubric -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId ``` This example shows how to use the Update-MgEducationUserAssignmentRubric Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Files/beta/examples/Get-MgBetaDriveItem.md b/src/Files/beta/examples/Get-MgBetaDriveItem.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Get-MgBetaDriveItem.md +++ b/src/Files/beta/examples/Get-MgBetaDriveItem.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Get-MgBetaGroupDriveItem.md b/src/Files/beta/examples/Get-MgBetaGroupDriveItem.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Get-MgBetaGroupDriveItem.md +++ b/src/Files/beta/examples/Get-MgBetaGroupDriveItem.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Get-MgBetaUserDriveItem.md b/src/Files/beta/examples/Get-MgBetaUserDriveItem.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Get-MgBetaUserDriveItem.md +++ b/src/Files/beta/examples/Get-MgBetaUserDriveItem.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Remove-MgBetaDriveItem.md b/src/Files/beta/examples/Remove-MgBetaDriveItem.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Remove-MgBetaDriveItem.md +++ b/src/Files/beta/examples/Remove-MgBetaDriveItem.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Remove-MgBetaGroupDriveItem.md b/src/Files/beta/examples/Remove-MgBetaGroupDriveItem.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Remove-MgBetaGroupDriveItem.md +++ b/src/Files/beta/examples/Remove-MgBetaGroupDriveItem.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Remove-MgBetaUserDriveItem.md b/src/Files/beta/examples/Remove-MgBetaUserDriveItem.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Remove-MgBetaUserDriveItem.md +++ b/src/Files/beta/examples/Remove-MgBetaUserDriveItem.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Update-MgBetaDriveItem.md b/src/Files/beta/examples/Update-MgBetaDriveItem.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Update-MgBetaDriveItem.md +++ b/src/Files/beta/examples/Update-MgBetaDriveItem.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Update-MgBetaGroupDriveItem.md b/src/Files/beta/examples/Update-MgBetaGroupDriveItem.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Update-MgBetaGroupDriveItem.md +++ b/src/Files/beta/examples/Update-MgBetaGroupDriveItem.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Update-MgBetaUserDriveItem.md b/src/Files/beta/examples/Update-MgBetaUserDriveItem.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Update-MgBetaUserDriveItem.md +++ b/src/Files/beta/examples/Update-MgBetaUserDriveItem.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Get-MgDriveBundle.md b/src/Files/v1.0/examples/Get-MgDriveBundle.md index 1cacc4eb98f..794d043dfe8 100644 --- a/src/Files/v1.0/examples/Get-MgDriveBundle.md +++ b/src/Files/v1.0/examples/Get-MgDriveBundle.md @@ -7,6 +7,15 @@ Get-MgDriveBundle -DriveId $driveId -DriveItemId $driveItemId This example shows how to use the Get-MgDriveBundle Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Get a bundle and its children in a single call + +```powershell Import-Module Microsoft.Graph.Files + +Get-MgDriveItem -DriveId $driveId -DriveItemId $driveItemId -ExpandProperty "children" +``` +This example shows how to use the Get-MgDriveBundle Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + ### Example 1: {{ Add title here }} ```powershell PS C:\> {{ Add code here }} diff --git a/src/Files/v1.0/examples/Get-MgDriveItem.md b/src/Files/v1.0/examples/Get-MgDriveItem.md index 093355d11d5..10a47d5caf1 100644 --- a/src/Files/v1.0/examples/Get-MgDriveItem.md +++ b/src/Files/v1.0/examples/Get-MgDriveItem.md @@ -1,18 +1,26 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 2: Get a bundle and its children in a single call -{{ Add output here }} +```powershell Import-Module Microsoft.Graph.Files + +Get-MgDriveItem -DriveId $driveId -DriveItemId $driveItemId -ExpandProperty "children" +``` +This example shows how to use the Get-MgDriveItem Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 1: {{ Add title here }} +```powershell + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -{{ Add description here }} +{{ Add description here }} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 2: {{ Add title here }} +```powershell + PS C:\> {{ Add code here }} -{{ Add output here }} +{{ Add output here }} ``` -{{ Add description here }} - +{{ Add description here }} diff --git a/src/Files/v1.0/examples/Get-MgDriveItemPermission.md b/src/Files/v1.0/examples/Get-MgDriveItemPermission.md index f6c6949389e..6def7b51e7b 100644 --- a/src/Files/v1.0/examples/Get-MgDriveItemPermission.md +++ b/src/Files/v1.0/examples/Get-MgDriveItemPermission.md @@ -1,17 +1,9 @@ -### Example 1: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Files -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +Get-MgDriveItemPermission -DriveId $driveId -DriveItemId $driveItemId -PermissionId $permissionId +``` +This example shows how to use the Get-MgDriveItemPermission Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Files/v1.0/examples/Get-MgGroupDriveItem.md b/src/Files/v1.0/examples/Get-MgGroupDriveItem.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Get-MgGroupDriveItem.md +++ b/src/Files/v1.0/examples/Get-MgGroupDriveItem.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Get-MgUserDriveItem.md b/src/Files/v1.0/examples/Get-MgUserDriveItem.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Get-MgUserDriveItem.md +++ b/src/Files/v1.0/examples/Get-MgUserDriveItem.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Remove-MgDriveItem.md b/src/Files/v1.0/examples/Remove-MgDriveItem.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Remove-MgDriveItem.md +++ b/src/Files/v1.0/examples/Remove-MgDriveItem.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Remove-MgGroupDriveItem.md b/src/Files/v1.0/examples/Remove-MgGroupDriveItem.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Remove-MgGroupDriveItem.md +++ b/src/Files/v1.0/examples/Remove-MgGroupDriveItem.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Remove-MgUserDriveItem.md b/src/Files/v1.0/examples/Remove-MgUserDriveItem.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Remove-MgUserDriveItem.md +++ b/src/Files/v1.0/examples/Remove-MgUserDriveItem.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Update-MgDriveItem.md b/src/Files/v1.0/examples/Update-MgDriveItem.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Update-MgDriveItem.md +++ b/src/Files/v1.0/examples/Update-MgDriveItem.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Update-MgDriveItemPermission.md b/src/Files/v1.0/examples/Update-MgDriveItemPermission.md index 8a88b384ccf..3e95ff709a0 100644 --- a/src/Files/v1.0/examples/Update-MgDriveItemPermission.md +++ b/src/Files/v1.0/examples/Update-MgDriveItemPermission.md @@ -2,13 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Files -$params = @{ - roles = @( - "read" - ) -} - -Update-MgDriveItemPermission -DriveId $driveId -DriveItemId $driveItemId -PermissionId $permissionId -BodyParameter $params +Get-MgDriveItemPermission -DriveId $driveId -DriveItemId $driveItemId -PermissionId $permissionId ``` This example shows how to use the Update-MgDriveItemPermission Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Files/v1.0/examples/Update-MgGroupDriveItem.md b/src/Files/v1.0/examples/Update-MgGroupDriveItem.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Update-MgGroupDriveItem.md +++ b/src/Files/v1.0/examples/Update-MgGroupDriveItem.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Update-MgUserDriveItem.md b/src/Files/v1.0/examples/Update-MgUserDriveItem.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Update-MgUserDriveItem.md +++ b/src/Files/v1.0/examples/Update-MgUserDriveItem.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Groups/beta/examples/Get-MgBetaGroupLifecyclePolicy.md b/src/Groups/beta/examples/Get-MgBetaGroupLifecyclePolicy.md index 0812855ad17..b9cf709e503 100644 --- a/src/Groups/beta/examples/Get-MgBetaGroupLifecyclePolicy.md +++ b/src/Groups/beta/examples/Get-MgBetaGroupLifecyclePolicy.md @@ -2,13 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Groups -$params = @{ - groupLifetimeInDays = 180 - managedGroupTypes = "Selected" - alternateNotificationEmails = "admin@contoso.com" -} - -Update-MgBetaGroupLifecyclePolicy -GroupLifecyclePolicyId $groupLifecyclePolicyId -BodyParameter $params +Get-MgBetaGroupLifecyclePolicy -GroupLifecyclePolicyId $groupLifecyclePolicyId ``` This example shows how to use the Get-MgBetaBetaGroupLifecyclePolicy Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/beta/examples/Get-MgBetaGroupThread.md b/src/Groups/beta/examples/Get-MgBetaGroupThread.md index 2edb435c080..4a22fd0c9ff 100644 --- a/src/Groups/beta/examples/Get-MgBetaGroupThread.md +++ b/src/Groups/beta/examples/Get-MgBetaGroupThread.md @@ -2,15 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Groups -$params = @{ - originalStartTimeZone = "originalStartTimeZone-value" - originalEndTimeZone = "originalEndTimeZone-value" - iCalUId = "iCalUId-value" - reminderMinutesBeforeStart = - isReminderOn = $true -} - -Update-MgBetaGroupThread -GroupId $groupId -ConversationThreadId $conversationThreadId -BodyParameter $params +Get-MgBetaGroupThread -GroupId $groupId -ConversationThreadId $conversationThreadId ``` This example shows how to use the Get-MgBetaBetaGroupThread Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/beta/examples/Get-MgBetaGroupThreadPostExtension.md b/src/Groups/beta/examples/Get-MgBetaGroupThreadPostExtension.md index bfb7d8d228c..a939c3f1117 100644 --- a/src/Groups/beta/examples/Get-MgBetaGroupThreadPostExtension.md +++ b/src/Groups/beta/examples/Get-MgBetaGroupThreadPostExtension.md @@ -1,21 +1,47 @@ ### Example 1: Code snippet +```powershell Import-Module Microsoft.Graph.Beta.Mail + +# A UPN can also be used as -UserId. +Get-MgBetaUserMessageExtension -UserId $userId -MessageId $messageId -ExtensionId $extensionId +``` +This example shows how to use the Get-MgBetaBetaGroupThreadPostExtension Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Calendar + +Get-MgBetaGroupEventExtension -GroupId $groupId -EventId $eventId -ExtensionId $extensionId +``` +This example shows how to use the Get-MgBetaBetaGroupThreadPostExtension Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Mail + +# A UPN can also be used as -UserId. +Get-MgBetaUserMessage -UserId $userId -MessageId $messageId -ExpandProperty "extensions(`$filter=id eq 'Microsoft.OutlookServices.OpenTypeExtension.Com.Contoso.Referral')" +``` +This example shows how to use the Get-MgBetaBetaGroupThreadPostExtension Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Code snippet + ```powershell Import-Module Microsoft.Graph.Beta.Groups -$params = @{ - "@odata.type" = "Microsoft.OutlookServices.OpenTypeExtension" - extensionName = "Com.Contoso.Estimate" - companyName = "Contoso" - expirationDate = "2016-07-30T11:00:00.000Z" - DealValue = - topPicks = @( - "Employees only" - "Add spouse or guest" - "Add family" - ) -} - -Update-MgBetaGroupThreadPostExtension -GroupId $groupId -ConversationThreadId $conversationThreadId -PostId $postId -ExtensionId $extensionId -BodyParameter $params +Get-MgBetaGroupThreadPostExtension -GroupId $groupId -ConversationThreadId $conversationThreadId -PostId $postId -ExtensionId $extensionId +``` +This example shows how to use the Get-MgBetaBetaGroupThreadPostExtension Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 5: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Mail + +# A UPN can also be used as -UserId. +Get-MgBetaUserMessage -UserId $userId -Filter "Extensions/any(f:f/id eq 'Com.Contoso.Referral')" -ExpandProperty "Extensions(`$filter=id eq 'Com.Contoso.Referral')" ``` This example shows how to use the Get-MgBetaBetaGroupThreadPostExtension Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/beta/examples/New-MgBetaGroupMemberByRef.md b/src/Groups/beta/examples/New-MgBetaGroupMemberByRef.md index 9c7139ce060..53725faf27b 100644 --- a/src/Groups/beta/examples/New-MgBetaGroupMemberByRef.md +++ b/src/Groups/beta/examples/New-MgBetaGroupMemberByRef.md @@ -1,4 +1,4 @@ -### Example 1: Code snippet +### Example 1: Add a member to a group ```powershell Import-Module Microsoft.Graph.Beta.Groups @@ -11,3 +11,20 @@ New-MgBetaGroupMemberByRef -GroupId $groupId -BodyParameter $params This example shows how to use the New-MgBetaBetaGroupMemberByRef Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Add multiple members to a group in a single request + +```powershell Import-Module Microsoft.Graph.Beta.Groups + +$params = @{ + "members@odata.bind" = @( + "https://graph.microsoft.com/v1.0/directoryObjects/{id}" + "https://graph.microsoft.com/v1.0/directoryObjects/{id}" + "https://graph.microsoft.com/v1.0/directoryObjects/{id}" + ) +} + +Update-MgBetaGroup -GroupId $groupId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaGroupMemberByRef Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Groups/beta/examples/Remove-MgBetaGroupLifecyclePolicy.md b/src/Groups/beta/examples/Remove-MgBetaGroupLifecyclePolicy.md index 5529467d78e..4cf730e197a 100644 --- a/src/Groups/beta/examples/Remove-MgBetaGroupLifecyclePolicy.md +++ b/src/Groups/beta/examples/Remove-MgBetaGroupLifecyclePolicy.md @@ -2,13 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Groups -$params = @{ - groupLifetimeInDays = 180 - managedGroupTypes = "Selected" - alternateNotificationEmails = "admin@contoso.com" -} - -Update-MgBetaGroupLifecyclePolicy -GroupLifecyclePolicyId $groupLifecyclePolicyId -BodyParameter $params +Get-MgBetaGroupLifecyclePolicy -GroupLifecyclePolicyId $groupLifecyclePolicyId ``` This example shows how to use the Remove-MgBetaBetaGroupLifecyclePolicy Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/beta/examples/Remove-MgBetaGroupThread.md b/src/Groups/beta/examples/Remove-MgBetaGroupThread.md index 164e8fe3e95..a65f9700817 100644 --- a/src/Groups/beta/examples/Remove-MgBetaGroupThread.md +++ b/src/Groups/beta/examples/Remove-MgBetaGroupThread.md @@ -2,15 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Groups -$params = @{ - originalStartTimeZone = "originalStartTimeZone-value" - originalEndTimeZone = "originalEndTimeZone-value" - iCalUId = "iCalUId-value" - reminderMinutesBeforeStart = - isReminderOn = $true -} - -Update-MgBetaGroupThread -GroupId $groupId -ConversationThreadId $conversationThreadId -BodyParameter $params +Get-MgBetaGroupThread -GroupId $groupId -ConversationThreadId $conversationThreadId ``` This example shows how to use the Remove-MgBetaBetaGroupThread Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/beta/examples/Update-MgBetaGroupLifecyclePolicy.md b/src/Groups/beta/examples/Update-MgBetaGroupLifecyclePolicy.md index 783793ef092..8543ff47483 100644 --- a/src/Groups/beta/examples/Update-MgBetaGroupLifecyclePolicy.md +++ b/src/Groups/beta/examples/Update-MgBetaGroupLifecyclePolicy.md @@ -2,13 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Groups -$params = @{ - groupLifetimeInDays = 180 - managedGroupTypes = "Selected" - alternateNotificationEmails = "admin@contoso.com" -} - -Update-MgBetaGroupLifecyclePolicy -GroupLifecyclePolicyId $groupLifecyclePolicyId -BodyParameter $params +Get-MgBetaGroupLifecyclePolicy -GroupLifecyclePolicyId $groupLifecyclePolicyId ``` This example shows how to use the Update-MgBetaBetaGroupLifecyclePolicy Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/beta/examples/Update-MgBetaGroupThread.md b/src/Groups/beta/examples/Update-MgBetaGroupThread.md index e82c104f1a4..fa4d23b2917 100644 --- a/src/Groups/beta/examples/Update-MgBetaGroupThread.md +++ b/src/Groups/beta/examples/Update-MgBetaGroupThread.md @@ -2,15 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Groups -$params = @{ - originalStartTimeZone = "originalStartTimeZone-value" - originalEndTimeZone = "originalEndTimeZone-value" - iCalUId = "iCalUId-value" - reminderMinutesBeforeStart = - isReminderOn = $true -} - -Update-MgBetaGroupThread -GroupId $groupId -ConversationThreadId $conversationThreadId -BodyParameter $params +Get-MgBetaGroupThread -GroupId $groupId -ConversationThreadId $conversationThreadId ``` This example shows how to use the Update-MgBetaBetaGroupThread Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/beta/examples/Update-MgBetaGroupThreadPostExtension.md b/src/Groups/beta/examples/Update-MgBetaGroupThreadPostExtension.md index 2fb0a353d51..da1ce9b9e53 100644 --- a/src/Groups/beta/examples/Update-MgBetaGroupThreadPostExtension.md +++ b/src/Groups/beta/examples/Update-MgBetaGroupThreadPostExtension.md @@ -1,21 +1,47 @@ ### Example 1: Code snippet +```powershell Import-Module Microsoft.Graph.Beta.Mail + +# A UPN can also be used as -UserId. +Get-MgBetaUserMessageExtension -UserId $userId -MessageId $messageId -ExtensionId $extensionId +``` +This example shows how to use the Update-MgBetaBetaGroupThreadPostExtension Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Calendar + +Get-MgBetaGroupEventExtension -GroupId $groupId -EventId $eventId -ExtensionId $extensionId +``` +This example shows how to use the Update-MgBetaBetaGroupThreadPostExtension Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Mail + +# A UPN can also be used as -UserId. +Get-MgBetaUserMessage -UserId $userId -MessageId $messageId -ExpandProperty "extensions(`$filter=id eq 'Microsoft.OutlookServices.OpenTypeExtension.Com.Contoso.Referral')" +``` +This example shows how to use the Update-MgBetaBetaGroupThreadPostExtension Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Code snippet + ```powershell Import-Module Microsoft.Graph.Beta.Groups -$params = @{ - "@odata.type" = "Microsoft.OutlookServices.OpenTypeExtension" - extensionName = "Com.Contoso.Estimate" - companyName = "Contoso" - expirationDate = "2016-07-30T11:00:00.000Z" - DealValue = - topPicks = @( - "Employees only" - "Add spouse or guest" - "Add family" - ) -} - -Update-MgBetaGroupThreadPostExtension -GroupId $groupId -ConversationThreadId $conversationThreadId -PostId $postId -ExtensionId $extensionId -BodyParameter $params +Get-MgBetaGroupThreadPostExtension -GroupId $groupId -ConversationThreadId $conversationThreadId -PostId $postId -ExtensionId $extensionId +``` +This example shows how to use the Update-MgBetaBetaGroupThreadPostExtension Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 5: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Mail + +# A UPN can also be used as -UserId. +Get-MgBetaUserMessage -UserId $userId -Filter "Extensions/any(f:f/id eq 'Com.Contoso.Referral')" -ExpandProperty "Extensions(`$filter=id eq 'Com.Contoso.Referral')" ``` This example shows how to use the Update-MgBetaBetaGroupThreadPostExtension Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/v1.0/examples/Get-MgGroupLifecyclePolicy.md b/src/Groups/v1.0/examples/Get-MgGroupLifecyclePolicy.md index 7e15a7e8352..d260f2c487a 100644 --- a/src/Groups/v1.0/examples/Get-MgGroupLifecyclePolicy.md +++ b/src/Groups/v1.0/examples/Get-MgGroupLifecyclePolicy.md @@ -2,13 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Groups -$params = @{ - groupLifetimeInDays = 180 - managedGroupTypes = "Selected" - alternateNotificationEmails = "admin@contoso.com" -} - -Update-MgGroupLifecyclePolicy -GroupLifecyclePolicyId $groupLifecyclePolicyId -BodyParameter $params +Get-MgGroupLifecyclePolicy -GroupLifecyclePolicyId $groupLifecyclePolicyId ``` This example shows how to use the Get-MgGroupLifecyclePolicy Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/v1.0/examples/Get-MgGroupThread.md b/src/Groups/v1.0/examples/Get-MgGroupThread.md index 41fb903ba2d..ef0ada4dee8 100644 --- a/src/Groups/v1.0/examples/Get-MgGroupThread.md +++ b/src/Groups/v1.0/examples/Get-MgGroupThread.md @@ -2,15 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Groups -$params = @{ - originalStartTimeZone = "originalStartTimeZone-value" - originalEndTimeZone = "originalEndTimeZone-value" - iCalUId = "iCalUId-value" - reminderMinutesBeforeStart = - isReminderOn = $true -} - -Update-MgGroupThread -GroupId $groupId -ConversationThreadId $conversationThreadId -BodyParameter $params +Get-MgGroupThread -GroupId $groupId -ConversationThreadId $conversationThreadId ``` This example shows how to use the Get-MgGroupThread Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/v1.0/examples/Get-MgGroupThreadPostExtension.md b/src/Groups/v1.0/examples/Get-MgGroupThreadPostExtension.md index 1c861e0f306..ebd3295d496 100644 --- a/src/Groups/v1.0/examples/Get-MgGroupThreadPostExtension.md +++ b/src/Groups/v1.0/examples/Get-MgGroupThreadPostExtension.md @@ -1,21 +1,47 @@ ### Example 1: Code snippet +```powershell Import-Module Microsoft.Graph.Mail + +# A UPN can also be used as -UserId. +Get-MgUserMessageExtension -UserId $userId -MessageId $messageId -ExtensionId $extensionId +``` +This example shows how to use the Get-MgGroupThreadPostExtension Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Code snippet + +```powershell Import-Module Microsoft.Graph.Calendar + +Get-MgGroupEventExtension -GroupId $groupId -EventId $eventId -ExtensionId $extensionId +``` +This example shows how to use the Get-MgGroupThreadPostExtension Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Code snippet + +```powershell Import-Module Microsoft.Graph.Mail + +# A UPN can also be used as -UserId. +Get-MgUserMessage -UserId $userId -MessageId $messageId -ExpandProperty "extensions(`$filter=id eq 'Microsoft.OutlookServices.OpenTypeExtension.Com.Contoso.Referral')" +``` +This example shows how to use the Get-MgGroupThreadPostExtension Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Code snippet + ```powershell Import-Module Microsoft.Graph.Groups -$params = @{ - "@odata.type" = "Microsoft.OutlookServices.OpenTypeExtension" - extensionName = "Com.Contoso.Estimate" - companyName = "Contoso" - expirationDate = "2016-07-30T11:00:00.000Z" - DealValue = - topPicks = @( - "Employees only" - "Add spouse or guest" - "Add family" - ) -} - -Update-MgGroupThreadPostExtension -GroupId $groupId -ConversationThreadId $conversationThreadId -PostId $postId -ExtensionId $extensionId -BodyParameter $params +Get-MgGroupThreadPostExtension -GroupId $groupId -ConversationThreadId $conversationThreadId -PostId $postId -ExtensionId $extensionId +``` +This example shows how to use the Get-MgGroupThreadPostExtension Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 5: Code snippet + +```powershell Import-Module Microsoft.Graph.Mail + +# A UPN can also be used as -UserId. +Get-MgUserMessage -UserId $userId -Filter "Extensions/any(f:f/id eq 'Com.Contoso.Referral')" -ExpandProperty "Extensions(`$filter=id eq 'Com.Contoso.Referral')" ``` This example shows how to use the Get-MgGroupThreadPostExtension Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/v1.0/examples/New-MgGroupMemberByRef.md b/src/Groups/v1.0/examples/New-MgGroupMemberByRef.md index 9e3f8d3e2af..2864053daa2 100644 --- a/src/Groups/v1.0/examples/New-MgGroupMemberByRef.md +++ b/src/Groups/v1.0/examples/New-MgGroupMemberByRef.md @@ -1,4 +1,4 @@ -### Example 1: Code snippet +### Example 1: Add a member to a group ```powershell Import-Module Microsoft.Graph.Groups @@ -11,3 +11,20 @@ New-MgGroupMemberByRef -GroupId $groupId -BodyParameter $params This example shows how to use the New-MgGroupMemberByRef Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Add multiple members to a group in a single request + +```powershell Import-Module Microsoft.Graph.Groups + +$params = @{ + "members@odata.bind" = @( + "https://graph.microsoft.com/v1.0/directoryObjects/{id}" + "https://graph.microsoft.com/v1.0/directoryObjects/{id}" + "https://graph.microsoft.com/v1.0/directoryObjects/{id}" + ) +} + +Update-MgGroup -GroupId $groupId -BodyParameter $params +``` +This example shows how to use the New-MgGroupMemberByRef Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Groups/v1.0/examples/Remove-MgGroupLifecyclePolicy.md b/src/Groups/v1.0/examples/Remove-MgGroupLifecyclePolicy.md index 032d9549d7c..f219291b271 100644 --- a/src/Groups/v1.0/examples/Remove-MgGroupLifecyclePolicy.md +++ b/src/Groups/v1.0/examples/Remove-MgGroupLifecyclePolicy.md @@ -2,13 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Groups -$params = @{ - groupLifetimeInDays = 180 - managedGroupTypes = "Selected" - alternateNotificationEmails = "admin@contoso.com" -} - -Update-MgGroupLifecyclePolicy -GroupLifecyclePolicyId $groupLifecyclePolicyId -BodyParameter $params +Get-MgGroupLifecyclePolicy -GroupLifecyclePolicyId $groupLifecyclePolicyId ``` This example shows how to use the Remove-MgGroupLifecyclePolicy Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/v1.0/examples/Remove-MgGroupThread.md b/src/Groups/v1.0/examples/Remove-MgGroupThread.md index 4c26f6bea0a..fb6f5bc8e16 100644 --- a/src/Groups/v1.0/examples/Remove-MgGroupThread.md +++ b/src/Groups/v1.0/examples/Remove-MgGroupThread.md @@ -2,15 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Groups -$params = @{ - originalStartTimeZone = "originalStartTimeZone-value" - originalEndTimeZone = "originalEndTimeZone-value" - iCalUId = "iCalUId-value" - reminderMinutesBeforeStart = - isReminderOn = $true -} - -Update-MgGroupThread -GroupId $groupId -ConversationThreadId $conversationThreadId -BodyParameter $params +Get-MgGroupThread -GroupId $groupId -ConversationThreadId $conversationThreadId ``` This example shows how to use the Remove-MgGroupThread Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/v1.0/examples/Update-MgGroupLifecyclePolicy.md b/src/Groups/v1.0/examples/Update-MgGroupLifecyclePolicy.md index b8f012c1717..6ebe30055af 100644 --- a/src/Groups/v1.0/examples/Update-MgGroupLifecyclePolicy.md +++ b/src/Groups/v1.0/examples/Update-MgGroupLifecyclePolicy.md @@ -2,13 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Groups -$params = @{ - groupLifetimeInDays = 180 - managedGroupTypes = "Selected" - alternateNotificationEmails = "admin@contoso.com" -} - -Update-MgGroupLifecyclePolicy -GroupLifecyclePolicyId $groupLifecyclePolicyId -BodyParameter $params +Get-MgGroupLifecyclePolicy -GroupLifecyclePolicyId $groupLifecyclePolicyId ``` This example shows how to use the Update-MgGroupLifecyclePolicy Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/v1.0/examples/Update-MgGroupThread.md b/src/Groups/v1.0/examples/Update-MgGroupThread.md index d5e1fa60055..dea635c146e 100644 --- a/src/Groups/v1.0/examples/Update-MgGroupThread.md +++ b/src/Groups/v1.0/examples/Update-MgGroupThread.md @@ -2,15 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Groups -$params = @{ - originalStartTimeZone = "originalStartTimeZone-value" - originalEndTimeZone = "originalEndTimeZone-value" - iCalUId = "iCalUId-value" - reminderMinutesBeforeStart = - isReminderOn = $true -} - -Update-MgGroupThread -GroupId $groupId -ConversationThreadId $conversationThreadId -BodyParameter $params +Get-MgGroupThread -GroupId $groupId -ConversationThreadId $conversationThreadId ``` This example shows how to use the Update-MgGroupThread Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/v1.0/examples/Update-MgGroupThreadPostExtension.md b/src/Groups/v1.0/examples/Update-MgGroupThreadPostExtension.md index a5f8ca3676c..86e70792d1d 100644 --- a/src/Groups/v1.0/examples/Update-MgGroupThreadPostExtension.md +++ b/src/Groups/v1.0/examples/Update-MgGroupThreadPostExtension.md @@ -1,21 +1,47 @@ ### Example 1: Code snippet +```powershell Import-Module Microsoft.Graph.Mail + +# A UPN can also be used as -UserId. +Get-MgUserMessageExtension -UserId $userId -MessageId $messageId -ExtensionId $extensionId +``` +This example shows how to use the Update-MgGroupThreadPostExtension Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Code snippet + +```powershell Import-Module Microsoft.Graph.Calendar + +Get-MgGroupEventExtension -GroupId $groupId -EventId $eventId -ExtensionId $extensionId +``` +This example shows how to use the Update-MgGroupThreadPostExtension Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Code snippet + +```powershell Import-Module Microsoft.Graph.Mail + +# A UPN can also be used as -UserId. +Get-MgUserMessage -UserId $userId -MessageId $messageId -ExpandProperty "extensions(`$filter=id eq 'Microsoft.OutlookServices.OpenTypeExtension.Com.Contoso.Referral')" +``` +This example shows how to use the Update-MgGroupThreadPostExtension Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Code snippet + ```powershell Import-Module Microsoft.Graph.Groups -$params = @{ - "@odata.type" = "Microsoft.OutlookServices.OpenTypeExtension" - extensionName = "Com.Contoso.Estimate" - companyName = "Contoso" - expirationDate = "2016-07-30T11:00:00.000Z" - DealValue = - topPicks = @( - "Employees only" - "Add spouse or guest" - "Add family" - ) -} - -Update-MgGroupThreadPostExtension -GroupId $groupId -ConversationThreadId $conversationThreadId -PostId $postId -ExtensionId $extensionId -BodyParameter $params +Get-MgGroupThreadPostExtension -GroupId $groupId -ConversationThreadId $conversationThreadId -PostId $postId -ExtensionId $extensionId +``` +This example shows how to use the Update-MgGroupThreadPostExtension Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 5: Code snippet + +```powershell Import-Module Microsoft.Graph.Mail + +# A UPN can also be used as -UserId. +Get-MgUserMessage -UserId $userId -Filter "Extensions/any(f:f/id eq 'Com.Contoso.Referral')" -ExpandProperty "Extensions(`$filter=id eq 'Com.Contoso.Referral')" ``` This example shows how to use the Update-MgGroupThreadPostExtension Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDevice.md b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDevice.md index 75cc1e8ee42..904d3278d4d 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDevice.md +++ b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDevice.md @@ -1,24 +1,17 @@ -### Example 1: Update the accountEnabled property of a device +### Example 1: Get a device ```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement -$params = @{ - accountEnabled = $false -} - -Update-MgBetaDevice -DeviceId $deviceId -BodyParameter $params +Get-MgBetaDevice -DeviceId $deviceId ``` This example shows how to use the Get-MgBetaBetaDevice Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Write extensionAttributes on a device +### Example 2: Get a device and return only its id and extensionAttributes properties ```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement -$params = @{ -} - -Update-MgBetaDevice -DeviceId $deviceId -BodyParameter $params +Get-MgBetaDevice -DeviceId $deviceId -Property "id,extensionAttributes" ``` This example shows how to use the Get-MgBetaBetaDevice Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryAdministrativeUnit.md b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryAdministrativeUnit.md index d02aab869c6..aa93dfa4b5a 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryAdministrativeUnit.md +++ b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryAdministrativeUnit.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement -$params = @{ - displayName = "Greater Seattle District Technical Schools" -} - -Update-MgBetaDirectoryAdministrativeUnit -AdministrativeUnitId $administrativeUnitId -BodyParameter $params +Get-MgBetaDirectoryAdministrativeUnit -AdministrativeUnitId $administrativeUnitId ``` This example shows how to use the Get-MgBetaBetaDirectoryAdministrativeUnit Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaOrganization.md b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaOrganization.md index 7ffc2ac7fee..18154997a8e 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaOrganization.md +++ b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaOrganization.md @@ -2,26 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement -$params = @{ - marketingNotificationEmails = @( - "marketing@contoso.com" - ) - privacyProfile = @{ - contactEmail = "alice@contoso.com" - statementUrl = "https://contoso.com/privacyStatement" - } - securityComplianceNotificationMails = @( - "security@contoso.com" - ) - securityComplianceNotificationPhones = @( - "(123) 456-7890" - ) - technicalNotificationMails = @( - "tech@contoso.com" - ) -} - -Update-MgBetaOrganization -OrganizationId $organizationId -BodyParameter $params +Get-MgBetaOrganization -OrganizationId $organizationId ``` This example shows how to use the Get-MgBetaBetaOrganization Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaOrganizationBranding.md b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaOrganizationBranding.md index e9a0e7bfd84..269b292b2ce 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaOrganizationBranding.md +++ b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaOrganizationBranding.md @@ -2,12 +2,34 @@ ```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement -$params = @{ - signInPageText = "Default" - usernameHintText = "DefaultHint" -} +Get-MgBetaOrganizationBranding -OrganizationId $organizationId +``` +This example shows how to use the Get-MgBetaBetaOrganizationBranding Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +Get-MgBetaOrganizationBranding -OrganizationId $organizationId +``` +This example shows how to use the Get-MgBetaBetaOrganizationBranding Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +Get-MgBetaOrganizationBranding -OrganizationId $organizationId +``` +This example shows how to use the Get-MgBetaBetaOrganizationBranding Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement -Update-MgBetaOrganizationBranding -OrganizationId $organizationId -BodyParameter $params +Get-MgBetaOrganizationBrandingLocalizationBannerLogo -OrganizationId $organizationId -OrganizationalBrandingLocalizationId $organizationalBrandingLocalizationId ``` This example shows how to use the Get-MgBetaBetaOrganizationBranding Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaOrganizationBrandingLocalization.md b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaOrganizationBrandingLocalization.md index 0b01cff794d..3ed631d78e6 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaOrganizationBrandingLocalization.md +++ b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaOrganizationBrandingLocalization.md @@ -2,12 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement -$params = @{ - backgroundColor = "#00000F" - signInPageText = "Welcome to Contoso France" -} - -Update-MgBetaOrganizationBrandingLocalization -OrganizationId $organizationId -OrganizationalBrandingLocalizationId $organizationalBrandingLocalizationId -BodyParameter $params +Get-MgBetaOrganizationBrandingLocalization -OrganizationId $organizationId -OrganizationalBrandingLocalizationId $organizationalBrandingLocalizationId ``` This example shows how to use the Get-MgBetaBetaOrganizationBrandingLocalization Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). @@ -16,12 +11,7 @@ This example shows how to use the Get-MgBetaBetaOrganizationBrandingLocalization ```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement -$params = @{ - signInPageText = "Welcome to Contoso France." - usernameHintText = " " -} - -Update-MgBetaOrganizationBrandingLocalization -OrganizationId $organizationId -OrganizationalBrandingLocalizationId $organizationalBrandingLocalizationId -BodyParameter $params +Get-MgBetaOrganizationBrandingLocalizationBannerLogo -OrganizationId $organizationId -OrganizationalBrandingLocalizationId $organizationalBrandingLocalizationId ``` This example shows how to use the Get-MgBetaBetaOrganizationBrandingLocalization Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDevice.md b/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDevice.md index a40893f9702..35782fdfd04 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDevice.md +++ b/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDevice.md @@ -1,24 +1,17 @@ -### Example 1: Update the accountEnabled property of a device +### Example 1: Get a device ```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement -$params = @{ - accountEnabled = $false -} - -Update-MgBetaDevice -DeviceId $deviceId -BodyParameter $params +Get-MgBetaDevice -DeviceId $deviceId ``` This example shows how to use the Remove-MgBetaBetaDevice Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Write extensionAttributes on a device +### Example 2: Get a device and return only its id and extensionAttributes properties ```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement -$params = @{ -} - -Update-MgBetaDevice -DeviceId $deviceId -BodyParameter $params +Get-MgBetaDevice -DeviceId $deviceId -Property "id,extensionAttributes" ``` This example shows how to use the Remove-MgBetaBetaDevice Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDomain.md b/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDomain.md index 567c82b25f6..4354c9069a5 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDomain.md +++ b/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDomain.md @@ -2,15 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement -$params = @{ - isDefault = $true - supportedServices = @( - "Email" - "OfficeCommunicationsOnline" - ) -} - -Update-MgBetaDomain -DomainId $domainId -BodyParameter $params +Get-MgBetaDomain -DomainId $domainId ``` This example shows how to use the Remove-MgBetaBetaDomain Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaOrganization.md b/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaOrganization.md index ae9edde7696..7b2776d8eb0 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaOrganization.md +++ b/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaOrganization.md @@ -2,26 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement -$params = @{ - marketingNotificationEmails = @( - "marketing@contoso.com" - ) - privacyProfile = @{ - contactEmail = "alice@contoso.com" - statementUrl = "https://contoso.com/privacyStatement" - } - securityComplianceNotificationMails = @( - "security@contoso.com" - ) - securityComplianceNotificationPhones = @( - "(123) 456-7890" - ) - technicalNotificationMails = @( - "tech@contoso.com" - ) -} - -Update-MgBetaOrganization -OrganizationId $organizationId -BodyParameter $params +Get-MgBetaOrganization -OrganizationId $organizationId ``` This example shows how to use the Remove-MgBetaBetaOrganization Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaOrganizationBranding.md b/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaOrganizationBranding.md index cb446091a3e..6a8ab199790 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaOrganizationBranding.md +++ b/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaOrganizationBranding.md @@ -2,12 +2,34 @@ ```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement -$params = @{ - signInPageText = "Default" - usernameHintText = "DefaultHint" -} +Get-MgBetaOrganizationBranding -OrganizationId $organizationId +``` +This example shows how to use the Remove-MgBetaBetaOrganizationBranding Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +Get-MgBetaOrganizationBranding -OrganizationId $organizationId +``` +This example shows how to use the Remove-MgBetaBetaOrganizationBranding Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +Get-MgBetaOrganizationBranding -OrganizationId $organizationId +``` +This example shows how to use the Remove-MgBetaBetaOrganizationBranding Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement -Update-MgBetaOrganizationBranding -OrganizationId $organizationId -BodyParameter $params +Get-MgBetaOrganizationBrandingLocalizationBannerLogo -OrganizationId $organizationId -OrganizationalBrandingLocalizationId $organizationalBrandingLocalizationId ``` This example shows how to use the Remove-MgBetaBetaOrganizationBranding Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaOrganizationBrandingLocalization.md b/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaOrganizationBrandingLocalization.md index 8d1f211f8cc..f41f0c59b0c 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaOrganizationBrandingLocalization.md +++ b/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaOrganizationBrandingLocalization.md @@ -2,12 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement -$params = @{ - backgroundColor = "#00000F" - signInPageText = "Welcome to Contoso France" -} - -Update-MgBetaOrganizationBrandingLocalization -OrganizationId $organizationId -OrganizationalBrandingLocalizationId $organizationalBrandingLocalizationId -BodyParameter $params +Get-MgBetaOrganizationBrandingLocalization -OrganizationId $organizationId -OrganizationalBrandingLocalizationId $organizationalBrandingLocalizationId ``` This example shows how to use the Remove-MgBetaBetaOrganizationBrandingLocalization Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). @@ -16,12 +11,7 @@ This example shows how to use the Remove-MgBetaBetaOrganizationBrandingLocalizat ```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement -$params = @{ - signInPageText = "Welcome to Contoso France." - usernameHintText = " " -} - -Update-MgBetaOrganizationBrandingLocalization -OrganizationId $organizationId -OrganizationalBrandingLocalizationId $organizationalBrandingLocalizationId -BodyParameter $params +Get-MgBetaOrganizationBrandingLocalizationBannerLogo -OrganizationId $organizationId -OrganizationalBrandingLocalizationId $organizationalBrandingLocalizationId ``` This example shows how to use the Remove-MgBetaBetaOrganizationBrandingLocalization Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaDevice.md b/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaDevice.md index 7fb51124315..ac845d85549 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaDevice.md +++ b/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaDevice.md @@ -1,24 +1,17 @@ -### Example 1: Update the accountEnabled property of a device +### Example 1: Get a device ```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement -$params = @{ - accountEnabled = $false -} - -Update-MgBetaDevice -DeviceId $deviceId -BodyParameter $params +Get-MgBetaDevice -DeviceId $deviceId ``` This example shows how to use the Update-MgBetaBetaDevice Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Write extensionAttributes on a device +### Example 2: Get a device and return only its id and extensionAttributes properties ```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement -$params = @{ -} - -Update-MgBetaDevice -DeviceId $deviceId -BodyParameter $params +Get-MgBetaDevice -DeviceId $deviceId -Property "id,extensionAttributes" ``` This example shows how to use the Update-MgBetaBetaDevice Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaDomain.md b/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaDomain.md index 797a091dafd..a9b698a55ed 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaDomain.md +++ b/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaDomain.md @@ -2,15 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement -$params = @{ - isDefault = $true - supportedServices = @( - "Email" - "OfficeCommunicationsOnline" - ) -} - -Update-MgBetaDomain -DomainId $domainId -BodyParameter $params +Get-MgBetaDomain -DomainId $domainId ``` This example shows how to use the Update-MgBetaBetaDomain Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaOrganization.md b/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaOrganization.md index 40bb2d5abab..4ee475d5f3c 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaOrganization.md +++ b/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaOrganization.md @@ -2,26 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement -$params = @{ - marketingNotificationEmails = @( - "marketing@contoso.com" - ) - privacyProfile = @{ - contactEmail = "alice@contoso.com" - statementUrl = "https://contoso.com/privacyStatement" - } - securityComplianceNotificationMails = @( - "security@contoso.com" - ) - securityComplianceNotificationPhones = @( - "(123) 456-7890" - ) - technicalNotificationMails = @( - "tech@contoso.com" - ) -} - -Update-MgBetaOrganization -OrganizationId $organizationId -BodyParameter $params +Get-MgBetaOrganization -OrganizationId $organizationId ``` This example shows how to use the Update-MgBetaBetaOrganization Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaOrganizationBranding.md b/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaOrganizationBranding.md index 6315526b85e..7332b1acdce 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaOrganizationBranding.md +++ b/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaOrganizationBranding.md @@ -2,12 +2,34 @@ ```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement -$params = @{ - signInPageText = "Default" - usernameHintText = "DefaultHint" -} +Get-MgBetaOrganizationBranding -OrganizationId $organizationId +``` +This example shows how to use the Update-MgBetaBetaOrganizationBranding Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +Get-MgBetaOrganizationBranding -OrganizationId $organizationId +``` +This example shows how to use the Update-MgBetaBetaOrganizationBranding Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +Get-MgBetaOrganizationBranding -OrganizationId $organizationId +``` +This example shows how to use the Update-MgBetaBetaOrganizationBranding Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement -Update-MgBetaOrganizationBranding -OrganizationId $organizationId -BodyParameter $params +Get-MgBetaOrganizationBrandingLocalizationBannerLogo -OrganizationId $organizationId -OrganizationalBrandingLocalizationId $organizationalBrandingLocalizationId ``` This example shows how to use the Update-MgBetaBetaOrganizationBranding Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaOrganizationBrandingLocalization.md b/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaOrganizationBrandingLocalization.md index b32e68d15c6..46bc75a57da 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaOrganizationBrandingLocalization.md +++ b/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaOrganizationBrandingLocalization.md @@ -2,12 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement -$params = @{ - backgroundColor = "#00000F" - signInPageText = "Welcome to Contoso France" -} - -Update-MgBetaOrganizationBrandingLocalization -OrganizationId $organizationId -OrganizationalBrandingLocalizationId $organizationalBrandingLocalizationId -BodyParameter $params +Get-MgBetaOrganizationBrandingLocalization -OrganizationId $organizationId -OrganizationalBrandingLocalizationId $organizationalBrandingLocalizationId ``` This example shows how to use the Update-MgBetaBetaOrganizationBrandingLocalization Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). @@ -16,12 +11,7 @@ This example shows how to use the Update-MgBetaBetaOrganizationBrandingLocalizat ```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement -$params = @{ - signInPageText = "Welcome to Contoso France." - usernameHintText = " " -} - -Update-MgBetaOrganizationBrandingLocalization -OrganizationId $organizationId -OrganizationalBrandingLocalizationId $organizationalBrandingLocalizationId -BodyParameter $params +Get-MgBetaOrganizationBrandingLocalizationBannerLogo -OrganizationId $organizationId -OrganizationalBrandingLocalizationId $organizationalBrandingLocalizationId ``` This example shows how to use the Update-MgBetaBetaOrganizationBrandingLocalization Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/v1.0/examples/Get-MgDevice.md b/src/Identity.DirectoryManagement/v1.0/examples/Get-MgDevice.md index f8096f2993f..9a2318b2935 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/Get-MgDevice.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/Get-MgDevice.md @@ -1,24 +1,17 @@ -### Example 1: Update the accountEnabled property of a device +### Example 1: Get a device ```powershell Import-Module Microsoft.Graph.Identity.DirectoryManagement -$params = @{ - accountEnabled = $false -} - -Update-MgDevice -DeviceId $deviceId -BodyParameter $params +Get-MgDevice -DeviceId $deviceId ``` This example shows how to use the Get-MgDevice Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Write extensionAttributes on a device +### Example 2: Get a device and return only its id and extensionAttributes properties ```powershell Import-Module Microsoft.Graph.Identity.DirectoryManagement -$params = @{ -} - -Update-MgDevice -DeviceId $deviceId -BodyParameter $params +Get-MgDevice -DeviceId $deviceId -Property "id,extensionAttributes" ``` This example shows how to use the Get-MgDevice Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/v1.0/examples/Get-MgDirectoryAdministrativeUnit.md b/src/Identity.DirectoryManagement/v1.0/examples/Get-MgDirectoryAdministrativeUnit.md index d1f020cec34..58a834e5aaf 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/Get-MgDirectoryAdministrativeUnit.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/Get-MgDirectoryAdministrativeUnit.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Identity.DirectoryManagement -$params = @{ - displayName = "Greater Seattle District Technical Schools" -} - -Update-MgDirectoryAdministrativeUnit -AdministrativeUnitId $administrativeUnitId -BodyParameter $params +Get-MgDirectoryAdministrativeUnit -AdministrativeUnitId $administrativeUnitId ``` This example shows how to use the Get-MgDirectoryAdministrativeUnit Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/v1.0/examples/Get-MgOrganization.md b/src/Identity.DirectoryManagement/v1.0/examples/Get-MgOrganization.md index 9e5a1cef480..c591970d6c0 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/Get-MgOrganization.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/Get-MgOrganization.md @@ -2,26 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Identity.DirectoryManagement -$params = @{ - marketingNotificationEmails = @( - "marketing@contoso.com" - ) - privacyProfile = @{ - contactEmail = "alice@contoso.com" - statementUrl = "https://contoso.com/privacyStatement" - } - securityComplianceNotificationMails = @( - "security@contoso.com" - ) - securityComplianceNotificationPhones = @( - "(123) 456-7890" - ) - technicalNotificationMails = @( - "tech@contoso.com" - ) -} - -Update-MgOrganization -OrganizationId $organizationId -BodyParameter $params +Get-MgOrganization -OrganizationId $organizationId ``` This example shows how to use the Get-MgOrganization Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/v1.0/examples/Get-MgOrganizationBranding.md b/src/Identity.DirectoryManagement/v1.0/examples/Get-MgOrganizationBranding.md index 9eb10d8cf84..b83fe48d797 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/Get-MgOrganizationBranding.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/Get-MgOrganizationBranding.md @@ -2,12 +2,34 @@ ```powershell Import-Module Microsoft.Graph.Identity.DirectoryManagement -$params = @{ - signInPageText = "Default" - usernameHintText = "DefaultHint" -} +Get-MgOrganizationBranding -OrganizationId $organizationId +``` +This example shows how to use the Get-MgOrganizationBranding Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.DirectoryManagement + +Get-MgOrganizationBranding -OrganizationId $organizationId +``` +This example shows how to use the Get-MgOrganizationBranding Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.DirectoryManagement + +Get-MgOrganizationBranding -OrganizationId $organizationId +``` +This example shows how to use the Get-MgOrganizationBranding Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.DirectoryManagement -Update-MgOrganizationBranding -OrganizationId $organizationId -BodyParameter $params +Get-MgOrganizationBrandingLocalizationBannerLogo -OrganizationId $organizationId -OrganizationalBrandingLocalizationId $organizationalBrandingLocalizationId ``` This example shows how to use the Get-MgOrganizationBranding Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/v1.0/examples/Get-MgOrganizationBrandingLocalization.md b/src/Identity.DirectoryManagement/v1.0/examples/Get-MgOrganizationBrandingLocalization.md index c11688143cd..bd9280b283b 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/Get-MgOrganizationBrandingLocalization.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/Get-MgOrganizationBrandingLocalization.md @@ -2,12 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Identity.DirectoryManagement -$params = @{ - backgroundColor = "#00000F" - signInPageText = "Welcome to Contoso France" -} - -Update-MgOrganizationBrandingLocalization -OrganizationId $organizationId -OrganizationalBrandingLocalizationId $organizationalBrandingLocalizationId -BodyParameter $params +Get-MgOrganizationBrandingLocalization -OrganizationId $organizationId -OrganizationalBrandingLocalizationId $organizationalBrandingLocalizationId ``` This example shows how to use the Get-MgOrganizationBrandingLocalization Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). @@ -16,12 +11,7 @@ This example shows how to use the Get-MgOrganizationBrandingLocalization Cmdlet. ```powershell Import-Module Microsoft.Graph.Identity.DirectoryManagement -$params = @{ - signInPageText = "Welcome to Contoso France." - usernameHintText = " " -} - -Update-MgOrganizationBrandingLocalization -OrganizationId $organizationId -OrganizationalBrandingLocalizationId $organizationalBrandingLocalizationId -BodyParameter $params +Get-MgOrganizationBrandingLocalizationBannerLogo -OrganizationId $organizationId -OrganizationalBrandingLocalizationId $organizationalBrandingLocalizationId ``` This example shows how to use the Get-MgOrganizationBrandingLocalization Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/v1.0/examples/Remove-MgDevice.md b/src/Identity.DirectoryManagement/v1.0/examples/Remove-MgDevice.md index af6825a977b..619c40573a5 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/Remove-MgDevice.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/Remove-MgDevice.md @@ -1,24 +1,17 @@ -### Example 1: Update the accountEnabled property of a device +### Example 1: Get a device ```powershell Import-Module Microsoft.Graph.Identity.DirectoryManagement -$params = @{ - accountEnabled = $false -} - -Update-MgDevice -DeviceId $deviceId -BodyParameter $params +Get-MgDevice -DeviceId $deviceId ``` This example shows how to use the Remove-MgDevice Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Write extensionAttributes on a device +### Example 2: Get a device and return only its id and extensionAttributes properties ```powershell Import-Module Microsoft.Graph.Identity.DirectoryManagement -$params = @{ -} - -Update-MgDevice -DeviceId $deviceId -BodyParameter $params +Get-MgDevice -DeviceId $deviceId -Property "id,extensionAttributes" ``` This example shows how to use the Remove-MgDevice Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/v1.0/examples/Remove-MgDirectoryAdministrativeUnit.md b/src/Identity.DirectoryManagement/v1.0/examples/Remove-MgDirectoryAdministrativeUnit.md index 3642c08f1ae..db1503cecde 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/Remove-MgDirectoryAdministrativeUnit.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/Remove-MgDirectoryAdministrativeUnit.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Identity.DirectoryManagement -$params = @{ - displayName = "Greater Seattle District Technical Schools" -} - -Update-MgDirectoryAdministrativeUnit -AdministrativeUnitId $administrativeUnitId -BodyParameter $params +Get-MgDirectoryAdministrativeUnit -AdministrativeUnitId $administrativeUnitId ``` This example shows how to use the Remove-MgDirectoryAdministrativeUnit Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/v1.0/examples/Remove-MgDomain.md b/src/Identity.DirectoryManagement/v1.0/examples/Remove-MgDomain.md index 1d3da9dd709..da3377d189e 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/Remove-MgDomain.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/Remove-MgDomain.md @@ -2,15 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Identity.DirectoryManagement -$params = @{ - isDefault = $true - supportedServices = @( - "Email" - "OfficeCommunicationsOnline" - ) -} - -Update-MgDomain -DomainId $domainId -BodyParameter $params +Get-MgDomain -DomainId $domainId ``` This example shows how to use the Remove-MgDomain Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/v1.0/examples/Remove-MgOrganization.md b/src/Identity.DirectoryManagement/v1.0/examples/Remove-MgOrganization.md index d83f2afe816..d474c08c623 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/Remove-MgOrganization.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/Remove-MgOrganization.md @@ -2,26 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Identity.DirectoryManagement -$params = @{ - marketingNotificationEmails = @( - "marketing@contoso.com" - ) - privacyProfile = @{ - contactEmail = "alice@contoso.com" - statementUrl = "https://contoso.com/privacyStatement" - } - securityComplianceNotificationMails = @( - "security@contoso.com" - ) - securityComplianceNotificationPhones = @( - "(123) 456-7890" - ) - technicalNotificationMails = @( - "tech@contoso.com" - ) -} - -Update-MgOrganization -OrganizationId $organizationId -BodyParameter $params +Get-MgOrganization -OrganizationId $organizationId ``` This example shows how to use the Remove-MgOrganization Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/v1.0/examples/Remove-MgOrganizationBranding.md b/src/Identity.DirectoryManagement/v1.0/examples/Remove-MgOrganizationBranding.md index 1ce7aa09524..58e973e9596 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/Remove-MgOrganizationBranding.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/Remove-MgOrganizationBranding.md @@ -2,12 +2,34 @@ ```powershell Import-Module Microsoft.Graph.Identity.DirectoryManagement -$params = @{ - signInPageText = "Default" - usernameHintText = "DefaultHint" -} +Get-MgOrganizationBranding -OrganizationId $organizationId +``` +This example shows how to use the Remove-MgOrganizationBranding Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.DirectoryManagement + +Get-MgOrganizationBranding -OrganizationId $organizationId +``` +This example shows how to use the Remove-MgOrganizationBranding Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.DirectoryManagement + +Get-MgOrganizationBranding -OrganizationId $organizationId +``` +This example shows how to use the Remove-MgOrganizationBranding Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.DirectoryManagement -Update-MgOrganizationBranding -OrganizationId $organizationId -BodyParameter $params +Get-MgOrganizationBrandingLocalizationBannerLogo -OrganizationId $organizationId -OrganizationalBrandingLocalizationId $organizationalBrandingLocalizationId ``` This example shows how to use the Remove-MgOrganizationBranding Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/v1.0/examples/Remove-MgOrganizationBrandingLocalization.md b/src/Identity.DirectoryManagement/v1.0/examples/Remove-MgOrganizationBrandingLocalization.md index 8dc47327d37..c2f5e6a7020 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/Remove-MgOrganizationBrandingLocalization.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/Remove-MgOrganizationBrandingLocalization.md @@ -2,12 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Identity.DirectoryManagement -$params = @{ - backgroundColor = "#00000F" - signInPageText = "Welcome to Contoso France" -} - -Update-MgOrganizationBrandingLocalization -OrganizationId $organizationId -OrganizationalBrandingLocalizationId $organizationalBrandingLocalizationId -BodyParameter $params +Get-MgOrganizationBrandingLocalization -OrganizationId $organizationId -OrganizationalBrandingLocalizationId $organizationalBrandingLocalizationId ``` This example shows how to use the Remove-MgOrganizationBrandingLocalization Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). @@ -16,12 +11,7 @@ This example shows how to use the Remove-MgOrganizationBrandingLocalization Cmdl ```powershell Import-Module Microsoft.Graph.Identity.DirectoryManagement -$params = @{ - signInPageText = "Welcome to Contoso France." - usernameHintText = " " -} - -Update-MgOrganizationBrandingLocalization -OrganizationId $organizationId -OrganizationalBrandingLocalizationId $organizationalBrandingLocalizationId -BodyParameter $params +Get-MgOrganizationBrandingLocalizationBannerLogo -OrganizationId $organizationId -OrganizationalBrandingLocalizationId $organizationalBrandingLocalizationId ``` This example shows how to use the Remove-MgOrganizationBrandingLocalization Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/v1.0/examples/Update-MgDevice.md b/src/Identity.DirectoryManagement/v1.0/examples/Update-MgDevice.md index f12d4d22d39..56342b91648 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/Update-MgDevice.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/Update-MgDevice.md @@ -1,24 +1,17 @@ -### Example 1: Update the accountEnabled property of a device +### Example 1: Get a device ```powershell Import-Module Microsoft.Graph.Identity.DirectoryManagement -$params = @{ - accountEnabled = $false -} - -Update-MgDevice -DeviceId $deviceId -BodyParameter $params +Get-MgDevice -DeviceId $deviceId ``` This example shows how to use the Update-MgDevice Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Write extensionAttributes on a device +### Example 2: Get a device and return only its id and extensionAttributes properties ```powershell Import-Module Microsoft.Graph.Identity.DirectoryManagement -$params = @{ -} - -Update-MgDevice -DeviceId $deviceId -BodyParameter $params +Get-MgDevice -DeviceId $deviceId -Property "id,extensionAttributes" ``` This example shows how to use the Update-MgDevice Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/v1.0/examples/Update-MgDirectoryAdministrativeUnit.md b/src/Identity.DirectoryManagement/v1.0/examples/Update-MgDirectoryAdministrativeUnit.md index 39b18966943..118c5fc0793 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/Update-MgDirectoryAdministrativeUnit.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/Update-MgDirectoryAdministrativeUnit.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Identity.DirectoryManagement -$params = @{ - displayName = "Greater Seattle District Technical Schools" -} - -Update-MgDirectoryAdministrativeUnit -AdministrativeUnitId $administrativeUnitId -BodyParameter $params +Get-MgDirectoryAdministrativeUnit -AdministrativeUnitId $administrativeUnitId ``` This example shows how to use the Update-MgDirectoryAdministrativeUnit Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/v1.0/examples/Update-MgDomain.md b/src/Identity.DirectoryManagement/v1.0/examples/Update-MgDomain.md index a3e682f52ca..9db4d757b44 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/Update-MgDomain.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/Update-MgDomain.md @@ -2,15 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Identity.DirectoryManagement -$params = @{ - isDefault = $true - supportedServices = @( - "Email" - "OfficeCommunicationsOnline" - ) -} - -Update-MgDomain -DomainId $domainId -BodyParameter $params +Get-MgDomain -DomainId $domainId ``` This example shows how to use the Update-MgDomain Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/v1.0/examples/Update-MgOrganization.md b/src/Identity.DirectoryManagement/v1.0/examples/Update-MgOrganization.md index cc125809fc9..c95b00a7f5e 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/Update-MgOrganization.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/Update-MgOrganization.md @@ -2,26 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Identity.DirectoryManagement -$params = @{ - marketingNotificationEmails = @( - "marketing@contoso.com" - ) - privacyProfile = @{ - contactEmail = "alice@contoso.com" - statementUrl = "https://contoso.com/privacyStatement" - } - securityComplianceNotificationMails = @( - "security@contoso.com" - ) - securityComplianceNotificationPhones = @( - "(123) 456-7890" - ) - technicalNotificationMails = @( - "tech@contoso.com" - ) -} - -Update-MgOrganization -OrganizationId $organizationId -BodyParameter $params +Get-MgOrganization -OrganizationId $organizationId ``` This example shows how to use the Update-MgOrganization Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/v1.0/examples/Update-MgOrganizationBranding.md b/src/Identity.DirectoryManagement/v1.0/examples/Update-MgOrganizationBranding.md index 21ba99a080f..f41bf846bdb 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/Update-MgOrganizationBranding.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/Update-MgOrganizationBranding.md @@ -2,12 +2,34 @@ ```powershell Import-Module Microsoft.Graph.Identity.DirectoryManagement -$params = @{ - signInPageText = "Default" - usernameHintText = "DefaultHint" -} +Get-MgOrganizationBranding -OrganizationId $organizationId +``` +This example shows how to use the Update-MgOrganizationBranding Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.DirectoryManagement + +Get-MgOrganizationBranding -OrganizationId $organizationId +``` +This example shows how to use the Update-MgOrganizationBranding Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.DirectoryManagement + +Get-MgOrganizationBranding -OrganizationId $organizationId +``` +This example shows how to use the Update-MgOrganizationBranding Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.DirectoryManagement -Update-MgOrganizationBranding -OrganizationId $organizationId -BodyParameter $params +Get-MgOrganizationBrandingLocalizationBannerLogo -OrganizationId $organizationId -OrganizationalBrandingLocalizationId $organizationalBrandingLocalizationId ``` This example shows how to use the Update-MgOrganizationBranding Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/v1.0/examples/Update-MgOrganizationBrandingLocalization.md b/src/Identity.DirectoryManagement/v1.0/examples/Update-MgOrganizationBrandingLocalization.md index 96b7bad2924..869378f4302 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/Update-MgOrganizationBrandingLocalization.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/Update-MgOrganizationBrandingLocalization.md @@ -2,12 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Identity.DirectoryManagement -$params = @{ - backgroundColor = "#00000F" - signInPageText = "Welcome to Contoso France" -} - -Update-MgOrganizationBrandingLocalization -OrganizationId $organizationId -OrganizationalBrandingLocalizationId $organizationalBrandingLocalizationId -BodyParameter $params +Get-MgOrganizationBrandingLocalization -OrganizationId $organizationId -OrganizationalBrandingLocalizationId $organizationalBrandingLocalizationId ``` This example shows how to use the Update-MgOrganizationBrandingLocalization Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). @@ -16,12 +11,7 @@ This example shows how to use the Update-MgOrganizationBrandingLocalization Cmdl ```powershell Import-Module Microsoft.Graph.Identity.DirectoryManagement -$params = @{ - signInPageText = "Welcome to Contoso France." - usernameHintText = " " -} - -Update-MgOrganizationBrandingLocalization -OrganizationId $organizationId -OrganizationalBrandingLocalizationId $organizationalBrandingLocalizationId -BodyParameter $params +Get-MgOrganizationBrandingLocalizationBannerLogo -OrganizationId $organizationId -OrganizationalBrandingLocalizationId $organizationalBrandingLocalizationId ``` This example shows how to use the Update-MgOrganizationBrandingLocalization Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/beta/examples/Get-MgBetaEntitlementManagementConnectedOrganization.md b/src/Identity.Governance/beta/examples/Get-MgBetaEntitlementManagementConnectedOrganization.md index 44191ab144b..bdae7f3fa53 100644 --- a/src/Identity.Governance/beta/examples/Get-MgBetaEntitlementManagementConnectedOrganization.md +++ b/src/Identity.Governance/beta/examples/Get-MgBetaEntitlementManagementConnectedOrganization.md @@ -2,13 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Identity.Governance -$params = @{ - displayName = "Connected organization new name" - description = "Connected organization new description" - state = "configured" -} - -Update-MgBetaEntitlementManagementConnectedOrganization -ConnectedOrganizationId $connectedOrganizationId -BodyParameter $params +Get-MgBetaEntitlementManagementConnectedOrganization -ConnectedOrganizationId $connectedOrganizationId ``` This example shows how to use the Get-MgBetaBetaEntitlementManagementConnectedOrganization Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceAccessReviewDefinitionInstance.md b/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceAccessReviewDefinitionInstance.md index 1bf772276b8..19f30f8c1b7 100644 --- a/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceAccessReviewDefinitionInstance.md +++ b/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceAccessReviewDefinitionInstance.md @@ -2,48 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Identity.Governance -$params = @{ - scope = @{ - "@odata.type" = "#microsoft.graph.principalResourceMembershipsScope" - principalScopes = @( - @{ - "@odata.type" = "#microsoft.graph.accessReviewQueryScope" - query = "/v1.0/users" - queryType = "MicrosoftGraph" - } - @{ - "@odata.type" = "#microsoft.graph.accessReviewQueryScope" - query = "/v1.0/groups" - queryType = "MicrosoftGraph" - } - ) - resourceScopes = @( - @{ - "@odata.type" = "#microsoft.graph.accessReviewQueryScope" - query = "/beta/roleManagement/directory/roleDefinitions/9b895d92-2cd3-44c7-9d02-a6ac2d5ea5c3" - queryType = "MicrosoftGraph" - } - ) - } - reviewers = @( - @{ - query = "/users/1ed8ac56-4827-4733-8f80-86adc2e67db5" - queryType = "MicrosoftGraph" - } - ) - fallbackReviewers = @( - @{ - query = "/users/4562bcc8-c436-4f95-b7c0-4f8ce89dca5e" - queryType = "MicrosoftGraph" - } - @{ - query = "/users/1ed8ac56-4827-4733-8f80-86adc2e67db5" - queryType = "MicrosoftGraph" - } - ) -} - -Update-MgBetaIdentityGovernanceAccessReviewDefinitionInstance -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId -BodyParameter $params +Get-MgBetaIdentityGovernanceAccessReviewDefinitionInstance -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId ``` This example shows how to use the Get-MgBetaBetaIdentityGovernanceAccessReviewDefinitionInstance Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceStage.md b/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceStage.md index 3be21bda120..f0d638fd8f7 100644 --- a/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceStage.md +++ b/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceStage.md @@ -2,27 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Identity.Governance -$params = @{ - "@odata.type" = "#microsoft.graph.accessReviewStage" - reviewers = @( - @{ - query = "/users/1ed8ac56-4827-4733-8f80-86adc2e67db5" - queryType = "MicrosoftGraph" - } - ) - fallbackReviewers = @( - @{ - query = "/users/4562bcc8-c436-4f95-b7c0-4f8ce89dca5e" - queryType = "MicrosoftGraph" - } - @{ - query = "/users/1ed8ac56-4827-4733-8f80-86adc2e67db5" - queryType = "MicrosoftGraph" - } - ) -} - -Update-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceStage -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId -AccessReviewStageId $accessReviewStageId -BodyParameter $params +Get-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceStage -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId -AccessReviewStageId $accessReviewStageId ``` This example shows how to use the Get-MgBetaBetaIdentityGovernanceAccessReviewDefinitionInstanceStage Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/beta/examples/Remove-MgBetaEntitlementManagementConnectedOrganization.md b/src/Identity.Governance/beta/examples/Remove-MgBetaEntitlementManagementConnectedOrganization.md index 868dac16cdc..cea3fb2808e 100644 --- a/src/Identity.Governance/beta/examples/Remove-MgBetaEntitlementManagementConnectedOrganization.md +++ b/src/Identity.Governance/beta/examples/Remove-MgBetaEntitlementManagementConnectedOrganization.md @@ -2,13 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Identity.Governance -$params = @{ - displayName = "Connected organization new name" - description = "Connected organization new description" - state = "configured" -} - -Update-MgBetaEntitlementManagementConnectedOrganization -ConnectedOrganizationId $connectedOrganizationId -BodyParameter $params +Get-MgBetaEntitlementManagementConnectedOrganization -ConnectedOrganizationId $connectedOrganizationId ``` This example shows how to use the Remove-MgBetaBetaEntitlementManagementConnectedOrganization Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/beta/examples/Update-MgBetaEntitlementManagementAccessPackage.md b/src/Identity.Governance/beta/examples/Update-MgBetaEntitlementManagementAccessPackage.md index ffe8bfc2497..b474eacfb47 100644 --- a/src/Identity.Governance/beta/examples/Update-MgBetaEntitlementManagementAccessPackage.md +++ b/src/Identity.Governance/beta/examples/Update-MgBetaEntitlementManagementAccessPackage.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Identity.Governance -$params = @{ - displayName = "Access Package New Name" -} - -Update-MgBetaEntitlementManagementAccessPackage -AccessPackageId $accessPackageId -BodyParameter $params +Get-MgBetaEntitlementManagementAccessPackage -AccessPackageId $accessPackageId ``` This example shows how to use the Update-MgBetaBetaEntitlementManagementAccessPackage Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/beta/examples/Update-MgBetaEntitlementManagementConnectedOrganization.md b/src/Identity.Governance/beta/examples/Update-MgBetaEntitlementManagementConnectedOrganization.md index 5df2a07ae25..2d22c324b80 100644 --- a/src/Identity.Governance/beta/examples/Update-MgBetaEntitlementManagementConnectedOrganization.md +++ b/src/Identity.Governance/beta/examples/Update-MgBetaEntitlementManagementConnectedOrganization.md @@ -2,13 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Identity.Governance -$params = @{ - displayName = "Connected organization new name" - description = "Connected organization new description" - state = "configured" -} - -Update-MgBetaEntitlementManagementConnectedOrganization -ConnectedOrganizationId $connectedOrganizationId -BodyParameter $params +Get-MgBetaEntitlementManagementConnectedOrganization -ConnectedOrganizationId $connectedOrganizationId ``` This example shows how to use the Update-MgBetaBetaEntitlementManagementConnectedOrganization Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/beta/examples/Update-MgBetaEntitlementManagementSetting.md b/src/Identity.Governance/beta/examples/Update-MgBetaEntitlementManagementSetting.md index 4fbd54d6083..ece1dc19dc2 100644 --- a/src/Identity.Governance/beta/examples/Update-MgBetaEntitlementManagementSetting.md +++ b/src/Identity.Governance/beta/examples/Update-MgBetaEntitlementManagementSetting.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Identity.Governance -$params = @{ - externalUserLifecycleAction = "None" -} - -Update-MgBetaEntitlementManagementSetting -BodyParameter $params +Get-MgBetaEntitlementManagementSetting ``` This example shows how to use the Update-MgBetaBetaEntitlementManagementSetting Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/beta/examples/Update-MgBetaIdentityGovernanceAccessReviewDefinition.md b/src/Identity.Governance/beta/examples/Update-MgBetaIdentityGovernanceAccessReviewDefinition.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.Governance/beta/examples/Update-MgBetaIdentityGovernanceAccessReviewDefinition.md +++ b/src/Identity.Governance/beta/examples/Update-MgBetaIdentityGovernanceAccessReviewDefinition.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.Governance/beta/examples/Update-MgBetaIdentityGovernanceAccessReviewDefinitionInstance.md b/src/Identity.Governance/beta/examples/Update-MgBetaIdentityGovernanceAccessReviewDefinitionInstance.md index 15394b0dcf3..c2b075cd237 100644 --- a/src/Identity.Governance/beta/examples/Update-MgBetaIdentityGovernanceAccessReviewDefinitionInstance.md +++ b/src/Identity.Governance/beta/examples/Update-MgBetaIdentityGovernanceAccessReviewDefinitionInstance.md @@ -2,48 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Identity.Governance -$params = @{ - scope = @{ - "@odata.type" = "#microsoft.graph.principalResourceMembershipsScope" - principalScopes = @( - @{ - "@odata.type" = "#microsoft.graph.accessReviewQueryScope" - query = "/v1.0/users" - queryType = "MicrosoftGraph" - } - @{ - "@odata.type" = "#microsoft.graph.accessReviewQueryScope" - query = "/v1.0/groups" - queryType = "MicrosoftGraph" - } - ) - resourceScopes = @( - @{ - "@odata.type" = "#microsoft.graph.accessReviewQueryScope" - query = "/beta/roleManagement/directory/roleDefinitions/9b895d92-2cd3-44c7-9d02-a6ac2d5ea5c3" - queryType = "MicrosoftGraph" - } - ) - } - reviewers = @( - @{ - query = "/users/1ed8ac56-4827-4733-8f80-86adc2e67db5" - queryType = "MicrosoftGraph" - } - ) - fallbackReviewers = @( - @{ - query = "/users/4562bcc8-c436-4f95-b7c0-4f8ce89dca5e" - queryType = "MicrosoftGraph" - } - @{ - query = "/users/1ed8ac56-4827-4733-8f80-86adc2e67db5" - queryType = "MicrosoftGraph" - } - ) -} - -Update-MgBetaIdentityGovernanceAccessReviewDefinitionInstance -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId -BodyParameter $params +Get-MgBetaIdentityGovernanceAccessReviewDefinitionInstance -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId ``` This example shows how to use the Update-MgBetaBetaIdentityGovernanceAccessReviewDefinitionInstance Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/beta/examples/Update-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceStage.md b/src/Identity.Governance/beta/examples/Update-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceStage.md index 966c7aaa76d..e0fc1c902dc 100644 --- a/src/Identity.Governance/beta/examples/Update-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceStage.md +++ b/src/Identity.Governance/beta/examples/Update-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceStage.md @@ -2,27 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Identity.Governance -$params = @{ - "@odata.type" = "#microsoft.graph.accessReviewStage" - reviewers = @( - @{ - query = "/users/1ed8ac56-4827-4733-8f80-86adc2e67db5" - queryType = "MicrosoftGraph" - } - ) - fallbackReviewers = @( - @{ - query = "/users/4562bcc8-c436-4f95-b7c0-4f8ce89dca5e" - queryType = "MicrosoftGraph" - } - @{ - query = "/users/1ed8ac56-4827-4733-8f80-86adc2e67db5" - queryType = "MicrosoftGraph" - } - ) -} - -Update-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceStage -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId -AccessReviewStageId $accessReviewStageId -BodyParameter $params +Get-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceStage -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId -AccessReviewStageId $accessReviewStageId ``` This example shows how to use the Update-MgBetaBetaIdentityGovernanceAccessReviewDefinitionInstanceStage Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementAccessPackage.md b/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementAccessPackage.md index f389086723a..62a18d5f86f 100644 --- a/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementAccessPackage.md +++ b/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementAccessPackage.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Identity.Governance -$params = @{ - displayName = "Access Package New Name" -} - -Update-MgEntitlementManagementAccessPackage -AccessPackageId $accessPackageId -BodyParameter $params +Get-MgEntitlementManagementAccessPackage -AccessPackageId $accessPackageId ``` This example shows how to use the Get-MgEntitlementManagementAccessPackage Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementAccessPackageAssignmentApprovalStage.md b/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementAccessPackageAssignmentApprovalStage.md index f6c6949389e..6bc990a24bf 100644 --- a/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementAccessPackageAssignmentApprovalStage.md +++ b/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementAccessPackageAssignmentApprovalStage.md @@ -1,17 +1,9 @@ -### Example 1: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Identity.Governance -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +Get-MgEntitlementManagementAccessPackageAssignmentApprovalStage -ApprovalId $approvalId -ApprovalStageId $approvalStageId +``` +This example shows how to use the Get-MgEntitlementManagementAccessPackageAssignmentApprovalStage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementCatalog.md b/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementCatalog.md index ef11d8ae061..ccd5b5ceb82 100644 --- a/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementCatalog.md +++ b/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementCatalog.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Identity.Governance -$params = @{ - displayName = "Catalog One" -} - -Update-MgEntitlementManagementCatalog -AccessPackageCatalogId $accessPackageCatalogId -BodyParameter $params +Get-MgEntitlementManagementCatalog -AccessPackageCatalogId $accessPackageCatalogId ``` This example shows how to use the Get-MgEntitlementManagementCatalog Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementConnectedOrganization.md b/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementConnectedOrganization.md index 0c086640a3e..a71a4fa8270 100644 --- a/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementConnectedOrganization.md +++ b/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementConnectedOrganization.md @@ -2,13 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Identity.Governance -$params = @{ - displayName = "Connected organization new name" - description = "Connected organization new description" - state = "configured" -} - -Update-MgEntitlementManagementConnectedOrganization -ConnectedOrganizationId $connectedOrganizationId -BodyParameter $params +Get-MgEntitlementManagementConnectedOrganization -ConnectedOrganizationId $connectedOrganizationId ``` This example shows how to use the Get-MgEntitlementManagementConnectedOrganization Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementSetting.md b/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementSetting.md index 5feab5dbeed..1354ff5aaaa 100644 --- a/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementSetting.md +++ b/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementSetting.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Identity.Governance -$params = @{ - externalUserLifecycleAction = "None" -} - -Update-MgEntitlementManagementSetting -BodyParameter $params +Get-MgEntitlementManagementSetting ``` This example shows how to use the Get-MgEntitlementManagementSetting Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/v1.0/examples/Get-MgIdentityGovernanceAccessReviewDefinition.md b/src/Identity.Governance/v1.0/examples/Get-MgIdentityGovernanceAccessReviewDefinition.md index f6c6949389e..255a5762e43 100644 --- a/src/Identity.Governance/v1.0/examples/Get-MgIdentityGovernanceAccessReviewDefinition.md +++ b/src/Identity.Governance/v1.0/examples/Get-MgIdentityGovernanceAccessReviewDefinition.md @@ -1,17 +1,9 @@ -### Example 1: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Identity.Governance -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +Get-MgIdentityGovernanceAccessReviewDefinition -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId +``` +This example shows how to use the Get-MgIdentityGovernanceAccessReviewDefinition Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.Governance/v1.0/examples/Get-MgIdentityGovernanceAccessReviewDefinitionInstance.md b/src/Identity.Governance/v1.0/examples/Get-MgIdentityGovernanceAccessReviewDefinitionInstance.md index 2515e29b701..cfa16be6372 100644 --- a/src/Identity.Governance/v1.0/examples/Get-MgIdentityGovernanceAccessReviewDefinitionInstance.md +++ b/src/Identity.Governance/v1.0/examples/Get-MgIdentityGovernanceAccessReviewDefinitionInstance.md @@ -2,48 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Identity.Governance -$params = @{ - scope = @{ - "@odata.type" = "#microsoft.graph.principalResourceMembershipsScope" - principalScopes = @( - @{ - "@odata.type" = "#microsoft.graph.accessReviewQueryScope" - query = "/v1.0/users" - queryType = "MicrosoftGraph" - } - @{ - "@odata.type" = "#microsoft.graph.accessReviewQueryScope" - query = "/v1.0/groups" - queryType = "MicrosoftGraph" - } - ) - resourceScopes = @( - @{ - "@odata.type" = "#microsoft.graph.accessReviewQueryScope" - query = "/beta/roleManagement/directory/roleDefinitions/9b895d92-2cd3-44c7-9d02-a6ac2d5ea5c3" - queryType = "MicrosoftGraph" - } - ) - } - reviewers = @( - @{ - query = "/users/1ed8ac56-4827-4733-8f80-86adc2e67db5" - queryType = "MicrosoftGraph" - } - ) - fallbackReviewers = @( - @{ - query = "/users/4562bcc8-c436-4f95-b7c0-4f8ce89dca5e" - queryType = "MicrosoftGraph" - } - @{ - query = "/users/1ed8ac56-4827-4733-8f80-86adc2e67db5" - queryType = "MicrosoftGraph" - } - ) -} - -Update-MgIdentityGovernanceAccessReviewDefinitionInstance -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId -BodyParameter $params +Get-MgIdentityGovernanceAccessReviewDefinitionInstance -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId ``` This example shows how to use the Get-MgIdentityGovernanceAccessReviewDefinitionInstance Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/v1.0/examples/Get-MgIdentityGovernanceAccessReviewDefinitionInstanceStage.md b/src/Identity.Governance/v1.0/examples/Get-MgIdentityGovernanceAccessReviewDefinitionInstanceStage.md index 6e0572a627d..22b7786ec46 100644 --- a/src/Identity.Governance/v1.0/examples/Get-MgIdentityGovernanceAccessReviewDefinitionInstanceStage.md +++ b/src/Identity.Governance/v1.0/examples/Get-MgIdentityGovernanceAccessReviewDefinitionInstanceStage.md @@ -2,27 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Identity.Governance -$params = @{ - "@odata.type" = "#microsoft.graph.accessReviewStage" - reviewers = @( - @{ - query = "/users/1ed8ac56-4827-4733-8f80-86adc2e67db5" - queryType = "MicrosoftGraph" - } - ) - fallbackReviewers = @( - @{ - query = "/users/4562bcc8-c436-4f95-b7c0-4f8ce89dca5e" - queryType = "MicrosoftGraph" - } - @{ - query = "/users/1ed8ac56-4827-4733-8f80-86adc2e67db5" - queryType = "MicrosoftGraph" - } - ) -} - -Update-MgIdentityGovernanceAccessReviewDefinitionInstanceStage -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId -AccessReviewStageId $accessReviewStageId -BodyParameter $params +Get-MgIdentityGovernanceAccessReviewDefinitionInstanceStage -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId -AccessReviewStageId $accessReviewStageId ``` This example shows how to use the Get-MgIdentityGovernanceAccessReviewDefinitionInstanceStage Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/v1.0/examples/New-MgEntitlementManagementAssignmentRequest.md b/src/Identity.Governance/v1.0/examples/New-MgEntitlementManagementAssignmentRequest.md index ea25673da50..011f485b2ba 100644 --- a/src/Identity.Governance/v1.0/examples/New-MgEntitlementManagementAssignmentRequest.md +++ b/src/Identity.Governance/v1.0/examples/New-MgEntitlementManagementAssignmentRequest.md @@ -1,4 +1,22 @@ -### Example 1: Code snippet +### Example 1: Admin requests a direct assignment for a user already in the directory + +```powershell Import-Module Microsoft.Graph.Identity.Governance + +$params = @{ + requestType = "adminAdd" + assignment = @{ + targetId = "46184453-e63b-4f20-86c2-c557ed5d5df9" + assignmentPolicyId = "2264bf65-76ba-417b-a27d-54d291f0cbc8" + accessPackageId = "a914b616-e04e-476b-aa37-91038f0b165b" + } +} + +New-MgEntitlementManagementAssignmentRequest -BodyParameter $params +``` +This example shows how to use the New-MgEntitlementManagementAssignmentRequest Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Remove an assignment ```powershell Import-Module Microsoft.Graph.Identity.Governance @@ -14,7 +32,7 @@ New-MgEntitlementManagementAssignmentRequest -BodyParameter $params This example shows how to use the New-MgEntitlementManagementAssignmentRequest Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Code snippet +### Example 3: Request an assignment ```powershell Import-Module Microsoft.Graph.Identity.Governance @@ -30,7 +48,7 @@ New-MgEntitlementManagementAssignmentRequest -BodyParameter $params This example shows how to use the New-MgEntitlementManagementAssignmentRequest Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Code snippet +### Example 4: Request an assignment by providing answers to questions ```powershell Import-Module Microsoft.Graph.Identity.Governance @@ -67,7 +85,7 @@ New-MgEntitlementManagementAssignmentRequest -BodyParameter $params This example shows how to use the New-MgEntitlementManagementAssignmentRequest Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Code snippet +### Example 5: Request an update to answers for an assignment ```powershell Import-Module Microsoft.Graph.Identity.Governance diff --git a/src/Identity.Governance/v1.0/examples/Remove-MgEntitlementManagementAccessPackage.md b/src/Identity.Governance/v1.0/examples/Remove-MgEntitlementManagementAccessPackage.md index 875305637a8..35127529902 100644 --- a/src/Identity.Governance/v1.0/examples/Remove-MgEntitlementManagementAccessPackage.md +++ b/src/Identity.Governance/v1.0/examples/Remove-MgEntitlementManagementAccessPackage.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Identity.Governance -$params = @{ - displayName = "Access Package New Name" -} - -Update-MgEntitlementManagementAccessPackage -AccessPackageId $accessPackageId -BodyParameter $params +Get-MgEntitlementManagementAccessPackage -AccessPackageId $accessPackageId ``` This example shows how to use the Remove-MgEntitlementManagementAccessPackage Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/v1.0/examples/Remove-MgEntitlementManagementAccessPackageAssignmentApprovalStage.md b/src/Identity.Governance/v1.0/examples/Remove-MgEntitlementManagementAccessPackageAssignmentApprovalStage.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.Governance/v1.0/examples/Remove-MgEntitlementManagementAccessPackageAssignmentApprovalStage.md +++ b/src/Identity.Governance/v1.0/examples/Remove-MgEntitlementManagementAccessPackageAssignmentApprovalStage.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.Governance/v1.0/examples/Remove-MgEntitlementManagementCatalog.md b/src/Identity.Governance/v1.0/examples/Remove-MgEntitlementManagementCatalog.md index a0d9819bb3a..e67f768842a 100644 --- a/src/Identity.Governance/v1.0/examples/Remove-MgEntitlementManagementCatalog.md +++ b/src/Identity.Governance/v1.0/examples/Remove-MgEntitlementManagementCatalog.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Identity.Governance -$params = @{ - displayName = "Catalog One" -} - -Update-MgEntitlementManagementCatalog -AccessPackageCatalogId $accessPackageCatalogId -BodyParameter $params +Get-MgEntitlementManagementCatalog -AccessPackageCatalogId $accessPackageCatalogId ``` This example shows how to use the Remove-MgEntitlementManagementCatalog Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/v1.0/examples/Remove-MgEntitlementManagementConnectedOrganization.md b/src/Identity.Governance/v1.0/examples/Remove-MgEntitlementManagementConnectedOrganization.md index 43748936b58..c6413a3f79f 100644 --- a/src/Identity.Governance/v1.0/examples/Remove-MgEntitlementManagementConnectedOrganization.md +++ b/src/Identity.Governance/v1.0/examples/Remove-MgEntitlementManagementConnectedOrganization.md @@ -2,13 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Identity.Governance -$params = @{ - displayName = "Connected organization new name" - description = "Connected organization new description" - state = "configured" -} - -Update-MgEntitlementManagementConnectedOrganization -ConnectedOrganizationId $connectedOrganizationId -BodyParameter $params +Get-MgEntitlementManagementConnectedOrganization -ConnectedOrganizationId $connectedOrganizationId ``` This example shows how to use the Remove-MgEntitlementManagementConnectedOrganization Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/v1.0/examples/Remove-MgIdentityGovernanceAppConsentRequestUserConsentRequestApprovalStage.md b/src/Identity.Governance/v1.0/examples/Remove-MgIdentityGovernanceAppConsentRequestUserConsentRequestApprovalStage.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.Governance/v1.0/examples/Remove-MgIdentityGovernanceAppConsentRequestUserConsentRequestApprovalStage.md +++ b/src/Identity.Governance/v1.0/examples/Remove-MgIdentityGovernanceAppConsentRequestUserConsentRequestApprovalStage.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.Governance/v1.0/examples/Update-MgEntitlementManagementAccessPackage.md b/src/Identity.Governance/v1.0/examples/Update-MgEntitlementManagementAccessPackage.md index 4e71db888dd..077b998349f 100644 --- a/src/Identity.Governance/v1.0/examples/Update-MgEntitlementManagementAccessPackage.md +++ b/src/Identity.Governance/v1.0/examples/Update-MgEntitlementManagementAccessPackage.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Identity.Governance -$params = @{ - displayName = "Access Package New Name" -} - -Update-MgEntitlementManagementAccessPackage -AccessPackageId $accessPackageId -BodyParameter $params +Get-MgEntitlementManagementAccessPackage -AccessPackageId $accessPackageId ``` This example shows how to use the Update-MgEntitlementManagementAccessPackage Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/v1.0/examples/Update-MgEntitlementManagementAccessPackageAssignmentApprovalStage.md b/src/Identity.Governance/v1.0/examples/Update-MgEntitlementManagementAccessPackageAssignmentApprovalStage.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.Governance/v1.0/examples/Update-MgEntitlementManagementAccessPackageAssignmentApprovalStage.md +++ b/src/Identity.Governance/v1.0/examples/Update-MgEntitlementManagementAccessPackageAssignmentApprovalStage.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.Governance/v1.0/examples/Update-MgEntitlementManagementCatalog.md b/src/Identity.Governance/v1.0/examples/Update-MgEntitlementManagementCatalog.md index dbe24b72da7..ad4538b66a9 100644 --- a/src/Identity.Governance/v1.0/examples/Update-MgEntitlementManagementCatalog.md +++ b/src/Identity.Governance/v1.0/examples/Update-MgEntitlementManagementCatalog.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Identity.Governance -$params = @{ - displayName = "Catalog One" -} - -Update-MgEntitlementManagementCatalog -AccessPackageCatalogId $accessPackageCatalogId -BodyParameter $params +Get-MgEntitlementManagementCatalog -AccessPackageCatalogId $accessPackageCatalogId ``` This example shows how to use the Update-MgEntitlementManagementCatalog Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/v1.0/examples/Update-MgEntitlementManagementConnectedOrganization.md b/src/Identity.Governance/v1.0/examples/Update-MgEntitlementManagementConnectedOrganization.md index 96506c167c1..d0e712cafd3 100644 --- a/src/Identity.Governance/v1.0/examples/Update-MgEntitlementManagementConnectedOrganization.md +++ b/src/Identity.Governance/v1.0/examples/Update-MgEntitlementManagementConnectedOrganization.md @@ -2,13 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Identity.Governance -$params = @{ - displayName = "Connected organization new name" - description = "Connected organization new description" - state = "configured" -} - -Update-MgEntitlementManagementConnectedOrganization -ConnectedOrganizationId $connectedOrganizationId -BodyParameter $params +Get-MgEntitlementManagementConnectedOrganization -ConnectedOrganizationId $connectedOrganizationId ``` This example shows how to use the Update-MgEntitlementManagementConnectedOrganization Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/v1.0/examples/Update-MgEntitlementManagementSetting.md b/src/Identity.Governance/v1.0/examples/Update-MgEntitlementManagementSetting.md index d31dd7b7155..ca70b16d1c9 100644 --- a/src/Identity.Governance/v1.0/examples/Update-MgEntitlementManagementSetting.md +++ b/src/Identity.Governance/v1.0/examples/Update-MgEntitlementManagementSetting.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Identity.Governance -$params = @{ - externalUserLifecycleAction = "None" -} - -Update-MgEntitlementManagementSetting -BodyParameter $params +Get-MgEntitlementManagementSetting ``` This example shows how to use the Update-MgEntitlementManagementSetting Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/v1.0/examples/Update-MgIdentityGovernanceAccessReviewDefinition.md b/src/Identity.Governance/v1.0/examples/Update-MgIdentityGovernanceAccessReviewDefinition.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.Governance/v1.0/examples/Update-MgIdentityGovernanceAccessReviewDefinition.md +++ b/src/Identity.Governance/v1.0/examples/Update-MgIdentityGovernanceAccessReviewDefinition.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.Governance/v1.0/examples/Update-MgIdentityGovernanceAccessReviewDefinitionInstance.md b/src/Identity.Governance/v1.0/examples/Update-MgIdentityGovernanceAccessReviewDefinitionInstance.md index f502ec22f5b..a6a3974c682 100644 --- a/src/Identity.Governance/v1.0/examples/Update-MgIdentityGovernanceAccessReviewDefinitionInstance.md +++ b/src/Identity.Governance/v1.0/examples/Update-MgIdentityGovernanceAccessReviewDefinitionInstance.md @@ -2,48 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Identity.Governance -$params = @{ - scope = @{ - "@odata.type" = "#microsoft.graph.principalResourceMembershipsScope" - principalScopes = @( - @{ - "@odata.type" = "#microsoft.graph.accessReviewQueryScope" - query = "/v1.0/users" - queryType = "MicrosoftGraph" - } - @{ - "@odata.type" = "#microsoft.graph.accessReviewQueryScope" - query = "/v1.0/groups" - queryType = "MicrosoftGraph" - } - ) - resourceScopes = @( - @{ - "@odata.type" = "#microsoft.graph.accessReviewQueryScope" - query = "/beta/roleManagement/directory/roleDefinitions/9b895d92-2cd3-44c7-9d02-a6ac2d5ea5c3" - queryType = "MicrosoftGraph" - } - ) - } - reviewers = @( - @{ - query = "/users/1ed8ac56-4827-4733-8f80-86adc2e67db5" - queryType = "MicrosoftGraph" - } - ) - fallbackReviewers = @( - @{ - query = "/users/4562bcc8-c436-4f95-b7c0-4f8ce89dca5e" - queryType = "MicrosoftGraph" - } - @{ - query = "/users/1ed8ac56-4827-4733-8f80-86adc2e67db5" - queryType = "MicrosoftGraph" - } - ) -} - -Update-MgIdentityGovernanceAccessReviewDefinitionInstance -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId -BodyParameter $params +Get-MgIdentityGovernanceAccessReviewDefinitionInstance -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId ``` This example shows how to use the Update-MgIdentityGovernanceAccessReviewDefinitionInstance Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/v1.0/examples/Update-MgIdentityGovernanceAccessReviewDefinitionInstanceStage.md b/src/Identity.Governance/v1.0/examples/Update-MgIdentityGovernanceAccessReviewDefinitionInstanceStage.md index 30e5dc7d07a..1dffc89c913 100644 --- a/src/Identity.Governance/v1.0/examples/Update-MgIdentityGovernanceAccessReviewDefinitionInstanceStage.md +++ b/src/Identity.Governance/v1.0/examples/Update-MgIdentityGovernanceAccessReviewDefinitionInstanceStage.md @@ -2,27 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Identity.Governance -$params = @{ - "@odata.type" = "#microsoft.graph.accessReviewStage" - reviewers = @( - @{ - query = "/users/1ed8ac56-4827-4733-8f80-86adc2e67db5" - queryType = "MicrosoftGraph" - } - ) - fallbackReviewers = @( - @{ - query = "/users/4562bcc8-c436-4f95-b7c0-4f8ce89dca5e" - queryType = "MicrosoftGraph" - } - @{ - query = "/users/1ed8ac56-4827-4733-8f80-86adc2e67db5" - queryType = "MicrosoftGraph" - } - ) -} - -Update-MgIdentityGovernanceAccessReviewDefinitionInstanceStage -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId -AccessReviewStageId $accessReviewStageId -BodyParameter $params +Get-MgIdentityGovernanceAccessReviewDefinitionInstanceStage -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId -AccessReviewStageId $accessReviewStageId ``` This example shows how to use the Update-MgIdentityGovernanceAccessReviewDefinitionInstanceStage Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/v1.0/examples/Update-MgIdentityGovernanceAppConsentRequestUserConsentRequestApprovalStage.md b/src/Identity.Governance/v1.0/examples/Update-MgIdentityGovernanceAppConsentRequestUserConsentRequestApprovalStage.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.Governance/v1.0/examples/Update-MgIdentityGovernanceAppConsentRequestUserConsentRequestApprovalStage.md +++ b/src/Identity.Governance/v1.0/examples/Update-MgIdentityGovernanceAppConsentRequestUserConsentRequestApprovalStage.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.SignIns/beta/examples/Get-MgBetaIdentityApiConnector.md b/src/Identity.SignIns/beta/examples/Get-MgBetaIdentityApiConnector.md index f275b92468a..8d67419f607 100644 --- a/src/Identity.SignIns/beta/examples/Get-MgBetaIdentityApiConnector.md +++ b/src/Identity.SignIns/beta/examples/Get-MgBetaIdentityApiConnector.md @@ -1,35 +1,8 @@ -### Example 1: Changing display name, targetUrl, and username & password used for basic authentication +### Example 1: Code snippet ```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns -$params = @{ - displayName = "New Test API" - targetUrl = "https://otherapi.com/api/endpoint" - authenticationConfiguration = @{ - "@odata.type" = "microsoft.graph.basicAuthentication" - username = "<NEW_USERNAME>" - password = "<NEW_PASSWORD>" - } -} - -Update-MgBetaIdentityApiConnector -IdentityApiConnectorId $identityApiConnectorId -BodyParameter $params -``` -This example shows how to use the Get-MgBetaBetaIdentityApiConnector Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Changing API connector to use client certificate authentication - -```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns - -$params = @{ - authenticationConfiguration = @{ - "@odata.type" = "#microsoft.graph.pkcs12Certificate" - pkcs12Value = "eyJhbGciOiJSU0EtT0FFUCIsImVuYyI6IkEyNTZHQ00ifQ...kDJ04sJShkkgjL9Bm49plA" - password = "secret" - } -} - -Update-MgBetaIdentityApiConnector -IdentityApiConnectorId $identityApiConnectorId -BodyParameter $params +Get-MgBetaIdentityApiConnector -IdentityApiConnectorId $identityApiConnectorId ``` This example shows how to use the Get-MgBetaBetaIdentityApiConnector Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/beta/examples/Get-MgBetaIdentityB2XUserFlowUserAttributeAssignment.md b/src/Identity.SignIns/beta/examples/Get-MgBetaIdentityB2XUserFlowUserAttributeAssignment.md index a2ed3d133d3..42936ac6108 100644 --- a/src/Identity.SignIns/beta/examples/Get-MgBetaIdentityB2XUserFlowUserAttributeAssignment.md +++ b/src/Identity.SignIns/beta/examples/Get-MgBetaIdentityB2XUserFlowUserAttributeAssignment.md @@ -1,12 +1,17 @@ -### Example 1: Code snippet +### Example 1: Get the details of an identityUserFlowAttributeAssignment ```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns -$params = @{ - userInputType = "textBox" -} +Get-MgBetaIdentityB2XUserFlowUserAttributeAssignment -B2xIdentityUserFlowId $b2xIdentityUserFlowId -IdentityUserFlowAttributeAssignmentId $identityUserFlowAttributeAssignmentId +``` +This example shows how to use the Get-MgBetaBetaIdentityB2XUserFlowUserAttributeAssignment Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Get the details of an identityUserFlowAttributeAssignment and expand userAttribute + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns -Update-MgBetaIdentityB2XUserFlowUserAttributeAssignment -B2xIdentityUserFlowId $b2xIdentityUserFlowId -IdentityUserFlowAttributeAssignmentId $identityUserFlowAttributeAssignmentId -BodyParameter $params +Get-MgBetaIdentityB2XUserFlowUserAttributeAssignment -B2xIdentityUserFlowId $b2xIdentityUserFlowId -IdentityUserFlowAttributeAssignmentId $identityUserFlowAttributeAssignmentId -ExpandProperty "userAttribute" ``` This example shows how to use the Get-MgBetaBetaIdentityB2XUserFlowUserAttributeAssignment Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/beta/examples/Get-MgBetaIdentityProvider.md b/src/Identity.SignIns/beta/examples/Get-MgBetaIdentityProvider.md index a42832c4b92..bdb0ccc8c88 100644 --- a/src/Identity.SignIns/beta/examples/Get-MgBetaIdentityProvider.md +++ b/src/Identity.SignIns/beta/examples/Get-MgBetaIdentityProvider.md @@ -1,27 +1,26 @@ -### Example 1: Update a specific social identity provider (Azure AD or Azure AD B2C) +### Example 1: Retrieve a specific social identity provider (Azure AD or Azure AD B2C) ```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns -$params = @{ - "@odata.type" = "#microsoft.graph.socialIdentityProvider" - clientSecret = "1111111111111" -} - -Update-MgBetaIdentityProvider -IdentityProviderBaseId $identityProviderBaseId -BodyParameter $params +Get-MgBetaIdentityProvider -IdentityProviderBaseId $identityProviderBaseId ``` This example shows how to use the Get-MgBetaBetaIdentityProvider Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Update a specific Apple identity provider (only for Azure AD B2C) +### Example 2: Retrieve a specific built-in identity provider (only for Azure AD) ```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns -$params = @{ - "@odata.type" = "#microsoft.graph.socialIdentityProvider" - displayName = "Apple" -} +Get-MgBetaIdentityProvider -IdentityProviderBaseId $identityProviderBaseId +``` +This example shows how to use the Get-MgBetaBetaIdentityProvider Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Retrieves Apple identity provider(only for Azure AD B2C) + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns -Update-MgBetaIdentityProvider -IdentityProviderBaseId $identityProviderBaseId -BodyParameter $params +Get-MgBetaIdentityProvider -IdentityProviderBaseId $identityProviderBaseId ``` This example shows how to use the Get-MgBetaBetaIdentityProvider Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/beta/examples/Get-MgBetaIdentityUserFlowAttribute.md b/src/Identity.SignIns/beta/examples/Get-MgBetaIdentityUserFlowAttribute.md index d761255017c..59e3da0add7 100644 --- a/src/Identity.SignIns/beta/examples/Get-MgBetaIdentityUserFlowAttribute.md +++ b/src/Identity.SignIns/beta/examples/Get-MgBetaIdentityUserFlowAttribute.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns -$params = @{ - description = "Your new hobby" -} - -Update-MgBetaIdentityUserFlowAttribute -IdentityUserFlowAttributeId $identityUserFlowAttributeId -BodyParameter $params +Get-MgBetaIdentityUserFlowAttribute -IdentityUserFlowAttributeId $identityUserFlowAttributeId ``` This example shows how to use the Get-MgBetaBetaIdentityUserFlowAttribute Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/beta/examples/Get-MgBetaOauth2PermissionGrant.md b/src/Identity.SignIns/beta/examples/Get-MgBetaOauth2PermissionGrant.md index f435734cf7b..6e3fd0bcfb4 100644 --- a/src/Identity.SignIns/beta/examples/Get-MgBetaOauth2PermissionGrant.md +++ b/src/Identity.SignIns/beta/examples/Get-MgBetaOauth2PermissionGrant.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns -$params = @{ - scope = "User.ReadBasic.All Group.ReadWrite.All" -} - -Update-MgBetaOauth2PermissionGrant -OAuth2PermissionGrantId $oAuth2PermissionGrantId -BodyParameter $params +Get-MgBetaOauth2PermissionGrant -OAuth2PermissionGrantId $oAuth2PermissionGrantId ``` This example shows how to use the Get-MgBetaBetaOauth2PermissionGrant Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyActivityBasedTimeoutPolicy.md b/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyActivityBasedTimeoutPolicy.md index ca9fa02a17e..ade60d75395 100644 --- a/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyActivityBasedTimeoutPolicy.md +++ b/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyActivityBasedTimeoutPolicy.md @@ -2,15 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns -$params = @{ - definition = @( - "definition-value" - ) - displayName = "displayName-value" - isOrganizationDefault = $true -} - -Update-MgBetaPolicyActivityBasedTimeoutPolicy -ActivityBasedTimeoutPolicyId $activityBasedTimeoutPolicyId -BodyParameter $params +Get-MgBetaPolicyActivityBasedTimeoutPolicy -ActivityBasedTimeoutPolicyId $activityBasedTimeoutPolicyId ``` This example shows how to use the Get-MgBetaBetaPolicyActivityBasedTimeoutPolicy Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyAuthenticationFlowPolicy.md b/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyAuthenticationFlowPolicy.md index 3b3acdc2ef6..fb4dff43a9c 100644 --- a/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyAuthenticationFlowPolicy.md +++ b/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyAuthenticationFlowPolicy.md @@ -2,13 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns -$params = @{ - selfServiceSignUp = @{ - isEnabled = $true - } -} - -Update-MgBetaPolicyAuthenticationFlowPolicy -BodyParameter $params +Get-MgBetaPolicyAuthenticationFlowPolicy ``` This example shows how to use the Get-MgBetaBetaPolicyAuthenticationFlowPolicy Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyAuthenticationMethodPolicy.md b/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyAuthenticationMethodPolicy.md index dcb5e0876b3..7f6cdbce526 100644 --- a/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyAuthenticationMethodPolicy.md +++ b/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyAuthenticationMethodPolicy.md @@ -2,25 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns -$params = @{ - registrationEnforcement = @{ - authenticationMethodsRegistrationCampaign = @{ - snoozeDurationInDays = 1 - state = "enabled" - excludeTargets = @( - ) - includeTargets = @( - @{ - id = "3ee3a9de-0a86-4e12-a287-9769accf1ba2" - targetType = "group" - targetedAuthenticationMethod = "microsoftAuthenticator" - } - ) - } - } -} - -Update-MgBetaPolicyAuthenticationMethodPolicy -BodyParameter $params +Get-MgBetaPolicyAuthenticationMethodPolicy ``` This example shows how to use the Get-MgBetaBetaPolicyAuthenticationMethodPolicy Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyClaimMappingPolicy.md b/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyClaimMappingPolicy.md index 85dbda2a7c5..a0d6e3e7b9f 100644 --- a/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyClaimMappingPolicy.md +++ b/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyClaimMappingPolicy.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns -$params = @{ - displayName = "UpdateClaimsPolicy" -} - -Update-MgBetaPolicyClaimMappingPolicy -ClaimsMappingPolicyId $claimsMappingPolicyId -BodyParameter $params +Get-MgBetaPolicyClaimMappingPolicy -ClaimsMappingPolicyId $claimsMappingPolicyId ``` This example shows how to use the Get-MgBetaBetaPolicyClaimMappingPolicy Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyCrossTenantAccessPolicy.md b/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyCrossTenantAccessPolicy.md index 903e77a9d64..2c8bbf38bf8 100644 --- a/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyCrossTenantAccessPolicy.md +++ b/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyCrossTenantAccessPolicy.md @@ -2,13 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns -$params = @{ - allowedCloudEndpoints = @( - "microsoftonline.us" - ) -} - -Update-MgBetaPolicyCrossTenantAccessPolicy -BodyParameter $params +Get-MgBetaPolicyCrossTenantAccessPolicy ``` This example shows how to use the Get-MgBetaBetaPolicyCrossTenantAccessPolicy Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyCrossTenantAccessPolicyDefault.md b/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyCrossTenantAccessPolicyDefault.md index ecbb37cbe1a..fd2eae5760c 100644 --- a/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyCrossTenantAccessPolicyDefault.md +++ b/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyCrossTenantAccessPolicyDefault.md @@ -2,30 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns -$params = @{ - b2bCollaborationOutbound = @{ - usersAndGroups = @{ - accessType = "blocked" - targets = @( - @{ - target = "0be493dc-cb56-4a53-936f-9cf64410b8b0" - targetType = "group" - } - ) - } - applications = @{ - accessType = "blocked" - targets = @( - @{ - target = "AllApplications" - targetType = "application" - } - ) - } - } -} - -Update-MgBetaPolicyCrossTenantAccessPolicyDefault -BodyParameter $params +Get-MgBetaPolicyCrossTenantAccessPolicyDefault ``` This example shows how to use the Get-MgBetaBetaPolicyCrossTenantAccessPolicyDefault Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyCrossTenantAccessPolicyPartner.md b/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyCrossTenantAccessPolicyPartner.md index 5b670098181..89b7a7e8dae 100644 --- a/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyCrossTenantAccessPolicyPartner.md +++ b/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyCrossTenantAccessPolicyPartner.md @@ -1,32 +1,8 @@ -### Example 1: Configure inbound trust settings +### Example 1: Code snippet ```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns -$params = @{ - inboundTrust = @{ - isMfaAccepted = $true - isCompliantDeviceAccepted = $true - isHybridAzureADJoinedDeviceAccepted = $true - } -} - -Update-MgBetaPolicyCrossTenantAccessPolicyPartner -CrossTenantAccessPolicyConfigurationPartnerTenantId $crossTenantAccessPolicyConfigurationPartnerTenantId -BodyParameter $params -``` -This example shows how to use the Get-MgBetaBetaPolicyCrossTenantAccessPolicyPartner Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Configure automaticUserConsent settings - -```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns - -$params = @{ - automaticUserConsentSettings = @{ - inboundAllowed = $true - outboundAllowed = $true - } -} - -Update-MgBetaPolicyCrossTenantAccessPolicyPartner -CrossTenantAccessPolicyConfigurationPartnerTenantId $crossTenantAccessPolicyConfigurationPartnerTenantId -BodyParameter $params +Get-MgBetaPolicyCrossTenantAccessPolicyPartner -CrossTenantAccessPolicyConfigurationPartnerTenantId $crossTenantAccessPolicyConfigurationPartnerTenantId ``` This example shows how to use the Get-MgBetaBetaPolicyCrossTenantAccessPolicyPartner Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyDefaultAppManagementPolicy.md b/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyDefaultAppManagementPolicy.md index 3154002cc42..37d57d2f0cc 100644 --- a/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyDefaultAppManagementPolicy.md +++ b/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyDefaultAppManagementPolicy.md @@ -2,47 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.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-MgBetaPolicyDefaultAppManagementPolicy -BodyParameter $params +Get-MgBetaPolicyDefaultAppManagementPolicy ``` This example shows how to use the Get-MgBetaBetaPolicyDefaultAppManagementPolicy Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyFeatureRolloutPolicy.md b/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyFeatureRolloutPolicy.md index cf28a4329aa..8c7c23ce68e 100644 --- a/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyFeatureRolloutPolicy.md +++ b/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyFeatureRolloutPolicy.md @@ -1,15 +1,17 @@ -### Example 1: Code snippet +### Example 1: Get a feature rollout policy ```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns -$params = @{ - displayName = "PasswordHashSync Rollout Policy" - description = "PasswordHashSync Rollout Policy" - isEnabled = $true - isAppliedToOrganization = $false -} +Get-MgBetaPolicyFeatureRolloutPolicy -FeatureRolloutPolicyId $featureRolloutPolicyId +``` +This example shows how to use the Get-MgBetaBetaPolicyFeatureRolloutPolicy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Get a feature rollout policy and expand appliesTo + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns -Update-MgBetaPolicyFeatureRolloutPolicy -FeatureRolloutPolicyId $featureRolloutPolicyId -BodyParameter $params +Get-MgBetaPolicyFeatureRolloutPolicy -FeatureRolloutPolicyId $featureRolloutPolicyId -ExpandProperty "appliesTo" ``` This example shows how to use the Get-MgBetaBetaPolicyFeatureRolloutPolicy Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyIdentitySecurityDefaultEnforcementPolicy.md b/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyIdentitySecurityDefaultEnforcementPolicy.md index bc7b84b5edf..5cd0d6ac90c 100644 --- a/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyIdentitySecurityDefaultEnforcementPolicy.md +++ b/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyIdentitySecurityDefaultEnforcementPolicy.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns -$params = @{ - isEnabled = $false -} - -Update-MgBetaPolicyIdentitySecurityDefaultEnforcementPolicy -BodyParameter $params +Get-MgBetaPolicyIdentitySecurityDefaultEnforcementPolicy ``` This example shows how to use the Get-MgBetaBetaPolicyIdentitySecurityDefaultEnforcementPolicy Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyRoleManagementPolicyRule.md b/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyRoleManagementPolicyRule.md index 519089de0d8..65bd79550e4 100644 --- a/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyRoleManagementPolicyRule.md +++ b/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyRoleManagementPolicyRule.md @@ -2,26 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns -$params = @{ - "@odata.type" = "#microsoft.graph.unifiedRoleManagementPolicyExpirationRule" - id = "Expiration_EndUser_Assignment" - isExpirationRequired = $true - maximumDuration = "PT1H45M" - target = @{ - "@odata.type" = "microsoft.graph.unifiedRoleManagementPolicyRuleTarget" - caller = "EndUser" - operations = @( - "All" - ) - level = "Assignment" - inheritableSettings = @( - ) - enforcedSettings = @( - ) - } -} - -Update-MgBetaPolicyRoleManagementPolicyRule -UnifiedRoleManagementPolicyId $unifiedRoleManagementPolicyId -UnifiedRoleManagementPolicyRuleId $unifiedRoleManagementPolicyRuleId -BodyParameter $params +Get-MgBetaPolicyRoleManagementPolicyRule -UnifiedRoleManagementPolicyId $unifiedRoleManagementPolicyId -UnifiedRoleManagementPolicyRuleId $unifiedRoleManagementPolicyRuleId ``` This example shows how to use the Get-MgBetaBetaPolicyRoleManagementPolicyRule Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyTokenIssuancePolicy.md b/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyTokenIssuancePolicy.md index ce5d94db331..04b853ee7f9 100644 --- a/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyTokenIssuancePolicy.md +++ b/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyTokenIssuancePolicy.md @@ -2,15 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns -$params = @{ - definition = @( - "definition-value" - ) - displayName = "displayName-value" - isOrganizationDefault = $true -} - -Update-MgBetaPolicyTokenIssuancePolicy -TokenIssuancePolicyId $tokenIssuancePolicyId -BodyParameter $params +Remove-MgBetaPolicyTokenIssuancePolicy -TokenIssuancePolicyId $tokenIssuancePolicyId ``` This example shows how to use the Get-MgBetaBetaPolicyTokenIssuancePolicy Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyTokenLifetimePolicy.md b/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyTokenLifetimePolicy.md index 46ef5d6cc5f..198c4a3fabe 100644 --- a/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyTokenLifetimePolicy.md +++ b/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyTokenLifetimePolicy.md @@ -2,15 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns -$params = @{ - definition = @( - "{"TokenLifetimePolicy":{"Version":1,"AccessTokenLifetime":"5:30:00"}}" - ) - displayName = "Contoso token lifetime policy" - isOrganizationDefault = $true -} - -Update-MgBetaPolicyTokenLifetimePolicy -TokenLifetimePolicyId $tokenLifetimePolicyId -BodyParameter $params +Get-MgBetaPolicyTokenLifetimePolicy -TokenLifetimePolicyId $tokenLifetimePolicyId ``` This example shows how to use the Get-MgBetaBetaPolicyTokenLifetimePolicy Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/beta/examples/Get-MgBetaUserAuthenticationEmailMethod.md b/src/Identity.SignIns/beta/examples/Get-MgBetaUserAuthenticationEmailMethod.md index be5394eef23..cebab6f6505 100644 --- a/src/Identity.SignIns/beta/examples/Get-MgBetaUserAuthenticationEmailMethod.md +++ b/src/Identity.SignIns/beta/examples/Get-MgBetaUserAuthenticationEmailMethod.md @@ -2,11 +2,8 @@ ```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns -$params = @{ - emailAddress = "kim@contoso.com" -} - -Update-MgBetaUserAuthenticationEmailMethod -UserId $userId -EmailAuthenticationMethodId $emailAuthenticationMethodId -BodyParameter $params +# A UPN can also be used as -UserId. +Get-MgBetaUserAuthenticationEmailMethod -UserId $userId -EmailAuthenticationMethodId $emailAuthenticationMethodId ``` This example shows how to use the Get-MgBetaBetaUserAuthenticationEmailMethod Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/beta/examples/Get-MgBetaUserAuthenticationPhoneMethod.md b/src/Identity.SignIns/beta/examples/Get-MgBetaUserAuthenticationPhoneMethod.md index 3ba9c371e13..911a99fa3dc 100644 --- a/src/Identity.SignIns/beta/examples/Get-MgBetaUserAuthenticationPhoneMethod.md +++ b/src/Identity.SignIns/beta/examples/Get-MgBetaUserAuthenticationPhoneMethod.md @@ -2,13 +2,8 @@ ```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns -$params = @{ - phoneNumber = "+1 2065555554" - phoneType = "mobile" -} - # A UPN can also be used as -UserId. -Update-MgBetaUserAuthenticationPhoneMethod -UserId $userId -PhoneAuthenticationMethodId $phoneAuthenticationMethodId -BodyParameter $params +Get-MgBetaUserAuthenticationPhoneMethod -UserId $userId -PhoneAuthenticationMethodId $phoneAuthenticationMethodId ``` This example shows how to use the Get-MgBetaBetaUserAuthenticationPhoneMethod Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/beta/examples/Remove-MgBetaIdentityApiConnector.md b/src/Identity.SignIns/beta/examples/Remove-MgBetaIdentityApiConnector.md index eda57c0f079..630cd3eaa57 100644 --- a/src/Identity.SignIns/beta/examples/Remove-MgBetaIdentityApiConnector.md +++ b/src/Identity.SignIns/beta/examples/Remove-MgBetaIdentityApiConnector.md @@ -1,35 +1,8 @@ -### Example 1: Changing display name, targetUrl, and username & password used for basic authentication +### Example 1: Code snippet ```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns -$params = @{ - displayName = "New Test API" - targetUrl = "https://otherapi.com/api/endpoint" - authenticationConfiguration = @{ - "@odata.type" = "microsoft.graph.basicAuthentication" - username = "<NEW_USERNAME>" - password = "<NEW_PASSWORD>" - } -} - -Update-MgBetaIdentityApiConnector -IdentityApiConnectorId $identityApiConnectorId -BodyParameter $params -``` -This example shows how to use the Remove-MgBetaBetaIdentityApiConnector Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Changing API connector to use client certificate authentication - -```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns - -$params = @{ - authenticationConfiguration = @{ - "@odata.type" = "#microsoft.graph.pkcs12Certificate" - pkcs12Value = "eyJhbGciOiJSU0EtT0FFUCIsImVuYyI6IkEyNTZHQ00ifQ...kDJ04sJShkkgjL9Bm49plA" - password = "secret" - } -} - -Update-MgBetaIdentityApiConnector -IdentityApiConnectorId $identityApiConnectorId -BodyParameter $params +Get-MgBetaIdentityApiConnector -IdentityApiConnectorId $identityApiConnectorId ``` This example shows how to use the Remove-MgBetaBetaIdentityApiConnector Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/beta/examples/Remove-MgBetaIdentityProvider.md b/src/Identity.SignIns/beta/examples/Remove-MgBetaIdentityProvider.md index 2031ccb7124..e0806d31a21 100644 --- a/src/Identity.SignIns/beta/examples/Remove-MgBetaIdentityProvider.md +++ b/src/Identity.SignIns/beta/examples/Remove-MgBetaIdentityProvider.md @@ -1,27 +1,26 @@ -### Example 1: Update a specific social identity provider (Azure AD or Azure AD B2C) +### Example 1: Retrieve a specific social identity provider (Azure AD or Azure AD B2C) ```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns -$params = @{ - "@odata.type" = "#microsoft.graph.socialIdentityProvider" - clientSecret = "1111111111111" -} - -Update-MgBetaIdentityProvider -IdentityProviderBaseId $identityProviderBaseId -BodyParameter $params +Get-MgBetaIdentityProvider -IdentityProviderBaseId $identityProviderBaseId ``` This example shows how to use the Remove-MgBetaBetaIdentityProvider Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Update a specific Apple identity provider (only for Azure AD B2C) +### Example 2: Retrieve a specific built-in identity provider (only for Azure AD) ```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns -$params = @{ - "@odata.type" = "#microsoft.graph.socialIdentityProvider" - displayName = "Apple" -} +Get-MgBetaIdentityProvider -IdentityProviderBaseId $identityProviderBaseId +``` +This example shows how to use the Remove-MgBetaBetaIdentityProvider Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Retrieves Apple identity provider(only for Azure AD B2C) + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns -Update-MgBetaIdentityProvider -IdentityProviderBaseId $identityProviderBaseId -BodyParameter $params +Get-MgBetaIdentityProvider -IdentityProviderBaseId $identityProviderBaseId ``` This example shows how to use the Remove-MgBetaBetaIdentityProvider Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/beta/examples/Remove-MgBetaIdentityUserFlowAttribute.md b/src/Identity.SignIns/beta/examples/Remove-MgBetaIdentityUserFlowAttribute.md index e5ed88b14b6..e8bace9e881 100644 --- a/src/Identity.SignIns/beta/examples/Remove-MgBetaIdentityUserFlowAttribute.md +++ b/src/Identity.SignIns/beta/examples/Remove-MgBetaIdentityUserFlowAttribute.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns -$params = @{ - description = "Your new hobby" -} - -Update-MgBetaIdentityUserFlowAttribute -IdentityUserFlowAttributeId $identityUserFlowAttributeId -BodyParameter $params +Get-MgBetaIdentityUserFlowAttribute -IdentityUserFlowAttributeId $identityUserFlowAttributeId ``` This example shows how to use the Remove-MgBetaBetaIdentityUserFlowAttribute Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/beta/examples/Remove-MgBetaOauth2PermissionGrant.md b/src/Identity.SignIns/beta/examples/Remove-MgBetaOauth2PermissionGrant.md index 18772c5922c..d94f9f7e5c9 100644 --- a/src/Identity.SignIns/beta/examples/Remove-MgBetaOauth2PermissionGrant.md +++ b/src/Identity.SignIns/beta/examples/Remove-MgBetaOauth2PermissionGrant.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns -$params = @{ - scope = "User.ReadBasic.All Group.ReadWrite.All" -} - -Update-MgBetaOauth2PermissionGrant -OAuth2PermissionGrantId $oAuth2PermissionGrantId -BodyParameter $params +Get-MgBetaOauth2PermissionGrant -OAuth2PermissionGrantId $oAuth2PermissionGrantId ``` This example shows how to use the Remove-MgBetaBetaOauth2PermissionGrant Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyActivityBasedTimeoutPolicy.md b/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyActivityBasedTimeoutPolicy.md index 93a03921b93..cd757be2d1b 100644 --- a/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyActivityBasedTimeoutPolicy.md +++ b/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyActivityBasedTimeoutPolicy.md @@ -2,15 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns -$params = @{ - definition = @( - "definition-value" - ) - displayName = "displayName-value" - isOrganizationDefault = $true -} - -Update-MgBetaPolicyActivityBasedTimeoutPolicy -ActivityBasedTimeoutPolicyId $activityBasedTimeoutPolicyId -BodyParameter $params +Get-MgBetaPolicyActivityBasedTimeoutPolicy -ActivityBasedTimeoutPolicyId $activityBasedTimeoutPolicyId ``` This example shows how to use the Remove-MgBetaBetaPolicyActivityBasedTimeoutPolicy Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyAuthenticationFlowPolicy.md b/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyAuthenticationFlowPolicy.md index bc092523d3c..5e6a127e92b 100644 --- a/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyAuthenticationFlowPolicy.md +++ b/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyAuthenticationFlowPolicy.md @@ -2,13 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns -$params = @{ - selfServiceSignUp = @{ - isEnabled = $true - } -} - -Update-MgBetaPolicyAuthenticationFlowPolicy -BodyParameter $params +Get-MgBetaPolicyAuthenticationFlowPolicy ``` This example shows how to use the Remove-MgBetaBetaPolicyAuthenticationFlowPolicy Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyAuthenticationMethodPolicy.md b/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyAuthenticationMethodPolicy.md index d7e5b532dff..873339eb54c 100644 --- a/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyAuthenticationMethodPolicy.md +++ b/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyAuthenticationMethodPolicy.md @@ -2,25 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns -$params = @{ - registrationEnforcement = @{ - authenticationMethodsRegistrationCampaign = @{ - snoozeDurationInDays = 1 - state = "enabled" - excludeTargets = @( - ) - includeTargets = @( - @{ - id = "3ee3a9de-0a86-4e12-a287-9769accf1ba2" - targetType = "group" - targetedAuthenticationMethod = "microsoftAuthenticator" - } - ) - } - } -} - -Update-MgBetaPolicyAuthenticationMethodPolicy -BodyParameter $params +Get-MgBetaPolicyAuthenticationMethodPolicy ``` This example shows how to use the Remove-MgBetaBetaPolicyAuthenticationMethodPolicy Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyClaimMappingPolicy.md b/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyClaimMappingPolicy.md index 8c87395b264..4721cbb6720 100644 --- a/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyClaimMappingPolicy.md +++ b/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyClaimMappingPolicy.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns -$params = @{ - displayName = "UpdateClaimsPolicy" -} - -Update-MgBetaPolicyClaimMappingPolicy -ClaimsMappingPolicyId $claimsMappingPolicyId -BodyParameter $params +Get-MgBetaPolicyClaimMappingPolicy -ClaimsMappingPolicyId $claimsMappingPolicyId ``` This example shows how to use the Remove-MgBetaBetaPolicyClaimMappingPolicy Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyCrossTenantAccessPolicy.md b/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyCrossTenantAccessPolicy.md index 6af892d650e..a0a6f2c5076 100644 --- a/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyCrossTenantAccessPolicy.md +++ b/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyCrossTenantAccessPolicy.md @@ -2,13 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns -$params = @{ - allowedCloudEndpoints = @( - "microsoftonline.us" - ) -} - -Update-MgBetaPolicyCrossTenantAccessPolicy -BodyParameter $params +Get-MgBetaPolicyCrossTenantAccessPolicy ``` This example shows how to use the Remove-MgBetaBetaPolicyCrossTenantAccessPolicy Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyCrossTenantAccessPolicyDefault.md b/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyCrossTenantAccessPolicyDefault.md index 350e2532d1e..637cf162cfd 100644 --- a/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyCrossTenantAccessPolicyDefault.md +++ b/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyCrossTenantAccessPolicyDefault.md @@ -2,30 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns -$params = @{ - b2bCollaborationOutbound = @{ - usersAndGroups = @{ - accessType = "blocked" - targets = @( - @{ - target = "0be493dc-cb56-4a53-936f-9cf64410b8b0" - targetType = "group" - } - ) - } - applications = @{ - accessType = "blocked" - targets = @( - @{ - target = "AllApplications" - targetType = "application" - } - ) - } - } -} - -Update-MgBetaPolicyCrossTenantAccessPolicyDefault -BodyParameter $params +Get-MgBetaPolicyCrossTenantAccessPolicyDefault ``` This example shows how to use the Remove-MgBetaBetaPolicyCrossTenantAccessPolicyDefault Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyCrossTenantAccessPolicyPartner.md b/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyCrossTenantAccessPolicyPartner.md index 894e59b44ca..e1140f4fca1 100644 --- a/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyCrossTenantAccessPolicyPartner.md +++ b/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyCrossTenantAccessPolicyPartner.md @@ -1,32 +1,8 @@ -### Example 1: Configure inbound trust settings +### Example 1: Code snippet ```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns -$params = @{ - inboundTrust = @{ - isMfaAccepted = $true - isCompliantDeviceAccepted = $true - isHybridAzureADJoinedDeviceAccepted = $true - } -} - -Update-MgBetaPolicyCrossTenantAccessPolicyPartner -CrossTenantAccessPolicyConfigurationPartnerTenantId $crossTenantAccessPolicyConfigurationPartnerTenantId -BodyParameter $params -``` -This example shows how to use the Remove-MgBetaBetaPolicyCrossTenantAccessPolicyPartner Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Configure automaticUserConsent settings - -```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns - -$params = @{ - automaticUserConsentSettings = @{ - inboundAllowed = $true - outboundAllowed = $true - } -} - -Update-MgBetaPolicyCrossTenantAccessPolicyPartner -CrossTenantAccessPolicyConfigurationPartnerTenantId $crossTenantAccessPolicyConfigurationPartnerTenantId -BodyParameter $params +Get-MgBetaPolicyCrossTenantAccessPolicyPartner -CrossTenantAccessPolicyConfigurationPartnerTenantId $crossTenantAccessPolicyConfigurationPartnerTenantId ``` This example shows how to use the Remove-MgBetaBetaPolicyCrossTenantAccessPolicyPartner Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyFeatureRolloutPolicy.md b/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyFeatureRolloutPolicy.md index e8b2b6da76a..7be789fc680 100644 --- a/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyFeatureRolloutPolicy.md +++ b/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyFeatureRolloutPolicy.md @@ -1,15 +1,17 @@ -### Example 1: Code snippet +### Example 1: Get a feature rollout policy ```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns -$params = @{ - displayName = "PasswordHashSync Rollout Policy" - description = "PasswordHashSync Rollout Policy" - isEnabled = $true - isAppliedToOrganization = $false -} +Get-MgBetaPolicyFeatureRolloutPolicy -FeatureRolloutPolicyId $featureRolloutPolicyId +``` +This example shows how to use the Remove-MgBetaBetaPolicyFeatureRolloutPolicy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Get a feature rollout policy and expand appliesTo + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns -Update-MgBetaPolicyFeatureRolloutPolicy -FeatureRolloutPolicyId $featureRolloutPolicyId -BodyParameter $params +Get-MgBetaPolicyFeatureRolloutPolicy -FeatureRolloutPolicyId $featureRolloutPolicyId -ExpandProperty "appliesTo" ``` This example shows how to use the Remove-MgBetaBetaPolicyFeatureRolloutPolicy Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyIdentitySecurityDefaultEnforcementPolicy.md b/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyIdentitySecurityDefaultEnforcementPolicy.md index ddb19410ea1..c25dc640f41 100644 --- a/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyIdentitySecurityDefaultEnforcementPolicy.md +++ b/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyIdentitySecurityDefaultEnforcementPolicy.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns -$params = @{ - isEnabled = $false -} - -Update-MgBetaPolicyIdentitySecurityDefaultEnforcementPolicy -BodyParameter $params +Get-MgBetaPolicyIdentitySecurityDefaultEnforcementPolicy ``` This example shows how to use the Remove-MgBetaBetaPolicyIdentitySecurityDefaultEnforcementPolicy Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyTokenIssuancePolicy.md b/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyTokenIssuancePolicy.md index af8e5598086..298cd80ed10 100644 --- a/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyTokenIssuancePolicy.md +++ b/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyTokenIssuancePolicy.md @@ -2,15 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns -$params = @{ - definition = @( - "definition-value" - ) - displayName = "displayName-value" - isOrganizationDefault = $true -} - -Update-MgBetaPolicyTokenIssuancePolicy -TokenIssuancePolicyId $tokenIssuancePolicyId -BodyParameter $params +Remove-MgBetaPolicyTokenIssuancePolicy -TokenIssuancePolicyId $tokenIssuancePolicyId ``` This example shows how to use the Remove-MgBetaBetaPolicyTokenIssuancePolicy Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyTokenLifetimePolicy.md b/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyTokenLifetimePolicy.md index f79b06dad82..6599758c0f3 100644 --- a/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyTokenLifetimePolicy.md +++ b/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyTokenLifetimePolicy.md @@ -2,15 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns -$params = @{ - definition = @( - "{"TokenLifetimePolicy":{"Version":1,"AccessTokenLifetime":"5:30:00"}}" - ) - displayName = "Contoso token lifetime policy" - isOrganizationDefault = $true -} - -Update-MgBetaPolicyTokenLifetimePolicy -TokenLifetimePolicyId $tokenLifetimePolicyId -BodyParameter $params +Get-MgBetaPolicyTokenLifetimePolicy -TokenLifetimePolicyId $tokenLifetimePolicyId ``` This example shows how to use the Remove-MgBetaBetaPolicyTokenLifetimePolicy Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/beta/examples/Remove-MgBetaUserAuthenticationEmailMethod.md b/src/Identity.SignIns/beta/examples/Remove-MgBetaUserAuthenticationEmailMethod.md index 1ded548d8a2..ad3805a8071 100644 --- a/src/Identity.SignIns/beta/examples/Remove-MgBetaUserAuthenticationEmailMethod.md +++ b/src/Identity.SignIns/beta/examples/Remove-MgBetaUserAuthenticationEmailMethod.md @@ -2,11 +2,8 @@ ```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns -$params = @{ - emailAddress = "kim@contoso.com" -} - -Update-MgBetaUserAuthenticationEmailMethod -UserId $userId -EmailAuthenticationMethodId $emailAuthenticationMethodId -BodyParameter $params +# A UPN can also be used as -UserId. +Get-MgBetaUserAuthenticationEmailMethod -UserId $userId -EmailAuthenticationMethodId $emailAuthenticationMethodId ``` This example shows how to use the Remove-MgBetaBetaUserAuthenticationEmailMethod Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/beta/examples/Remove-MgBetaUserAuthenticationPhoneMethod.md b/src/Identity.SignIns/beta/examples/Remove-MgBetaUserAuthenticationPhoneMethod.md index f589f3026c9..4db12d0f043 100644 --- a/src/Identity.SignIns/beta/examples/Remove-MgBetaUserAuthenticationPhoneMethod.md +++ b/src/Identity.SignIns/beta/examples/Remove-MgBetaUserAuthenticationPhoneMethod.md @@ -2,13 +2,8 @@ ```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns -$params = @{ - phoneNumber = "+1 2065555554" - phoneType = "mobile" -} - # A UPN can also be used as -UserId. -Update-MgBetaUserAuthenticationPhoneMethod -UserId $userId -PhoneAuthenticationMethodId $phoneAuthenticationMethodId -BodyParameter $params +Get-MgBetaUserAuthenticationPhoneMethod -UserId $userId -PhoneAuthenticationMethodId $phoneAuthenticationMethodId ``` This example shows how to use the Remove-MgBetaBetaUserAuthenticationPhoneMethod Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/beta/examples/Update-MgBetaIdentityApiConnector.md b/src/Identity.SignIns/beta/examples/Update-MgBetaIdentityApiConnector.md index 8d79830e0c0..0545beb9f68 100644 --- a/src/Identity.SignIns/beta/examples/Update-MgBetaIdentityApiConnector.md +++ b/src/Identity.SignIns/beta/examples/Update-MgBetaIdentityApiConnector.md @@ -1,35 +1,8 @@ -### Example 1: Changing display name, targetUrl, and username & password used for basic authentication +### Example 1: Code snippet ```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns -$params = @{ - displayName = "New Test API" - targetUrl = "https://otherapi.com/api/endpoint" - authenticationConfiguration = @{ - "@odata.type" = "microsoft.graph.basicAuthentication" - username = "<NEW_USERNAME>" - password = "<NEW_PASSWORD>" - } -} - -Update-MgBetaIdentityApiConnector -IdentityApiConnectorId $identityApiConnectorId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaBetaIdentityApiConnector Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Changing API connector to use client certificate authentication - -```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns - -$params = @{ - authenticationConfiguration = @{ - "@odata.type" = "#microsoft.graph.pkcs12Certificate" - pkcs12Value = "eyJhbGciOiJSU0EtT0FFUCIsImVuYyI6IkEyNTZHQ00ifQ...kDJ04sJShkkgjL9Bm49plA" - password = "secret" - } -} - -Update-MgBetaIdentityApiConnector -IdentityApiConnectorId $identityApiConnectorId -BodyParameter $params +Get-MgBetaIdentityApiConnector -IdentityApiConnectorId $identityApiConnectorId ``` This example shows how to use the Update-MgBetaBetaIdentityApiConnector Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/beta/examples/Update-MgBetaIdentityProvider.md b/src/Identity.SignIns/beta/examples/Update-MgBetaIdentityProvider.md index 19e4ebc7414..4f6af3381ca 100644 --- a/src/Identity.SignIns/beta/examples/Update-MgBetaIdentityProvider.md +++ b/src/Identity.SignIns/beta/examples/Update-MgBetaIdentityProvider.md @@ -1,27 +1,26 @@ -### Example 1: Update a specific social identity provider (Azure AD or Azure AD B2C) +### Example 1: Retrieve a specific social identity provider (Azure AD or Azure AD B2C) ```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns -$params = @{ - "@odata.type" = "#microsoft.graph.socialIdentityProvider" - clientSecret = "1111111111111" -} - -Update-MgBetaIdentityProvider -IdentityProviderBaseId $identityProviderBaseId -BodyParameter $params +Get-MgBetaIdentityProvider -IdentityProviderBaseId $identityProviderBaseId ``` This example shows how to use the Update-MgBetaBetaIdentityProvider Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Update a specific Apple identity provider (only for Azure AD B2C) +### Example 2: Retrieve a specific built-in identity provider (only for Azure AD) ```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns -$params = @{ - "@odata.type" = "#microsoft.graph.socialIdentityProvider" - displayName = "Apple" -} +Get-MgBetaIdentityProvider -IdentityProviderBaseId $identityProviderBaseId +``` +This example shows how to use the Update-MgBetaBetaIdentityProvider Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Retrieves Apple identity provider(only for Azure AD B2C) + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns -Update-MgBetaIdentityProvider -IdentityProviderBaseId $identityProviderBaseId -BodyParameter $params +Get-MgBetaIdentityProvider -IdentityProviderBaseId $identityProviderBaseId ``` This example shows how to use the Update-MgBetaBetaIdentityProvider Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/beta/examples/Update-MgBetaIdentityUserFlowAttribute.md b/src/Identity.SignIns/beta/examples/Update-MgBetaIdentityUserFlowAttribute.md index 1b422ceb8c1..d94639c20d0 100644 --- a/src/Identity.SignIns/beta/examples/Update-MgBetaIdentityUserFlowAttribute.md +++ b/src/Identity.SignIns/beta/examples/Update-MgBetaIdentityUserFlowAttribute.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns -$params = @{ - description = "Your new hobby" -} - -Update-MgBetaIdentityUserFlowAttribute -IdentityUserFlowAttributeId $identityUserFlowAttributeId -BodyParameter $params +Get-MgBetaIdentityUserFlowAttribute -IdentityUserFlowAttributeId $identityUserFlowAttributeId ``` This example shows how to use the Update-MgBetaBetaIdentityUserFlowAttribute Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/beta/examples/Update-MgBetaOauth2PermissionGrant.md b/src/Identity.SignIns/beta/examples/Update-MgBetaOauth2PermissionGrant.md index 3d9a6e65d27..c2de16efbe7 100644 --- a/src/Identity.SignIns/beta/examples/Update-MgBetaOauth2PermissionGrant.md +++ b/src/Identity.SignIns/beta/examples/Update-MgBetaOauth2PermissionGrant.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns -$params = @{ - scope = "User.ReadBasic.All Group.ReadWrite.All" -} - -Update-MgBetaOauth2PermissionGrant -OAuth2PermissionGrantId $oAuth2PermissionGrantId -BodyParameter $params +Get-MgBetaOauth2PermissionGrant -OAuth2PermissionGrantId $oAuth2PermissionGrantId ``` This example shows how to use the Update-MgBetaBetaOauth2PermissionGrant Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyActivityBasedTimeoutPolicy.md b/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyActivityBasedTimeoutPolicy.md index 2f9a9a3c54e..2c359e9a5a6 100644 --- a/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyActivityBasedTimeoutPolicy.md +++ b/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyActivityBasedTimeoutPolicy.md @@ -2,15 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns -$params = @{ - definition = @( - "definition-value" - ) - displayName = "displayName-value" - isOrganizationDefault = $true -} - -Update-MgBetaPolicyActivityBasedTimeoutPolicy -ActivityBasedTimeoutPolicyId $activityBasedTimeoutPolicyId -BodyParameter $params +Get-MgBetaPolicyActivityBasedTimeoutPolicy -ActivityBasedTimeoutPolicyId $activityBasedTimeoutPolicyId ``` This example shows how to use the Update-MgBetaBetaPolicyActivityBasedTimeoutPolicy Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyAppManagementPolicy.md b/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyAppManagementPolicy.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyAppManagementPolicy.md +++ b/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyAppManagementPolicy.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyAuthenticationFlowPolicy.md b/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyAuthenticationFlowPolicy.md index fee70b07f35..f5431d6e930 100644 --- a/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyAuthenticationFlowPolicy.md +++ b/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyAuthenticationFlowPolicy.md @@ -2,13 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns -$params = @{ - selfServiceSignUp = @{ - isEnabled = $true - } -} - -Update-MgBetaPolicyAuthenticationFlowPolicy -BodyParameter $params +Get-MgBetaPolicyAuthenticationFlowPolicy ``` This example shows how to use the Update-MgBetaBetaPolicyAuthenticationFlowPolicy Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyAuthenticationMethodPolicy.md b/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyAuthenticationMethodPolicy.md index fe232b5b162..078e26a1033 100644 --- a/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyAuthenticationMethodPolicy.md +++ b/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyAuthenticationMethodPolicy.md @@ -2,25 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns -$params = @{ - registrationEnforcement = @{ - authenticationMethodsRegistrationCampaign = @{ - snoozeDurationInDays = 1 - state = "enabled" - excludeTargets = @( - ) - includeTargets = @( - @{ - id = "3ee3a9de-0a86-4e12-a287-9769accf1ba2" - targetType = "group" - targetedAuthenticationMethod = "microsoftAuthenticator" - } - ) - } - } -} - -Update-MgBetaPolicyAuthenticationMethodPolicy -BodyParameter $params +Get-MgBetaPolicyAuthenticationMethodPolicy ``` This example shows how to use the Update-MgBetaBetaPolicyAuthenticationMethodPolicy Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyClaimMappingPolicy.md b/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyClaimMappingPolicy.md index 0839642f8d6..0fd114a1b08 100644 --- a/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyClaimMappingPolicy.md +++ b/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyClaimMappingPolicy.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns -$params = @{ - displayName = "UpdateClaimsPolicy" -} - -Update-MgBetaPolicyClaimMappingPolicy -ClaimsMappingPolicyId $claimsMappingPolicyId -BodyParameter $params +Get-MgBetaPolicyClaimMappingPolicy -ClaimsMappingPolicyId $claimsMappingPolicyId ``` This example shows how to use the Update-MgBetaBetaPolicyClaimMappingPolicy Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyCrossTenantAccessPolicy.md b/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyCrossTenantAccessPolicy.md index 78e65b6a342..4014f623af7 100644 --- a/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyCrossTenantAccessPolicy.md +++ b/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyCrossTenantAccessPolicy.md @@ -2,13 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns -$params = @{ - allowedCloudEndpoints = @( - "microsoftonline.us" - ) -} - -Update-MgBetaPolicyCrossTenantAccessPolicy -BodyParameter $params +Get-MgBetaPolicyCrossTenantAccessPolicy ``` This example shows how to use the Update-MgBetaBetaPolicyCrossTenantAccessPolicy Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyCrossTenantAccessPolicyDefault.md b/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyCrossTenantAccessPolicyDefault.md index d0f2fef9f62..65f143380df 100644 --- a/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyCrossTenantAccessPolicyDefault.md +++ b/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyCrossTenantAccessPolicyDefault.md @@ -2,30 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns -$params = @{ - b2bCollaborationOutbound = @{ - usersAndGroups = @{ - accessType = "blocked" - targets = @( - @{ - target = "0be493dc-cb56-4a53-936f-9cf64410b8b0" - targetType = "group" - } - ) - } - applications = @{ - accessType = "blocked" - targets = @( - @{ - target = "AllApplications" - targetType = "application" - } - ) - } - } -} - -Update-MgBetaPolicyCrossTenantAccessPolicyDefault -BodyParameter $params +Get-MgBetaPolicyCrossTenantAccessPolicyDefault ``` This example shows how to use the Update-MgBetaBetaPolicyCrossTenantAccessPolicyDefault Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyCrossTenantAccessPolicyPartner.md b/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyCrossTenantAccessPolicyPartner.md index 0747b075b56..d229b1fecdf 100644 --- a/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyCrossTenantAccessPolicyPartner.md +++ b/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyCrossTenantAccessPolicyPartner.md @@ -1,32 +1,8 @@ -### Example 1: Configure inbound trust settings +### Example 1: Code snippet ```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns -$params = @{ - inboundTrust = @{ - isMfaAccepted = $true - isCompliantDeviceAccepted = $true - isHybridAzureADJoinedDeviceAccepted = $true - } -} - -Update-MgBetaPolicyCrossTenantAccessPolicyPartner -CrossTenantAccessPolicyConfigurationPartnerTenantId $crossTenantAccessPolicyConfigurationPartnerTenantId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaBetaPolicyCrossTenantAccessPolicyPartner Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Configure automaticUserConsent settings - -```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns - -$params = @{ - automaticUserConsentSettings = @{ - inboundAllowed = $true - outboundAllowed = $true - } -} - -Update-MgBetaPolicyCrossTenantAccessPolicyPartner -CrossTenantAccessPolicyConfigurationPartnerTenantId $crossTenantAccessPolicyConfigurationPartnerTenantId -BodyParameter $params +Get-MgBetaPolicyCrossTenantAccessPolicyPartner -CrossTenantAccessPolicyConfigurationPartnerTenantId $crossTenantAccessPolicyConfigurationPartnerTenantId ``` This example shows how to use the Update-MgBetaBetaPolicyCrossTenantAccessPolicyPartner Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyDefaultAppManagementPolicy.md b/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyDefaultAppManagementPolicy.md index fa7dd914fa6..7dcdbdb535b 100644 --- a/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyDefaultAppManagementPolicy.md +++ b/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyDefaultAppManagementPolicy.md @@ -2,47 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.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-MgBetaPolicyDefaultAppManagementPolicy -BodyParameter $params +Get-MgBetaPolicyDefaultAppManagementPolicy ``` This example shows how to use the Update-MgBetaBetaPolicyDefaultAppManagementPolicy Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyFeatureRolloutPolicy.md b/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyFeatureRolloutPolicy.md index b7cf4afb8e0..914116a000b 100644 --- a/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyFeatureRolloutPolicy.md +++ b/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyFeatureRolloutPolicy.md @@ -1,15 +1,17 @@ -### Example 1: Code snippet +### Example 1: Get a feature rollout policy ```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns -$params = @{ - displayName = "PasswordHashSync Rollout Policy" - description = "PasswordHashSync Rollout Policy" - isEnabled = $true - isAppliedToOrganization = $false -} +Get-MgBetaPolicyFeatureRolloutPolicy -FeatureRolloutPolicyId $featureRolloutPolicyId +``` +This example shows how to use the Update-MgBetaBetaPolicyFeatureRolloutPolicy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Get a feature rollout policy and expand appliesTo + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns -Update-MgBetaPolicyFeatureRolloutPolicy -FeatureRolloutPolicyId $featureRolloutPolicyId -BodyParameter $params +Get-MgBetaPolicyFeatureRolloutPolicy -FeatureRolloutPolicyId $featureRolloutPolicyId -ExpandProperty "appliesTo" ``` This example shows how to use the Update-MgBetaBetaPolicyFeatureRolloutPolicy Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyIdentitySecurityDefaultEnforcementPolicy.md b/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyIdentitySecurityDefaultEnforcementPolicy.md index 8a262705fa0..0a1f89923ca 100644 --- a/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyIdentitySecurityDefaultEnforcementPolicy.md +++ b/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyIdentitySecurityDefaultEnforcementPolicy.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns -$params = @{ - isEnabled = $false -} - -Update-MgBetaPolicyIdentitySecurityDefaultEnforcementPolicy -BodyParameter $params +Get-MgBetaPolicyIdentitySecurityDefaultEnforcementPolicy ``` This example shows how to use the Update-MgBetaBetaPolicyIdentitySecurityDefaultEnforcementPolicy Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyRoleManagementPolicyRule.md b/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyRoleManagementPolicyRule.md index ab26aa07391..fb9ced73757 100644 --- a/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyRoleManagementPolicyRule.md +++ b/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyRoleManagementPolicyRule.md @@ -2,26 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns -$params = @{ - "@odata.type" = "#microsoft.graph.unifiedRoleManagementPolicyExpirationRule" - id = "Expiration_EndUser_Assignment" - isExpirationRequired = $true - maximumDuration = "PT1H45M" - target = @{ - "@odata.type" = "microsoft.graph.unifiedRoleManagementPolicyRuleTarget" - caller = "EndUser" - operations = @( - "All" - ) - level = "Assignment" - inheritableSettings = @( - ) - enforcedSettings = @( - ) - } -} - -Update-MgBetaPolicyRoleManagementPolicyRule -UnifiedRoleManagementPolicyId $unifiedRoleManagementPolicyId -UnifiedRoleManagementPolicyRuleId $unifiedRoleManagementPolicyRuleId -BodyParameter $params +Get-MgBetaPolicyRoleManagementPolicyRule -UnifiedRoleManagementPolicyId $unifiedRoleManagementPolicyId -UnifiedRoleManagementPolicyRuleId $unifiedRoleManagementPolicyRuleId ``` This example shows how to use the Update-MgBetaBetaPolicyRoleManagementPolicyRule Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyTokenIssuancePolicy.md b/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyTokenIssuancePolicy.md index f8e9c3bb436..b3f87061552 100644 --- a/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyTokenIssuancePolicy.md +++ b/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyTokenIssuancePolicy.md @@ -2,15 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns -$params = @{ - definition = @( - "definition-value" - ) - displayName = "displayName-value" - isOrganizationDefault = $true -} - -Update-MgBetaPolicyTokenIssuancePolicy -TokenIssuancePolicyId $tokenIssuancePolicyId -BodyParameter $params +Remove-MgBetaPolicyTokenIssuancePolicy -TokenIssuancePolicyId $tokenIssuancePolicyId ``` This example shows how to use the Update-MgBetaBetaPolicyTokenIssuancePolicy Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyTokenLifetimePolicy.md b/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyTokenLifetimePolicy.md index ab18fa30a00..e9263016095 100644 --- a/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyTokenLifetimePolicy.md +++ b/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyTokenLifetimePolicy.md @@ -2,15 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns -$params = @{ - definition = @( - "{"TokenLifetimePolicy":{"Version":1,"AccessTokenLifetime":"5:30:00"}}" - ) - displayName = "Contoso token lifetime policy" - isOrganizationDefault = $true -} - -Update-MgBetaPolicyTokenLifetimePolicy -TokenLifetimePolicyId $tokenLifetimePolicyId -BodyParameter $params +Get-MgBetaPolicyTokenLifetimePolicy -TokenLifetimePolicyId $tokenLifetimePolicyId ``` This example shows how to use the Update-MgBetaBetaPolicyTokenLifetimePolicy Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/beta/examples/Update-MgBetaUserAuthenticationEmailMethod.md b/src/Identity.SignIns/beta/examples/Update-MgBetaUserAuthenticationEmailMethod.md index 8e70190f2c3..b8f14de6178 100644 --- a/src/Identity.SignIns/beta/examples/Update-MgBetaUserAuthenticationEmailMethod.md +++ b/src/Identity.SignIns/beta/examples/Update-MgBetaUserAuthenticationEmailMethod.md @@ -2,11 +2,8 @@ ```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns -$params = @{ - emailAddress = "kim@contoso.com" -} - -Update-MgBetaUserAuthenticationEmailMethod -UserId $userId -EmailAuthenticationMethodId $emailAuthenticationMethodId -BodyParameter $params +# A UPN can also be used as -UserId. +Get-MgBetaUserAuthenticationEmailMethod -UserId $userId -EmailAuthenticationMethodId $emailAuthenticationMethodId ``` This example shows how to use the Update-MgBetaBetaUserAuthenticationEmailMethod Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/beta/examples/Update-MgBetaUserAuthenticationPhoneMethod.md b/src/Identity.SignIns/beta/examples/Update-MgBetaUserAuthenticationPhoneMethod.md index 679955afae5..0a44cce6495 100644 --- a/src/Identity.SignIns/beta/examples/Update-MgBetaUserAuthenticationPhoneMethod.md +++ b/src/Identity.SignIns/beta/examples/Update-MgBetaUserAuthenticationPhoneMethod.md @@ -2,13 +2,8 @@ ```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns -$params = @{ - phoneNumber = "+1 2065555554" - phoneType = "mobile" -} - # A UPN can also be used as -UserId. -Update-MgBetaUserAuthenticationPhoneMethod -UserId $userId -PhoneAuthenticationMethodId $phoneAuthenticationMethodId -BodyParameter $params +Get-MgBetaUserAuthenticationPhoneMethod -UserId $userId -PhoneAuthenticationMethodId $phoneAuthenticationMethodId ``` This example shows how to use the Update-MgBetaBetaUserAuthenticationPhoneMethod 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-MgIdentityApiConnector.md b/src/Identity.SignIns/v1.0/examples/Get-MgIdentityApiConnector.md index 29da738d8a0..5284a0ac7e4 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgIdentityApiConnector.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgIdentityApiConnector.md @@ -1,35 +1,8 @@ -### Example 1: Changing display name, targetUrl, and username & password used for basic authentication +### Example 1: Code snippet ```powershell Import-Module Microsoft.Graph.Identity.SignIns -$params = @{ - displayName = "New Test API" - targetUrl = "https://otherapi.com/api/endpoint" - authenticationConfiguration = @{ - "@odata.type" = "microsoft.graph.basicAuthentication" - username = "<NEW_USERNAME>" - password = "<NEW_PASSWORD>" - } -} - -Update-MgIdentityApiConnector -IdentityApiConnectorId $identityApiConnectorId -BodyParameter $params -``` -This example shows how to use the Get-MgIdentityApiConnector Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Changing API connector to use client certificate authentication - -```powershell Import-Module Microsoft.Graph.Identity.SignIns - -$params = @{ - authenticationConfiguration = @{ - "@odata.type" = "#microsoft.graph.pkcs12Certificate" - pkcs12Value = "eyJhbGciOiJSU0EtT0FFUCIsImVuYyI6IkEyNTZHQ00ifQ...kDJ04sJShkkgjL9Bm49plA" - password = "secret" - } -} - -Update-MgIdentityApiConnector -IdentityApiConnectorId $identityApiConnectorId -BodyParameter $params +Get-MgIdentityApiConnector -IdentityApiConnectorId $identityApiConnectorId ``` This example shows how to use the Get-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/Get-MgIdentityB2XUserFlowUserAttributeAssignment.md b/src/Identity.SignIns/v1.0/examples/Get-MgIdentityB2XUserFlowUserAttributeAssignment.md index 4d00e6254ed..db724ef192d 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgIdentityB2XUserFlowUserAttributeAssignment.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgIdentityB2XUserFlowUserAttributeAssignment.md @@ -1,12 +1,17 @@ -### Example 1: Code snippet +### Example 1: Get the details of an identityUserFlowAttributeAssignment ```powershell Import-Module Microsoft.Graph.Identity.SignIns -$params = @{ - userInputType = "textBox" -} +Get-MgIdentityB2XUserFlowUserAttributeAssignment -B2xIdentityUserFlowId $b2xIdentityUserFlowId -IdentityUserFlowAttributeAssignmentId $identityUserFlowAttributeAssignmentId +``` +This example shows how to use the Get-MgIdentityB2XUserFlowUserAttributeAssignment Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Get the details of an identityUserFlowAttributeAssignment and expand userAttribute + +```powershell Import-Module Microsoft.Graph.Identity.SignIns -Update-MgIdentityB2XUserFlowUserAttributeAssignment -B2xIdentityUserFlowId $b2xIdentityUserFlowId -IdentityUserFlowAttributeAssignmentId $identityUserFlowAttributeAssignmentId -BodyParameter $params +Get-MgIdentityB2XUserFlowUserAttributeAssignment -B2xIdentityUserFlowId $b2xIdentityUserFlowId -IdentityUserFlowAttributeAssignmentId $identityUserFlowAttributeAssignmentId -ExpandProperty "userAttribute" ``` This example shows how to use the Get-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/Get-MgIdentityProvider.md b/src/Identity.SignIns/v1.0/examples/Get-MgIdentityProvider.md index 184bbe47b1f..cee70f90610 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgIdentityProvider.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgIdentityProvider.md @@ -1,27 +1,26 @@ -### Example 1: Update a specific social identity provider (Azure AD or Azure AD B2C) +### Example 1: Retrieve a specific social identity provider (Azure AD or Azure AD B2C) ```powershell Import-Module Microsoft.Graph.Identity.SignIns -$params = @{ - "@odata.type" = "#microsoft.graph.socialIdentityProvider" - clientSecret = "1111111111111" -} - -Update-MgIdentityProvider -IdentityProviderBaseId $identityProviderBaseId -BodyParameter $params +Get-MgIdentityProvider -IdentityProviderBaseId $identityProviderBaseId ``` This example shows how to use the Get-MgIdentityProvider Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Update a specific Apple identity provider (only for Azure AD B2C) +### Example 2: Retrieve a specific built-in identity provider (only for Azure AD) ```powershell Import-Module Microsoft.Graph.Identity.SignIns -$params = @{ - "@odata.type" = "#microsoft.graph.socialIdentityProvider" - displayName = "Apple" -} +Get-MgIdentityProvider -IdentityProviderBaseId $identityProviderBaseId +``` +This example shows how to use the Get-MgIdentityProvider Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Retrieves Apple identity provider(only for Azure AD B2C) + +```powershell Import-Module Microsoft.Graph.Identity.SignIns -Update-MgIdentityProvider -IdentityProviderBaseId $identityProviderBaseId -BodyParameter $params +Get-MgIdentityProvider -IdentityProviderBaseId $identityProviderBaseId ``` This example shows how to use the Get-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/Get-MgIdentityUserFlowAttribute.md b/src/Identity.SignIns/v1.0/examples/Get-MgIdentityUserFlowAttribute.md index 95fdd392e50..4930ce2dd79 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgIdentityUserFlowAttribute.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgIdentityUserFlowAttribute.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Identity.SignIns -$params = @{ - description = "Your new hobby" -} - -Update-MgIdentityUserFlowAttribute -IdentityUserFlowAttributeId $identityUserFlowAttributeId -BodyParameter $params +Get-MgIdentityUserFlowAttribute -IdentityUserFlowAttributeId $identityUserFlowAttributeId ``` This example shows how to use the Get-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/Get-MgOauth2PermissionGrant.md b/src/Identity.SignIns/v1.0/examples/Get-MgOauth2PermissionGrant.md index d8d38983b01..0d8159bf907 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgOauth2PermissionGrant.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgOauth2PermissionGrant.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Identity.SignIns -$params = @{ - scope = "User.ReadBasic.All Group.ReadWrite.All" -} - -Update-MgOauth2PermissionGrant -OAuth2PermissionGrantId $oAuth2PermissionGrantId -BodyParameter $params +Get-MgOauth2PermissionGrant -OAuth2PermissionGrantId $oAuth2PermissionGrantId ``` This example shows how to use the Get-MgOauth2PermissionGrant 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-MgPolicyActivityBasedTimeoutPolicy.md b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyActivityBasedTimeoutPolicy.md index f3096c36b0b..57f7dde4730 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgPolicyActivityBasedTimeoutPolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyActivityBasedTimeoutPolicy.md @@ -2,15 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Identity.SignIns -$params = @{ - definition = @( - "definition-value" - ) - displayName = "displayName-value" - isOrganizationDefault = $true -} - -Update-MgPolicyActivityBasedTimeoutPolicy -ActivityBasedTimeoutPolicyId $activityBasedTimeoutPolicyId -BodyParameter $params +Get-MgPolicyActivityBasedTimeoutPolicy -ActivityBasedTimeoutPolicyId $activityBasedTimeoutPolicyId ``` This example shows how to use the Get-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/Get-MgPolicyAdminConsentRequestPolicy.md b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyAdminConsentRequestPolicy.md index f6c6949389e..9e29354eab0 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgPolicyAdminConsentRequestPolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyAdminConsentRequestPolicy.md @@ -1,17 +1,9 @@ -### Example 1: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Identity.SignIns -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +Get-MgPolicyAdminConsentRequestPolicy +``` +This example shows how to use the Get-MgPolicyAdminConsentRequestPolicy 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-MgPolicyAuthenticationFlowPolicy.md b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyAuthenticationFlowPolicy.md index f02a43e9017..ef50d971df8 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgPolicyAuthenticationFlowPolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyAuthenticationFlowPolicy.md @@ -2,13 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Identity.SignIns -$params = @{ - selfServiceSignUp = @{ - isEnabled = $true - } -} - -Update-MgPolicyAuthenticationFlowPolicy -BodyParameter $params +Get-MgPolicyAuthenticationFlowPolicy ``` This example shows how to use the Get-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/Get-MgPolicyAuthenticationMethodPolicy.md b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyAuthenticationMethodPolicy.md index 573a0047d09..3304ff35f08 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgPolicyAuthenticationMethodPolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyAuthenticationMethodPolicy.md @@ -2,25 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Identity.SignIns -$params = @{ - registrationEnforcement = @{ - authenticationMethodsRegistrationCampaign = @{ - snoozeDurationInDays = 1 - state = "enabled" - excludeTargets = @( - ) - includeTargets = @( - @{ - id = "3ee3a9de-0a86-4e12-a287-9769accf1ba2" - targetType = "group" - targetedAuthenticationMethod = "microsoftAuthenticator" - } - ) - } - } -} - -Update-MgPolicyAuthenticationMethodPolicy -BodyParameter $params +Get-MgPolicyAuthenticationMethodPolicy ``` This example shows how to use the Get-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/Get-MgPolicyClaimMappingPolicy.md b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyClaimMappingPolicy.md index 43f80fd0c5e..37a46eeade3 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgPolicyClaimMappingPolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyClaimMappingPolicy.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Identity.SignIns -$params = @{ - displayName = "UpdateClaimsPolicy" -} - -Update-MgPolicyClaimMappingPolicy -ClaimsMappingPolicyId $claimsMappingPolicyId -BodyParameter $params +Get-MgPolicyClaimMappingPolicy -ClaimsMappingPolicyId $claimsMappingPolicyId ``` This example shows how to use the Get-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/Get-MgPolicyCrossTenantAccessPolicy.md b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyCrossTenantAccessPolicy.md index 82600429314..cd735ac5270 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgPolicyCrossTenantAccessPolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyCrossTenantAccessPolicy.md @@ -2,13 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Identity.SignIns -$params = @{ - allowedCloudEndpoints = @( - "microsoftonline.us" - ) -} - -Update-MgPolicyCrossTenantAccessPolicy -BodyParameter $params +Get-MgPolicyCrossTenantAccessPolicy ``` This example shows how to use the Get-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/Get-MgPolicyCrossTenantAccessPolicyDefault.md b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyCrossTenantAccessPolicyDefault.md index 23d8329e0d0..1de5103fce0 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgPolicyCrossTenantAccessPolicyDefault.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyCrossTenantAccessPolicyDefault.md @@ -2,30 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Identity.SignIns -$params = @{ - b2bCollaborationOutbound = @{ - usersAndGroups = @{ - accessType = "blocked" - targets = @( - @{ - target = "0be493dc-cb56-4a53-936f-9cf64410b8b0" - targetType = "group" - } - ) - } - applications = @{ - accessType = "blocked" - targets = @( - @{ - target = "AllApplications" - targetType = "application" - } - ) - } - } -} - -Update-MgPolicyCrossTenantAccessPolicyDefault -BodyParameter $params +Get-MgPolicyCrossTenantAccessPolicyDefault ``` This example shows how to use the Get-MgPolicyCrossTenantAccessPolicyDefault 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-MgPolicyCrossTenantAccessPolicyPartner.md b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyCrossTenantAccessPolicyPartner.md index 661fe04c0f2..70bafaf2346 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgPolicyCrossTenantAccessPolicyPartner.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyCrossTenantAccessPolicyPartner.md @@ -1,32 +1,8 @@ -### Example 1: Configure inbound trust settings +### Example 1: Code snippet ```powershell Import-Module Microsoft.Graph.Identity.SignIns -$params = @{ - inboundTrust = @{ - isMfaAccepted = $true - isCompliantDeviceAccepted = $true - isHybridAzureADJoinedDeviceAccepted = $true - } -} - -Update-MgPolicyCrossTenantAccessPolicyPartner -CrossTenantAccessPolicyConfigurationPartnerTenantId $crossTenantAccessPolicyConfigurationPartnerTenantId -BodyParameter $params -``` -This example shows how to use the Get-MgPolicyCrossTenantAccessPolicyPartner Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Configure automaticUserConsent settings - -```powershell Import-Module Microsoft.Graph.Identity.SignIns - -$params = @{ - automaticUserConsentSettings = @{ - inboundAllowed = $true - outboundAllowed = $true - } -} - -Update-MgPolicyCrossTenantAccessPolicyPartner -CrossTenantAccessPolicyConfigurationPartnerTenantId $crossTenantAccessPolicyConfigurationPartnerTenantId -BodyParameter $params +Get-MgPolicyCrossTenantAccessPolicyPartner -CrossTenantAccessPolicyConfigurationPartnerTenantId $crossTenantAccessPolicyConfigurationPartnerTenantId ``` This example shows how to use the Get-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/Get-MgPolicyFeatureRolloutPolicy.md b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyFeatureRolloutPolicy.md index a4198b7a32b..52491dfd8d7 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgPolicyFeatureRolloutPolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyFeatureRolloutPolicy.md @@ -1,15 +1,17 @@ -### Example 1: Code snippet +### Example 1: Get a feature rollout policy ```powershell Import-Module Microsoft.Graph.Identity.SignIns -$params = @{ - displayName = "PasswordHashSync Rollout Policy" - description = "PasswordHashSync Rollout Policy" - isEnabled = $true - isAppliedToOrganization = $false -} +Get-MgPolicyFeatureRolloutPolicy -FeatureRolloutPolicyId $featureRolloutPolicyId +``` +This example shows how to use the Get-MgPolicyFeatureRolloutPolicy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Get a feature rollout policy and expand appliesTo + +```powershell Import-Module Microsoft.Graph.Identity.SignIns -Update-MgPolicyFeatureRolloutPolicy -FeatureRolloutPolicyId $featureRolloutPolicyId -BodyParameter $params +Get-MgPolicyFeatureRolloutPolicy -FeatureRolloutPolicyId $featureRolloutPolicyId -ExpandProperty "appliesTo" ``` This example shows how to use the Get-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/Get-MgPolicyHomeRealmDiscoveryPolicy.md b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyHomeRealmDiscoveryPolicy.md index f6c6949389e..edea9f8e5c8 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgPolicyHomeRealmDiscoveryPolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyHomeRealmDiscoveryPolicy.md @@ -1,17 +1,9 @@ -### Example 1: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Identity.SignIns -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +Get-MgPolicyHomeRealmDiscoveryPolicy -HomeRealmDiscoveryPolicyId $homeRealmDiscoveryPolicyId +``` +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-MgPolicyIdentitySecurityDefaultEnforcementPolicy.md b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyIdentitySecurityDefaultEnforcementPolicy.md index 4d27d5a3898..47fab673acb 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgPolicyIdentitySecurityDefaultEnforcementPolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyIdentitySecurityDefaultEnforcementPolicy.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Identity.SignIns -$params = @{ - isEnabled = $false -} - -Update-MgPolicyIdentitySecurityDefaultEnforcementPolicy -BodyParameter $params +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-MgPolicyRoleManagementPolicyRule.md b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyRoleManagementPolicyRule.md index 83e0a1a12f7..d776df14067 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgPolicyRoleManagementPolicyRule.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyRoleManagementPolicyRule.md @@ -2,26 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Identity.SignIns -$params = @{ - "@odata.type" = "#microsoft.graph.unifiedRoleManagementPolicyExpirationRule" - id = "Expiration_EndUser_Assignment" - isExpirationRequired = $true - maximumDuration = "PT1H45M" - target = @{ - "@odata.type" = "microsoft.graph.unifiedRoleManagementPolicyRuleTarget" - caller = "EndUser" - operations = @( - "All" - ) - level = "Assignment" - inheritableSettings = @( - ) - enforcedSettings = @( - ) - } -} - -Update-MgPolicyRoleManagementPolicyRule -UnifiedRoleManagementPolicyId $unifiedRoleManagementPolicyId -UnifiedRoleManagementPolicyRuleId $unifiedRoleManagementPolicyRuleId -BodyParameter $params +Get-MgPolicyRoleManagementPolicyRule -UnifiedRoleManagementPolicyId $unifiedRoleManagementPolicyId -UnifiedRoleManagementPolicyRuleId $unifiedRoleManagementPolicyRuleId ``` This example shows how to use the Get-MgPolicyRoleManagementPolicyRule 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-MgPolicyTokenIssuancePolicy.md b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyTokenIssuancePolicy.md index 4c9547b61e0..2ae8537abb5 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgPolicyTokenIssuancePolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyTokenIssuancePolicy.md @@ -2,15 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Identity.SignIns -$params = @{ - definition = @( - "definition-value" - ) - displayName = "displayName-value" - isOrganizationDefault = $true -} - -Update-MgPolicyTokenIssuancePolicy -TokenIssuancePolicyId $tokenIssuancePolicyId -BodyParameter $params +Remove-MgPolicyTokenIssuancePolicy -TokenIssuancePolicyId $tokenIssuancePolicyId ``` 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-MgPolicyTokenLifetimePolicy.md b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyTokenLifetimePolicy.md index e7d673d5c0a..a6d99dee5f0 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgPolicyTokenLifetimePolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyTokenLifetimePolicy.md @@ -2,15 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Identity.SignIns -$params = @{ - definition = @( - "{"TokenLifetimePolicy":{"Version":1,"AccessTokenLifetime":"5:30:00"}}" - ) - displayName = "Contoso token lifetime policy" - isOrganizationDefault = $true -} - -Update-MgPolicyTokenLifetimePolicy -TokenLifetimePolicyId $tokenLifetimePolicyId -BodyParameter $params +Get-MgPolicyTokenLifetimePolicy -TokenLifetimePolicyId $tokenLifetimePolicyId ``` 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-MgUserAuthenticationEmailMethod.md b/src/Identity.SignIns/v1.0/examples/Get-MgUserAuthenticationEmailMethod.md index 87696743c08..f5b4ebbb488 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgUserAuthenticationEmailMethod.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgUserAuthenticationEmailMethod.md @@ -2,11 +2,8 @@ ```powershell Import-Module Microsoft.Graph.Identity.SignIns -$params = @{ - emailAddress = "kim@contoso.com" -} - -Update-MgUserAuthenticationEmailMethod -UserId $userId -EmailAuthenticationMethodId $emailAuthenticationMethodId -BodyParameter $params +# A UPN can also be used as -UserId. +Get-MgUserAuthenticationEmailMethod -UserId $userId -EmailAuthenticationMethodId $emailAuthenticationMethodId ``` This example shows how to use the Get-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/Get-MgUserAuthenticationPhoneMethod.md b/src/Identity.SignIns/v1.0/examples/Get-MgUserAuthenticationPhoneMethod.md index 5cbc745cb3a..7761f13844a 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgUserAuthenticationPhoneMethod.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgUserAuthenticationPhoneMethod.md @@ -2,13 +2,8 @@ ```powershell Import-Module Microsoft.Graph.Identity.SignIns -$params = @{ - phoneNumber = "+1 2065555554" - phoneType = "mobile" -} - # A UPN can also be used as -UserId. -Update-MgUserAuthenticationPhoneMethod -UserId $userId -PhoneAuthenticationMethodId $phoneAuthenticationMethodId -BodyParameter $params +Get-MgUserAuthenticationPhoneMethod -UserId $userId -PhoneAuthenticationMethodId $phoneAuthenticationMethodId ``` This example shows how to use the Get-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/Remove-MgIdentityApiConnector.md b/src/Identity.SignIns/v1.0/examples/Remove-MgIdentityApiConnector.md index 9286fb4bd8b..dffaba5be8f 100644 --- a/src/Identity.SignIns/v1.0/examples/Remove-MgIdentityApiConnector.md +++ b/src/Identity.SignIns/v1.0/examples/Remove-MgIdentityApiConnector.md @@ -1,35 +1,8 @@ -### Example 1: Changing display name, targetUrl, and username & password used for basic authentication +### Example 1: Code snippet ```powershell Import-Module Microsoft.Graph.Identity.SignIns -$params = @{ - displayName = "New Test API" - targetUrl = "https://otherapi.com/api/endpoint" - authenticationConfiguration = @{ - "@odata.type" = "microsoft.graph.basicAuthentication" - username = "<NEW_USERNAME>" - password = "<NEW_PASSWORD>" - } -} - -Update-MgIdentityApiConnector -IdentityApiConnectorId $identityApiConnectorId -BodyParameter $params -``` -This example shows how to use the Remove-MgIdentityApiConnector Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Changing API connector to use client certificate authentication - -```powershell Import-Module Microsoft.Graph.Identity.SignIns - -$params = @{ - authenticationConfiguration = @{ - "@odata.type" = "#microsoft.graph.pkcs12Certificate" - pkcs12Value = "eyJhbGciOiJSU0EtT0FFUCIsImVuYyI6IkEyNTZHQ00ifQ...kDJ04sJShkkgjL9Bm49plA" - password = "secret" - } -} - -Update-MgIdentityApiConnector -IdentityApiConnectorId $identityApiConnectorId -BodyParameter $params +Get-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-MgIdentityB2XUserFlowUserAttributeAssignment.md b/src/Identity.SignIns/v1.0/examples/Remove-MgIdentityB2XUserFlowUserAttributeAssignment.md index 79c7d69a446..9470c44e9e4 100644 --- a/src/Identity.SignIns/v1.0/examples/Remove-MgIdentityB2XUserFlowUserAttributeAssignment.md +++ b/src/Identity.SignIns/v1.0/examples/Remove-MgIdentityB2XUserFlowUserAttributeAssignment.md @@ -1,12 +1,17 @@ -### Example 1: Code snippet +### Example 1: Get the details of an identityUserFlowAttributeAssignment ```powershell Import-Module Microsoft.Graph.Identity.SignIns -$params = @{ - userInputType = "textBox" -} +Get-MgIdentityB2XUserFlowUserAttributeAssignment -B2xIdentityUserFlowId $b2xIdentityUserFlowId -IdentityUserFlowAttributeAssignmentId $identityUserFlowAttributeAssignmentId +``` +This example shows how to use the Remove-MgIdentityB2XUserFlowUserAttributeAssignment Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Get the details of an identityUserFlowAttributeAssignment and expand userAttribute + +```powershell Import-Module Microsoft.Graph.Identity.SignIns -Update-MgIdentityB2XUserFlowUserAttributeAssignment -B2xIdentityUserFlowId $b2xIdentityUserFlowId -IdentityUserFlowAttributeAssignmentId $identityUserFlowAttributeAssignmentId -BodyParameter $params +Get-MgIdentityB2XUserFlowUserAttributeAssignment -B2xIdentityUserFlowId $b2xIdentityUserFlowId -IdentityUserFlowAttributeAssignmentId $identityUserFlowAttributeAssignmentId -ExpandProperty "userAttribute" ``` This example shows how to use the Remove-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/Remove-MgIdentityProvider.md b/src/Identity.SignIns/v1.0/examples/Remove-MgIdentityProvider.md index 4ca60125311..92f80475363 100644 --- a/src/Identity.SignIns/v1.0/examples/Remove-MgIdentityProvider.md +++ b/src/Identity.SignIns/v1.0/examples/Remove-MgIdentityProvider.md @@ -1,27 +1,26 @@ -### Example 1: Update a specific social identity provider (Azure AD or Azure AD B2C) +### Example 1: Retrieve a specific social identity provider (Azure AD or Azure AD B2C) ```powershell Import-Module Microsoft.Graph.Identity.SignIns -$params = @{ - "@odata.type" = "#microsoft.graph.socialIdentityProvider" - clientSecret = "1111111111111" -} - -Update-MgIdentityProvider -IdentityProviderBaseId $identityProviderBaseId -BodyParameter $params +Get-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). -### Example 2: Update a specific Apple identity provider (only for Azure AD B2C) +### Example 2: Retrieve a specific built-in identity provider (only for Azure AD) ```powershell Import-Module Microsoft.Graph.Identity.SignIns -$params = @{ - "@odata.type" = "#microsoft.graph.socialIdentityProvider" - displayName = "Apple" -} +Get-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). + +### Example 3: Retrieves Apple identity provider(only for Azure AD B2C) + +```powershell Import-Module Microsoft.Graph.Identity.SignIns -Update-MgIdentityProvider -IdentityProviderBaseId $identityProviderBaseId -BodyParameter $params +Get-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 2865dc730e0..16b4cef6a73 100644 --- a/src/Identity.SignIns/v1.0/examples/Remove-MgIdentityUserFlowAttribute.md +++ b/src/Identity.SignIns/v1.0/examples/Remove-MgIdentityUserFlowAttribute.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Identity.SignIns -$params = @{ - description = "Your new hobby" -} - -Update-MgIdentityUserFlowAttribute -IdentityUserFlowAttributeId $identityUserFlowAttributeId -BodyParameter $params +Get-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-MgOauth2PermissionGrant.md b/src/Identity.SignIns/v1.0/examples/Remove-MgOauth2PermissionGrant.md index 24b5d9b3c52..f194bdc5503 100644 --- a/src/Identity.SignIns/v1.0/examples/Remove-MgOauth2PermissionGrant.md +++ b/src/Identity.SignIns/v1.0/examples/Remove-MgOauth2PermissionGrant.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Identity.SignIns -$params = @{ - scope = "User.ReadBasic.All Group.ReadWrite.All" -} - -Update-MgOauth2PermissionGrant -OAuth2PermissionGrantId $oAuth2PermissionGrantId -BodyParameter $params +Get-MgOauth2PermissionGrant -OAuth2PermissionGrantId $oAuth2PermissionGrantId ``` This example shows how to use the Remove-MgOauth2PermissionGrant 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-MgPolicyActivityBasedTimeoutPolicy.md b/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyActivityBasedTimeoutPolicy.md index 33177deed9b..7c1786afbea 100644 --- a/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyActivityBasedTimeoutPolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyActivityBasedTimeoutPolicy.md @@ -2,15 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Identity.SignIns -$params = @{ - definition = @( - "definition-value" - ) - displayName = "displayName-value" - isOrganizationDefault = $true -} - -Update-MgPolicyActivityBasedTimeoutPolicy -ActivityBasedTimeoutPolicyId $activityBasedTimeoutPolicyId -BodyParameter $params +Get-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-MgPolicyAuthenticationFlowPolicy.md b/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyAuthenticationFlowPolicy.md index 2eb9078b613..53fad2893b4 100644 --- a/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyAuthenticationFlowPolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyAuthenticationFlowPolicy.md @@ -2,13 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Identity.SignIns -$params = @{ - selfServiceSignUp = @{ - isEnabled = $true - } -} - -Update-MgPolicyAuthenticationFlowPolicy -BodyParameter $params +Get-MgPolicyAuthenticationFlowPolicy ``` This example shows how to use the Remove-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/Remove-MgPolicyAuthenticationMethodPolicy.md b/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyAuthenticationMethodPolicy.md index 7038777baa6..843a8ab59f6 100644 --- a/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyAuthenticationMethodPolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyAuthenticationMethodPolicy.md @@ -2,25 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Identity.SignIns -$params = @{ - registrationEnforcement = @{ - authenticationMethodsRegistrationCampaign = @{ - snoozeDurationInDays = 1 - state = "enabled" - excludeTargets = @( - ) - includeTargets = @( - @{ - id = "3ee3a9de-0a86-4e12-a287-9769accf1ba2" - targetType = "group" - targetedAuthenticationMethod = "microsoftAuthenticator" - } - ) - } - } -} - -Update-MgPolicyAuthenticationMethodPolicy -BodyParameter $params +Get-MgPolicyAuthenticationMethodPolicy ``` This example shows how to use the Remove-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/Remove-MgPolicyClaimMappingPolicy.md b/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyClaimMappingPolicy.md index 1995dddd431..f0758dc6c96 100644 --- a/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyClaimMappingPolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyClaimMappingPolicy.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Identity.SignIns -$params = @{ - displayName = "UpdateClaimsPolicy" -} - -Update-MgPolicyClaimMappingPolicy -ClaimsMappingPolicyId $claimsMappingPolicyId -BodyParameter $params +Get-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-MgPolicyCrossTenantAccessPolicy.md b/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyCrossTenantAccessPolicy.md index d90acd66882..40eed1423d0 100644 --- a/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyCrossTenantAccessPolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyCrossTenantAccessPolicy.md @@ -2,13 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Identity.SignIns -$params = @{ - allowedCloudEndpoints = @( - "microsoftonline.us" - ) -} - -Update-MgPolicyCrossTenantAccessPolicy -BodyParameter $params +Get-MgPolicyCrossTenantAccessPolicy ``` This example shows how to use the Remove-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/Remove-MgPolicyCrossTenantAccessPolicyDefault.md b/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyCrossTenantAccessPolicyDefault.md index bdf0f665d2b..5de0fce8a3c 100644 --- a/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyCrossTenantAccessPolicyDefault.md +++ b/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyCrossTenantAccessPolicyDefault.md @@ -2,30 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Identity.SignIns -$params = @{ - b2bCollaborationOutbound = @{ - usersAndGroups = @{ - accessType = "blocked" - targets = @( - @{ - target = "0be493dc-cb56-4a53-936f-9cf64410b8b0" - targetType = "group" - } - ) - } - applications = @{ - accessType = "blocked" - targets = @( - @{ - target = "AllApplications" - targetType = "application" - } - ) - } - } -} - -Update-MgPolicyCrossTenantAccessPolicyDefault -BodyParameter $params +Get-MgPolicyCrossTenantAccessPolicyDefault ``` This example shows how to use the Remove-MgPolicyCrossTenantAccessPolicyDefault 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 9f5f241d01c..b2089605714 100644 --- a/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyCrossTenantAccessPolicyPartner.md +++ b/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyCrossTenantAccessPolicyPartner.md @@ -1,32 +1,8 @@ -### Example 1: Configure inbound trust settings +### Example 1: Code snippet ```powershell Import-Module Microsoft.Graph.Identity.SignIns -$params = @{ - inboundTrust = @{ - isMfaAccepted = $true - isCompliantDeviceAccepted = $true - isHybridAzureADJoinedDeviceAccepted = $true - } -} - -Update-MgPolicyCrossTenantAccessPolicyPartner -CrossTenantAccessPolicyConfigurationPartnerTenantId $crossTenantAccessPolicyConfigurationPartnerTenantId -BodyParameter $params -``` -This example shows how to use the Remove-MgPolicyCrossTenantAccessPolicyPartner Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Configure automaticUserConsent settings - -```powershell Import-Module Microsoft.Graph.Identity.SignIns - -$params = @{ - automaticUserConsentSettings = @{ - inboundAllowed = $true - outboundAllowed = $true - } -} - -Update-MgPolicyCrossTenantAccessPolicyPartner -CrossTenantAccessPolicyConfigurationPartnerTenantId $crossTenantAccessPolicyConfigurationPartnerTenantId -BodyParameter $params +Get-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-MgPolicyFeatureRolloutPolicy.md b/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyFeatureRolloutPolicy.md index d911027f2af..c90cd8acc8e 100644 --- a/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyFeatureRolloutPolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyFeatureRolloutPolicy.md @@ -1,15 +1,17 @@ -### Example 1: Code snippet +### Example 1: Get a feature rollout policy ```powershell Import-Module Microsoft.Graph.Identity.SignIns -$params = @{ - displayName = "PasswordHashSync Rollout Policy" - description = "PasswordHashSync Rollout Policy" - isEnabled = $true - isAppliedToOrganization = $false -} +Get-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). + +### Example 2: Get a feature rollout policy and expand appliesTo + +```powershell Import-Module Microsoft.Graph.Identity.SignIns -Update-MgPolicyFeatureRolloutPolicy -FeatureRolloutPolicyId $featureRolloutPolicyId -BodyParameter $params +Get-MgPolicyFeatureRolloutPolicy -FeatureRolloutPolicyId $featureRolloutPolicyId -ExpandProperty "appliesTo" ``` 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-MgPolicyIdentitySecurityDefaultEnforcementPolicy.md b/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyIdentitySecurityDefaultEnforcementPolicy.md index 8fd4d77dd15..b49500e8ca1 100644 --- a/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyIdentitySecurityDefaultEnforcementPolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyIdentitySecurityDefaultEnforcementPolicy.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Identity.SignIns -$params = @{ - isEnabled = $false -} - -Update-MgPolicyIdentitySecurityDefaultEnforcementPolicy -BodyParameter $params +Get-MgPolicyIdentitySecurityDefaultEnforcementPolicy ``` This example shows how to use the Remove-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/Remove-MgPolicyTokenIssuancePolicy.md b/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyTokenIssuancePolicy.md index f3aafbf14e2..405a9cf5657 100644 --- a/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyTokenIssuancePolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyTokenIssuancePolicy.md @@ -2,15 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Identity.SignIns -$params = @{ - definition = @( - "definition-value" - ) - displayName = "displayName-value" - isOrganizationDefault = $true -} - -Update-MgPolicyTokenIssuancePolicy -TokenIssuancePolicyId $tokenIssuancePolicyId -BodyParameter $params +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 8ffc368d11f..c6978fc1eb1 100644 --- a/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyTokenLifetimePolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyTokenLifetimePolicy.md @@ -2,15 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Identity.SignIns -$params = @{ - definition = @( - "{"TokenLifetimePolicy":{"Version":1,"AccessTokenLifetime":"5:30:00"}}" - ) - displayName = "Contoso token lifetime policy" - isOrganizationDefault = $true -} - -Update-MgPolicyTokenLifetimePolicy -TokenLifetimePolicyId $tokenLifetimePolicyId -BodyParameter $params +Get-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-MgUserAuthenticationEmailMethod.md b/src/Identity.SignIns/v1.0/examples/Remove-MgUserAuthenticationEmailMethod.md index 3f10e0f0d73..f662380172e 100644 --- a/src/Identity.SignIns/v1.0/examples/Remove-MgUserAuthenticationEmailMethod.md +++ b/src/Identity.SignIns/v1.0/examples/Remove-MgUserAuthenticationEmailMethod.md @@ -2,11 +2,8 @@ ```powershell Import-Module Microsoft.Graph.Identity.SignIns -$params = @{ - emailAddress = "kim@contoso.com" -} - -Update-MgUserAuthenticationEmailMethod -UserId $userId -EmailAuthenticationMethodId $emailAuthenticationMethodId -BodyParameter $params +# A UPN can also be used as -UserId. +Get-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-MgUserAuthenticationPhoneMethod.md b/src/Identity.SignIns/v1.0/examples/Remove-MgUserAuthenticationPhoneMethod.md index e7019a3100f..aa3ecf47666 100644 --- a/src/Identity.SignIns/v1.0/examples/Remove-MgUserAuthenticationPhoneMethod.md +++ b/src/Identity.SignIns/v1.0/examples/Remove-MgUserAuthenticationPhoneMethod.md @@ -2,13 +2,8 @@ ```powershell Import-Module Microsoft.Graph.Identity.SignIns -$params = @{ - phoneNumber = "+1 2065555554" - phoneType = "mobile" -} - # A UPN can also be used as -UserId. -Update-MgUserAuthenticationPhoneMethod -UserId $userId -PhoneAuthenticationMethodId $phoneAuthenticationMethodId -BodyParameter $params +Get-MgUserAuthenticationPhoneMethod -UserId $userId -PhoneAuthenticationMethodId $phoneAuthenticationMethodId ``` This example shows how to use the Remove-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/Update-MgIdentityApiConnector.md b/src/Identity.SignIns/v1.0/examples/Update-MgIdentityApiConnector.md index 4979756dae1..60e78f6ff46 100644 --- a/src/Identity.SignIns/v1.0/examples/Update-MgIdentityApiConnector.md +++ b/src/Identity.SignIns/v1.0/examples/Update-MgIdentityApiConnector.md @@ -1,35 +1,8 @@ -### Example 1: Changing display name, targetUrl, and username & password used for basic authentication +### Example 1: Code snippet ```powershell Import-Module Microsoft.Graph.Identity.SignIns -$params = @{ - displayName = "New Test API" - targetUrl = "https://otherapi.com/api/endpoint" - authenticationConfiguration = @{ - "@odata.type" = "microsoft.graph.basicAuthentication" - username = "<NEW_USERNAME>" - password = "<NEW_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). - -### Example 2: Changing API connector to use client certificate authentication - -```powershell Import-Module Microsoft.Graph.Identity.SignIns - -$params = @{ - authenticationConfiguration = @{ - "@odata.type" = "#microsoft.graph.pkcs12Certificate" - pkcs12Value = "eyJhbGciOiJSU0EtT0FFUCIsImVuYyI6IkEyNTZHQ00ifQ...kDJ04sJShkkgjL9Bm49plA" - password = "secret" - } -} - -Update-MgIdentityApiConnector -IdentityApiConnectorId $identityApiConnectorId -BodyParameter $params +Get-MgIdentityApiConnector -IdentityApiConnectorId $identityApiConnectorId ``` This example shows how to use the Update-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/Update-MgIdentityB2XUserFlowUserAttributeAssignment.md b/src/Identity.SignIns/v1.0/examples/Update-MgIdentityB2XUserFlowUserAttributeAssignment.md index 053ec88cc05..3345a8cc0db 100644 --- a/src/Identity.SignIns/v1.0/examples/Update-MgIdentityB2XUserFlowUserAttributeAssignment.md +++ b/src/Identity.SignIns/v1.0/examples/Update-MgIdentityB2XUserFlowUserAttributeAssignment.md @@ -1,12 +1,17 @@ -### Example 1: Code snippet +### Example 1: Get the details of an identityUserFlowAttributeAssignment ```powershell Import-Module Microsoft.Graph.Identity.SignIns -$params = @{ - userInputType = "textBox" -} +Get-MgIdentityB2XUserFlowUserAttributeAssignment -B2xIdentityUserFlowId $b2xIdentityUserFlowId -IdentityUserFlowAttributeAssignmentId $identityUserFlowAttributeAssignmentId +``` +This example shows how to use the Update-MgIdentityB2XUserFlowUserAttributeAssignment Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Get the details of an identityUserFlowAttributeAssignment and expand userAttribute + +```powershell Import-Module Microsoft.Graph.Identity.SignIns -Update-MgIdentityB2XUserFlowUserAttributeAssignment -B2xIdentityUserFlowId $b2xIdentityUserFlowId -IdentityUserFlowAttributeAssignmentId $identityUserFlowAttributeAssignmentId -BodyParameter $params +Get-MgIdentityB2XUserFlowUserAttributeAssignment -B2xIdentityUserFlowId $b2xIdentityUserFlowId -IdentityUserFlowAttributeAssignmentId $identityUserFlowAttributeAssignmentId -ExpandProperty "userAttribute" ``` 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-MgIdentityProvider.md b/src/Identity.SignIns/v1.0/examples/Update-MgIdentityProvider.md index 202cbfc2d08..4a9d53b35e3 100644 --- a/src/Identity.SignIns/v1.0/examples/Update-MgIdentityProvider.md +++ b/src/Identity.SignIns/v1.0/examples/Update-MgIdentityProvider.md @@ -1,27 +1,26 @@ -### Example 1: Update a specific social identity provider (Azure AD or Azure AD B2C) +### Example 1: Retrieve a specific social identity provider (Azure AD or Azure AD B2C) ```powershell Import-Module Microsoft.Graph.Identity.SignIns -$params = @{ - "@odata.type" = "#microsoft.graph.socialIdentityProvider" - clientSecret = "1111111111111" -} - -Update-MgIdentityProvider -IdentityProviderBaseId $identityProviderBaseId -BodyParameter $params +Get-MgIdentityProvider -IdentityProviderBaseId $identityProviderBaseId ``` This example shows how to use the Update-MgIdentityProvider Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Update a specific Apple identity provider (only for Azure AD B2C) +### Example 2: Retrieve a specific built-in identity provider (only for Azure AD) ```powershell Import-Module Microsoft.Graph.Identity.SignIns -$params = @{ - "@odata.type" = "#microsoft.graph.socialIdentityProvider" - displayName = "Apple" -} +Get-MgIdentityProvider -IdentityProviderBaseId $identityProviderBaseId +``` +This example shows how to use the Update-MgIdentityProvider Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Retrieves Apple identity provider(only for Azure AD B2C) + +```powershell Import-Module Microsoft.Graph.Identity.SignIns -Update-MgIdentityProvider -IdentityProviderBaseId $identityProviderBaseId -BodyParameter $params +Get-MgIdentityProvider -IdentityProviderBaseId $identityProviderBaseId ``` This example shows how to use the Update-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/Update-MgIdentityUserFlowAttribute.md b/src/Identity.SignIns/v1.0/examples/Update-MgIdentityUserFlowAttribute.md index 4c03bc0e698..a432b94021a 100644 --- a/src/Identity.SignIns/v1.0/examples/Update-MgIdentityUserFlowAttribute.md +++ b/src/Identity.SignIns/v1.0/examples/Update-MgIdentityUserFlowAttribute.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Identity.SignIns -$params = @{ - description = "Your new hobby" -} - -Update-MgIdentityUserFlowAttribute -IdentityUserFlowAttributeId $identityUserFlowAttributeId -BodyParameter $params +Get-MgIdentityUserFlowAttribute -IdentityUserFlowAttributeId $identityUserFlowAttributeId ``` 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-MgOauth2PermissionGrant.md b/src/Identity.SignIns/v1.0/examples/Update-MgOauth2PermissionGrant.md index 4e8fca01789..2eb066f6891 100644 --- a/src/Identity.SignIns/v1.0/examples/Update-MgOauth2PermissionGrant.md +++ b/src/Identity.SignIns/v1.0/examples/Update-MgOauth2PermissionGrant.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Identity.SignIns -$params = @{ - scope = "User.ReadBasic.All Group.ReadWrite.All" -} - -Update-MgOauth2PermissionGrant -OAuth2PermissionGrantId $oAuth2PermissionGrantId -BodyParameter $params +Get-MgOauth2PermissionGrant -OAuth2PermissionGrantId $oAuth2PermissionGrantId ``` This example shows how to use the Update-MgOauth2PermissionGrant 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 8cebf257505..53b22b438ba 100644 --- a/src/Identity.SignIns/v1.0/examples/Update-MgPolicyActivityBasedTimeoutPolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Update-MgPolicyActivityBasedTimeoutPolicy.md @@ -2,15 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Identity.SignIns -$params = @{ - definition = @( - "definition-value" - ) - displayName = "displayName-value" - isOrganizationDefault = $true -} - -Update-MgPolicyActivityBasedTimeoutPolicy -ActivityBasedTimeoutPolicyId $activityBasedTimeoutPolicyId -BodyParameter $params +Get-MgPolicyActivityBasedTimeoutPolicy -ActivityBasedTimeoutPolicyId $activityBasedTimeoutPolicyId ``` 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-MgPolicyAuthenticationFlowPolicy.md b/src/Identity.SignIns/v1.0/examples/Update-MgPolicyAuthenticationFlowPolicy.md index 19f225e3e50..14302d82a6b 100644 --- a/src/Identity.SignIns/v1.0/examples/Update-MgPolicyAuthenticationFlowPolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Update-MgPolicyAuthenticationFlowPolicy.md @@ -2,13 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Identity.SignIns -$params = @{ - selfServiceSignUp = @{ - isEnabled = $true - } -} - -Update-MgPolicyAuthenticationFlowPolicy -BodyParameter $params +Get-MgPolicyAuthenticationFlowPolicy ``` 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 a65ec57a5ab..8317c240d3f 100644 --- a/src/Identity.SignIns/v1.0/examples/Update-MgPolicyAuthenticationMethodPolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Update-MgPolicyAuthenticationMethodPolicy.md @@ -2,25 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Identity.SignIns -$params = @{ - registrationEnforcement = @{ - authenticationMethodsRegistrationCampaign = @{ - snoozeDurationInDays = 1 - state = "enabled" - excludeTargets = @( - ) - includeTargets = @( - @{ - id = "3ee3a9de-0a86-4e12-a287-9769accf1ba2" - targetType = "group" - targetedAuthenticationMethod = "microsoftAuthenticator" - } - ) - } - } -} - -Update-MgPolicyAuthenticationMethodPolicy -BodyParameter $params +Get-MgPolicyAuthenticationMethodPolicy ``` 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-MgPolicyClaimMappingPolicy.md b/src/Identity.SignIns/v1.0/examples/Update-MgPolicyClaimMappingPolicy.md index 6bada98e335..88af36e89f8 100644 --- a/src/Identity.SignIns/v1.0/examples/Update-MgPolicyClaimMappingPolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Update-MgPolicyClaimMappingPolicy.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Identity.SignIns -$params = @{ - displayName = "UpdateClaimsPolicy" -} - -Update-MgPolicyClaimMappingPolicy -ClaimsMappingPolicyId $claimsMappingPolicyId -BodyParameter $params +Get-MgPolicyClaimMappingPolicy -ClaimsMappingPolicyId $claimsMappingPolicyId ``` 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 edcf125b251..7c3b7524533 100644 --- a/src/Identity.SignIns/v1.0/examples/Update-MgPolicyCrossTenantAccessPolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Update-MgPolicyCrossTenantAccessPolicy.md @@ -2,13 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Identity.SignIns -$params = @{ - allowedCloudEndpoints = @( - "microsoftonline.us" - ) -} - -Update-MgPolicyCrossTenantAccessPolicy -BodyParameter $params +Get-MgPolicyCrossTenantAccessPolicy ``` 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 78be4d04545..4da2f45c54c 100644 --- a/src/Identity.SignIns/v1.0/examples/Update-MgPolicyCrossTenantAccessPolicyDefault.md +++ b/src/Identity.SignIns/v1.0/examples/Update-MgPolicyCrossTenantAccessPolicyDefault.md @@ -2,30 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Identity.SignIns -$params = @{ - b2bCollaborationOutbound = @{ - usersAndGroups = @{ - accessType = "blocked" - targets = @( - @{ - target = "0be493dc-cb56-4a53-936f-9cf64410b8b0" - targetType = "group" - } - ) - } - applications = @{ - accessType = "blocked" - targets = @( - @{ - target = "AllApplications" - targetType = "application" - } - ) - } - } -} - -Update-MgPolicyCrossTenantAccessPolicyDefault -BodyParameter $params +Get-MgPolicyCrossTenantAccessPolicyDefault ``` This example shows how to use the Update-MgPolicyCrossTenantAccessPolicyDefault 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-MgPolicyCrossTenantAccessPolicyPartner.md b/src/Identity.SignIns/v1.0/examples/Update-MgPolicyCrossTenantAccessPolicyPartner.md index ad7db51cbb8..d5b2b3ade0a 100644 --- a/src/Identity.SignIns/v1.0/examples/Update-MgPolicyCrossTenantAccessPolicyPartner.md +++ b/src/Identity.SignIns/v1.0/examples/Update-MgPolicyCrossTenantAccessPolicyPartner.md @@ -1,32 +1,8 @@ -### Example 1: Configure inbound trust settings +### Example 1: Code snippet ```powershell Import-Module Microsoft.Graph.Identity.SignIns -$params = @{ - inboundTrust = @{ - isMfaAccepted = $true - isCompliantDeviceAccepted = $true - isHybridAzureADJoinedDeviceAccepted = $true - } -} - -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). - -### Example 2: Configure automaticUserConsent settings - -```powershell Import-Module Microsoft.Graph.Identity.SignIns - -$params = @{ - automaticUserConsentSettings = @{ - inboundAllowed = $true - outboundAllowed = $true - } -} - -Update-MgPolicyCrossTenantAccessPolicyPartner -CrossTenantAccessPolicyConfigurationPartnerTenantId $crossTenantAccessPolicyConfigurationPartnerTenantId -BodyParameter $params +Get-MgPolicyCrossTenantAccessPolicyPartner -CrossTenantAccessPolicyConfigurationPartnerTenantId $crossTenantAccessPolicyConfigurationPartnerTenantId ``` This example shows how to use the Update-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/Update-MgPolicyFeatureRolloutPolicy.md b/src/Identity.SignIns/v1.0/examples/Update-MgPolicyFeatureRolloutPolicy.md index d13e98eabcb..340155f427b 100644 --- a/src/Identity.SignIns/v1.0/examples/Update-MgPolicyFeatureRolloutPolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Update-MgPolicyFeatureRolloutPolicy.md @@ -1,15 +1,17 @@ -### Example 1: Code snippet +### Example 1: Get a feature rollout policy ```powershell Import-Module Microsoft.Graph.Identity.SignIns -$params = @{ - displayName = "PasswordHashSync Rollout Policy" - description = "PasswordHashSync Rollout Policy" - isEnabled = $true - isAppliedToOrganization = $false -} +Get-MgPolicyFeatureRolloutPolicy -FeatureRolloutPolicyId $featureRolloutPolicyId +``` +This example shows how to use the Update-MgPolicyFeatureRolloutPolicy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Get a feature rollout policy and expand appliesTo + +```powershell Import-Module Microsoft.Graph.Identity.SignIns -Update-MgPolicyFeatureRolloutPolicy -FeatureRolloutPolicyId $featureRolloutPolicyId -BodyParameter $params +Get-MgPolicyFeatureRolloutPolicy -FeatureRolloutPolicyId $featureRolloutPolicyId -ExpandProperty "appliesTo" ``` 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-MgPolicyIdentitySecurityDefaultEnforcementPolicy.md b/src/Identity.SignIns/v1.0/examples/Update-MgPolicyIdentitySecurityDefaultEnforcementPolicy.md index 0212d917213..87096ef485b 100644 --- a/src/Identity.SignIns/v1.0/examples/Update-MgPolicyIdentitySecurityDefaultEnforcementPolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Update-MgPolicyIdentitySecurityDefaultEnforcementPolicy.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Identity.SignIns -$params = @{ - isEnabled = $false -} - -Update-MgPolicyIdentitySecurityDefaultEnforcementPolicy -BodyParameter $params +Get-MgPolicyIdentitySecurityDefaultEnforcementPolicy ``` 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 25b9c2e56fe..826e36d30d7 100644 --- a/src/Identity.SignIns/v1.0/examples/Update-MgPolicyRoleManagementPolicyRule.md +++ b/src/Identity.SignIns/v1.0/examples/Update-MgPolicyRoleManagementPolicyRule.md @@ -2,26 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Identity.SignIns -$params = @{ - "@odata.type" = "#microsoft.graph.unifiedRoleManagementPolicyExpirationRule" - id = "Expiration_EndUser_Assignment" - isExpirationRequired = $true - maximumDuration = "PT1H45M" - target = @{ - "@odata.type" = "microsoft.graph.unifiedRoleManagementPolicyRuleTarget" - caller = "EndUser" - operations = @( - "All" - ) - level = "Assignment" - inheritableSettings = @( - ) - enforcedSettings = @( - ) - } -} - -Update-MgPolicyRoleManagementPolicyRule -UnifiedRoleManagementPolicyId $unifiedRoleManagementPolicyId -UnifiedRoleManagementPolicyRuleId $unifiedRoleManagementPolicyRuleId -BodyParameter $params +Get-MgPolicyRoleManagementPolicyRule -UnifiedRoleManagementPolicyId $unifiedRoleManagementPolicyId -UnifiedRoleManagementPolicyRuleId $unifiedRoleManagementPolicyRuleId ``` This example shows how to use the Update-MgPolicyRoleManagementPolicyRule 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-MgPolicyTokenIssuancePolicy.md b/src/Identity.SignIns/v1.0/examples/Update-MgPolicyTokenIssuancePolicy.md index c531ea53ca1..37692151708 100644 --- a/src/Identity.SignIns/v1.0/examples/Update-MgPolicyTokenIssuancePolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Update-MgPolicyTokenIssuancePolicy.md @@ -2,15 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Identity.SignIns -$params = @{ - definition = @( - "definition-value" - ) - displayName = "displayName-value" - isOrganizationDefault = $true -} - -Update-MgPolicyTokenIssuancePolicy -TokenIssuancePolicyId $tokenIssuancePolicyId -BodyParameter $params +Remove-MgPolicyTokenIssuancePolicy -TokenIssuancePolicyId $tokenIssuancePolicyId ``` 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 62362f6c908..f38dbffccf3 100644 --- a/src/Identity.SignIns/v1.0/examples/Update-MgPolicyTokenLifetimePolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Update-MgPolicyTokenLifetimePolicy.md @@ -2,15 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Identity.SignIns -$params = @{ - definition = @( - "{"TokenLifetimePolicy":{"Version":1,"AccessTokenLifetime":"5:30:00"}}" - ) - displayName = "Contoso token lifetime policy" - isOrganizationDefault = $true -} - -Update-MgPolicyTokenLifetimePolicy -TokenLifetimePolicyId $tokenLifetimePolicyId -BodyParameter $params +Get-MgPolicyTokenLifetimePolicy -TokenLifetimePolicyId $tokenLifetimePolicyId ``` 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-MgUserAuthenticationEmailMethod.md b/src/Identity.SignIns/v1.0/examples/Update-MgUserAuthenticationEmailMethod.md index 688c5c6dbc4..5c84f769c92 100644 --- a/src/Identity.SignIns/v1.0/examples/Update-MgUserAuthenticationEmailMethod.md +++ b/src/Identity.SignIns/v1.0/examples/Update-MgUserAuthenticationEmailMethod.md @@ -2,11 +2,8 @@ ```powershell Import-Module Microsoft.Graph.Identity.SignIns -$params = @{ - emailAddress = "kim@contoso.com" -} - -Update-MgUserAuthenticationEmailMethod -UserId $userId -EmailAuthenticationMethodId $emailAuthenticationMethodId -BodyParameter $params +# A UPN can also be used as -UserId. +Get-MgUserAuthenticationEmailMethod -UserId $userId -EmailAuthenticationMethodId $emailAuthenticationMethodId ``` 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 6bc954a8b4e..4d4706695d6 100644 --- a/src/Identity.SignIns/v1.0/examples/Update-MgUserAuthenticationPhoneMethod.md +++ b/src/Identity.SignIns/v1.0/examples/Update-MgUserAuthenticationPhoneMethod.md @@ -2,13 +2,8 @@ ```powershell Import-Module Microsoft.Graph.Identity.SignIns -$params = @{ - phoneNumber = "+1 2065555554" - phoneType = "mobile" -} - # A UPN can also be used as -UserId. -Update-MgUserAuthenticationPhoneMethod -UserId $userId -PhoneAuthenticationMethodId $phoneAuthenticationMethodId -BodyParameter $params +Get-MgUserAuthenticationPhoneMethod -UserId $userId -PhoneAuthenticationMethodId $phoneAuthenticationMethodId ``` 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/Mail/beta/examples/Get-MgBetaUserInferenceClassificationOverride.md b/src/Mail/beta/examples/Get-MgBetaUserInferenceClassificationOverride.md index 86248c7d5f1..0e74cd4486a 100644 --- a/src/Mail/beta/examples/Get-MgBetaUserInferenceClassificationOverride.md +++ b/src/Mail/beta/examples/Get-MgBetaUserInferenceClassificationOverride.md @@ -2,12 +2,8 @@ ```powershell Import-Module Microsoft.Graph.Beta.Mail -$params = @{ - classifyAs = "focused" -} - # A UPN can also be used as -UserId. -Update-MgBetaUserInferenceClassificationOverride -UserId $userId -InferenceClassificationOverrideId $inferenceClassificationOverrideId -BodyParameter $params +Remove-MgBetaUserInferenceClassificationOverride -UserId $userId -InferenceClassificationOverrideId $inferenceClassificationOverrideId ``` This example shows how to use the Get-MgBetaBetaUserInferenceClassificationOverride Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Mail/beta/examples/Get-MgBetaUserMailFolder.md b/src/Mail/beta/examples/Get-MgBetaUserMailFolder.md index 027e684678d..6dcd3192b8c 100644 --- a/src/Mail/beta/examples/Get-MgBetaUserMailFolder.md +++ b/src/Mail/beta/examples/Get-MgBetaUserMailFolder.md @@ -1,13 +1,19 @@ -### Example 1: Code snippet +### Example 1: Get a mail folder ```powershell Import-Module Microsoft.Graph.Beta.Mail -$params = @{ - displayName = "displayName-value" -} +# A UPN can also be used as -UserId. +Get-MgBetaUserMailFolder -UserId $userId -MailFolderId $mailFolderId +``` +This example shows how to use the Get-MgBetaBetaUserMailFolder Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Get a mail sent items folder + +```powershell Import-Module Microsoft.Graph.Beta.Mail # A UPN can also be used as -UserId. -Update-MgBetaUserMailFolder -UserId $userId -MailFolderId $mailFolderId -BodyParameter $params +Get-MgBetaUserMailFolder -UserId $userId -MailFolderId $mailFolderId ``` This example shows how to use the Get-MgBetaBetaUserMailFolder Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Mail/beta/examples/Get-MgBetaUserMailFolderMessageRule.md b/src/Mail/beta/examples/Get-MgBetaUserMailFolderMessageRule.md index 3927970b938..64db06504d0 100644 --- a/src/Mail/beta/examples/Get-MgBetaUserMailFolderMessageRule.md +++ b/src/Mail/beta/examples/Get-MgBetaUserMailFolderMessageRule.md @@ -2,15 +2,8 @@ ```powershell Import-Module Microsoft.Graph.Beta.Mail -$params = @{ - displayName = "Important from partner" - actions = @{ - markImportance = "high" - } -} - # A UPN can also be used as -UserId. -Update-MgBetaUserMailFolderMessageRule -UserId $userId -MailFolderId $mailFolderId -MessageRuleId $messageRuleId -BodyParameter $params +Get-MgBetaUserMailFolderMessageRule -UserId $userId -MailFolderId $mailFolderId -MessageRuleId $messageRuleId ``` This example shows how to use the Get-MgBetaBetaUserMailFolderMessageRule Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Mail/beta/examples/Get-MgBetaUserMessage.md b/src/Mail/beta/examples/Get-MgBetaUserMessage.md index 012347872b6..10a5f880c2a 100644 --- a/src/Mail/beta/examples/Get-MgBetaUserMessage.md +++ b/src/Mail/beta/examples/Get-MgBetaUserMessage.md @@ -1,18 +1,19 @@ -### Example 1: Code snippet +### Example 1 ```powershell Import-Module Microsoft.Graph.Beta.Mail -$params = @{ - subject = "subject-value" - body = @{ - contentType = "" - content = "content-value" - } - inferenceClassification = "other" -} +# A UPN can also be used as -UserId. +Get-MgBetaUserMessage -UserId $userId -MessageId $messageId +``` +This example shows how to use the Get-MgBetaBetaUserMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2 + +```powershell Import-Module Microsoft.Graph.Beta.Mail # A UPN can also be used as -UserId. -Update-MgBetaUserMessage -UserId $userId -MessageId $messageId -BodyParameter $params +Get-MgBetaUserMessage -UserId $userId -MessageId $messageId -ExpandProperty "microsoft.graph.eventMessage/event" ``` This example shows how to use the Get-MgBetaBetaUserMessage Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Mail/beta/examples/Remove-MgBetaUserInferenceClassificationOverride.md b/src/Mail/beta/examples/Remove-MgBetaUserInferenceClassificationOverride.md index d5893b18b30..55efdaf2d9e 100644 --- a/src/Mail/beta/examples/Remove-MgBetaUserInferenceClassificationOverride.md +++ b/src/Mail/beta/examples/Remove-MgBetaUserInferenceClassificationOverride.md @@ -2,12 +2,8 @@ ```powershell Import-Module Microsoft.Graph.Beta.Mail -$params = @{ - classifyAs = "focused" -} - # A UPN can also be used as -UserId. -Update-MgBetaUserInferenceClassificationOverride -UserId $userId -InferenceClassificationOverrideId $inferenceClassificationOverrideId -BodyParameter $params +Remove-MgBetaUserInferenceClassificationOverride -UserId $userId -InferenceClassificationOverrideId $inferenceClassificationOverrideId ``` This example shows how to use the Remove-MgBetaBetaUserInferenceClassificationOverride Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Mail/beta/examples/Remove-MgBetaUserMailFolder.md b/src/Mail/beta/examples/Remove-MgBetaUserMailFolder.md index b5f4723a4ab..2f53f0b3c6a 100644 --- a/src/Mail/beta/examples/Remove-MgBetaUserMailFolder.md +++ b/src/Mail/beta/examples/Remove-MgBetaUserMailFolder.md @@ -1,13 +1,19 @@ -### Example 1: Code snippet +### Example 1: Get a mail folder ```powershell Import-Module Microsoft.Graph.Beta.Mail -$params = @{ - displayName = "displayName-value" -} +# A UPN can also be used as -UserId. +Get-MgBetaUserMailFolder -UserId $userId -MailFolderId $mailFolderId +``` +This example shows how to use the Remove-MgBetaBetaUserMailFolder Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Get a mail sent items folder + +```powershell Import-Module Microsoft.Graph.Beta.Mail # A UPN can also be used as -UserId. -Update-MgBetaUserMailFolder -UserId $userId -MailFolderId $mailFolderId -BodyParameter $params +Get-MgBetaUserMailFolder -UserId $userId -MailFolderId $mailFolderId ``` This example shows how to use the Remove-MgBetaBetaUserMailFolder Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Mail/beta/examples/Remove-MgBetaUserMailFolderMessageRule.md b/src/Mail/beta/examples/Remove-MgBetaUserMailFolderMessageRule.md index 21807d69d22..3f89f53add6 100644 --- a/src/Mail/beta/examples/Remove-MgBetaUserMailFolderMessageRule.md +++ b/src/Mail/beta/examples/Remove-MgBetaUserMailFolderMessageRule.md @@ -2,15 +2,8 @@ ```powershell Import-Module Microsoft.Graph.Beta.Mail -$params = @{ - displayName = "Important from partner" - actions = @{ - markImportance = "high" - } -} - # A UPN can also be used as -UserId. -Update-MgBetaUserMailFolderMessageRule -UserId $userId -MailFolderId $mailFolderId -MessageRuleId $messageRuleId -BodyParameter $params +Get-MgBetaUserMailFolderMessageRule -UserId $userId -MailFolderId $mailFolderId -MessageRuleId $messageRuleId ``` This example shows how to use the Remove-MgBetaBetaUserMailFolderMessageRule Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Mail/beta/examples/Remove-MgBetaUserMessage.md b/src/Mail/beta/examples/Remove-MgBetaUserMessage.md index 0fc7a308ade..485f6e95dae 100644 --- a/src/Mail/beta/examples/Remove-MgBetaUserMessage.md +++ b/src/Mail/beta/examples/Remove-MgBetaUserMessage.md @@ -1,18 +1,19 @@ -### Example 1: Code snippet +### Example 1 ```powershell Import-Module Microsoft.Graph.Beta.Mail -$params = @{ - subject = "subject-value" - body = @{ - contentType = "" - content = "content-value" - } - inferenceClassification = "other" -} +# A UPN can also be used as -UserId. +Get-MgBetaUserMessage -UserId $userId -MessageId $messageId +``` +This example shows how to use the Remove-MgBetaBetaUserMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2 + +```powershell Import-Module Microsoft.Graph.Beta.Mail # A UPN can also be used as -UserId. -Update-MgBetaUserMessage -UserId $userId -MessageId $messageId -BodyParameter $params +Get-MgBetaUserMessage -UserId $userId -MessageId $messageId -ExpandProperty "microsoft.graph.eventMessage/event" ``` This example shows how to use the Remove-MgBetaBetaUserMessage Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Mail/beta/examples/Update-MgBetaUserInferenceClassificationOverride.md b/src/Mail/beta/examples/Update-MgBetaUserInferenceClassificationOverride.md index f88f0962963..c786e4c1f81 100644 --- a/src/Mail/beta/examples/Update-MgBetaUserInferenceClassificationOverride.md +++ b/src/Mail/beta/examples/Update-MgBetaUserInferenceClassificationOverride.md @@ -2,12 +2,8 @@ ```powershell Import-Module Microsoft.Graph.Beta.Mail -$params = @{ - classifyAs = "focused" -} - # A UPN can also be used as -UserId. -Update-MgBetaUserInferenceClassificationOverride -UserId $userId -InferenceClassificationOverrideId $inferenceClassificationOverrideId -BodyParameter $params +Remove-MgBetaUserInferenceClassificationOverride -UserId $userId -InferenceClassificationOverrideId $inferenceClassificationOverrideId ``` This example shows how to use the Update-MgBetaBetaUserInferenceClassificationOverride Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Mail/beta/examples/Update-MgBetaUserMailFolder.md b/src/Mail/beta/examples/Update-MgBetaUserMailFolder.md index 39a1ec07fe4..2eb68118ed0 100644 --- a/src/Mail/beta/examples/Update-MgBetaUserMailFolder.md +++ b/src/Mail/beta/examples/Update-MgBetaUserMailFolder.md @@ -1,13 +1,19 @@ -### Example 1: Code snippet +### Example 1: Get a mail folder ```powershell Import-Module Microsoft.Graph.Beta.Mail -$params = @{ - displayName = "displayName-value" -} +# A UPN can also be used as -UserId. +Get-MgBetaUserMailFolder -UserId $userId -MailFolderId $mailFolderId +``` +This example shows how to use the Update-MgBetaBetaUserMailFolder Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Get a mail sent items folder + +```powershell Import-Module Microsoft.Graph.Beta.Mail # A UPN can also be used as -UserId. -Update-MgBetaUserMailFolder -UserId $userId -MailFolderId $mailFolderId -BodyParameter $params +Get-MgBetaUserMailFolder -UserId $userId -MailFolderId $mailFolderId ``` This example shows how to use the Update-MgBetaBetaUserMailFolder Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Mail/beta/examples/Update-MgBetaUserMailFolderMessageRule.md b/src/Mail/beta/examples/Update-MgBetaUserMailFolderMessageRule.md index 4c3d86446a9..7ebd820bd24 100644 --- a/src/Mail/beta/examples/Update-MgBetaUserMailFolderMessageRule.md +++ b/src/Mail/beta/examples/Update-MgBetaUserMailFolderMessageRule.md @@ -2,15 +2,8 @@ ```powershell Import-Module Microsoft.Graph.Beta.Mail -$params = @{ - displayName = "Important from partner" - actions = @{ - markImportance = "high" - } -} - # A UPN can also be used as -UserId. -Update-MgBetaUserMailFolderMessageRule -UserId $userId -MailFolderId $mailFolderId -MessageRuleId $messageRuleId -BodyParameter $params +Get-MgBetaUserMailFolderMessageRule -UserId $userId -MailFolderId $mailFolderId -MessageRuleId $messageRuleId ``` This example shows how to use the Update-MgBetaBetaUserMailFolderMessageRule Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Mail/beta/examples/Update-MgBetaUserMessage.md b/src/Mail/beta/examples/Update-MgBetaUserMessage.md index ef9e4228563..5dbf63dfe0b 100644 --- a/src/Mail/beta/examples/Update-MgBetaUserMessage.md +++ b/src/Mail/beta/examples/Update-MgBetaUserMessage.md @@ -1,18 +1,19 @@ -### Example 1: Code snippet +### Example 1 ```powershell Import-Module Microsoft.Graph.Beta.Mail -$params = @{ - subject = "subject-value" - body = @{ - contentType = "" - content = "content-value" - } - inferenceClassification = "other" -} +# A UPN can also be used as -UserId. +Get-MgBetaUserMessage -UserId $userId -MessageId $messageId +``` +This example shows how to use the Update-MgBetaBetaUserMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2 + +```powershell Import-Module Microsoft.Graph.Beta.Mail # A UPN can also be used as -UserId. -Update-MgBetaUserMessage -UserId $userId -MessageId $messageId -BodyParameter $params +Get-MgBetaUserMessage -UserId $userId -MessageId $messageId -ExpandProperty "microsoft.graph.eventMessage/event" ``` This example shows how to use the Update-MgBetaBetaUserMessage Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Mail/v1.0/examples/Get-MgUserInferenceClassificationOverride.md b/src/Mail/v1.0/examples/Get-MgUserInferenceClassificationOverride.md index 4b1be478ebf..772019da15d 100644 --- a/src/Mail/v1.0/examples/Get-MgUserInferenceClassificationOverride.md +++ b/src/Mail/v1.0/examples/Get-MgUserInferenceClassificationOverride.md @@ -2,12 +2,8 @@ ```powershell Import-Module Microsoft.Graph.Mail -$params = @{ - classifyAs = "focused" -} - # A UPN can also be used as -UserId. -Update-MgUserInferenceClassificationOverride -UserId $userId -InferenceClassificationOverrideId $inferenceClassificationOverrideId -BodyParameter $params +Remove-MgUserInferenceClassificationOverride -UserId $userId -InferenceClassificationOverrideId $inferenceClassificationOverrideId ``` This example shows how to use the Get-MgUserInferenceClassificationOverride Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Mail/v1.0/examples/Get-MgUserMailFolder.md b/src/Mail/v1.0/examples/Get-MgUserMailFolder.md index 903a760d273..9f2ec5cb596 100644 --- a/src/Mail/v1.0/examples/Get-MgUserMailFolder.md +++ b/src/Mail/v1.0/examples/Get-MgUserMailFolder.md @@ -1,13 +1,19 @@ -### Example 1: Code snippet +### Example 1: Get a mail folder ```powershell Import-Module Microsoft.Graph.Mail -$params = @{ - displayName = "displayName-value" -} +# A UPN can also be used as -UserId. +Get-MgUserMailFolder -UserId $userId -MailFolderId $mailFolderId +``` +This example shows how to use the Get-MgUserMailFolder Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Get a mail sent items folder + +```powershell Import-Module Microsoft.Graph.Mail # A UPN can also be used as -UserId. -Update-MgUserMailFolder -UserId $userId -MailFolderId $mailFolderId -BodyParameter $params +Get-MgUserMailFolder -UserId $userId -MailFolderId $mailFolderId ``` This example shows how to use the Get-MgUserMailFolder Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Mail/v1.0/examples/Get-MgUserMailFolderMessageRule.md b/src/Mail/v1.0/examples/Get-MgUserMailFolderMessageRule.md index 3c3e497fb8f..db386011a41 100644 --- a/src/Mail/v1.0/examples/Get-MgUserMailFolderMessageRule.md +++ b/src/Mail/v1.0/examples/Get-MgUserMailFolderMessageRule.md @@ -2,15 +2,8 @@ ```powershell Import-Module Microsoft.Graph.Mail -$params = @{ - displayName = "Important from partner" - actions = @{ - markImportance = "high" - } -} - # A UPN can also be used as -UserId. -Update-MgUserMailFolderMessageRule -UserId $userId -MailFolderId $mailFolderId -MessageRuleId $messageRuleId -BodyParameter $params +Get-MgUserMailFolderMessageRule -UserId $userId -MailFolderId $mailFolderId -MessageRuleId $messageRuleId ``` This example shows how to use the Get-MgUserMailFolderMessageRule Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Mail/v1.0/examples/Get-MgUserMessage.md b/src/Mail/v1.0/examples/Get-MgUserMessage.md index 3314d19cbcd..b5b7a145007 100644 --- a/src/Mail/v1.0/examples/Get-MgUserMessage.md +++ b/src/Mail/v1.0/examples/Get-MgUserMessage.md @@ -1,18 +1,19 @@ -### Example 1: Code snippet +### Example 1 ```powershell Import-Module Microsoft.Graph.Mail -$params = @{ - subject = "subject-value" - body = @{ - contentType = "" - content = "content-value" - } - inferenceClassification = "other" -} +# A UPN can also be used as -UserId. +Get-MgUserMessage -UserId $userId -MessageId $messageId +``` +This example shows how to use the Get-MgUserMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2 + +```powershell Import-Module Microsoft.Graph.Mail # A UPN can also be used as -UserId. -Update-MgUserMessage -UserId $userId -MessageId $messageId -BodyParameter $params +Get-MgUserMessage -UserId $userId -MessageId $messageId -ExpandProperty "microsoft.graph.eventMessage/event" ``` This example shows how to use the Get-MgUserMessage Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Mail/v1.0/examples/Remove-MgUserInferenceClassificationOverride.md b/src/Mail/v1.0/examples/Remove-MgUserInferenceClassificationOverride.md index 7161811b5c9..333da182070 100644 --- a/src/Mail/v1.0/examples/Remove-MgUserInferenceClassificationOverride.md +++ b/src/Mail/v1.0/examples/Remove-MgUserInferenceClassificationOverride.md @@ -2,12 +2,8 @@ ```powershell Import-Module Microsoft.Graph.Mail -$params = @{ - classifyAs = "focused" -} - # A UPN can also be used as -UserId. -Update-MgUserInferenceClassificationOverride -UserId $userId -InferenceClassificationOverrideId $inferenceClassificationOverrideId -BodyParameter $params +Remove-MgUserInferenceClassificationOverride -UserId $userId -InferenceClassificationOverrideId $inferenceClassificationOverrideId ``` This example shows how to use the Remove-MgUserInferenceClassificationOverride Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Mail/v1.0/examples/Remove-MgUserMailFolder.md b/src/Mail/v1.0/examples/Remove-MgUserMailFolder.md index bc778783d10..cb997a59339 100644 --- a/src/Mail/v1.0/examples/Remove-MgUserMailFolder.md +++ b/src/Mail/v1.0/examples/Remove-MgUserMailFolder.md @@ -1,13 +1,19 @@ -### Example 1: Code snippet +### Example 1: Get a mail folder ```powershell Import-Module Microsoft.Graph.Mail -$params = @{ - displayName = "displayName-value" -} +# A UPN can also be used as -UserId. +Get-MgUserMailFolder -UserId $userId -MailFolderId $mailFolderId +``` +This example shows how to use the Remove-MgUserMailFolder Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Get a mail sent items folder + +```powershell Import-Module Microsoft.Graph.Mail # A UPN can also be used as -UserId. -Update-MgUserMailFolder -UserId $userId -MailFolderId $mailFolderId -BodyParameter $params +Get-MgUserMailFolder -UserId $userId -MailFolderId $mailFolderId ``` This example shows how to use the Remove-MgUserMailFolder Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Mail/v1.0/examples/Remove-MgUserMailFolderMessageRule.md b/src/Mail/v1.0/examples/Remove-MgUserMailFolderMessageRule.md index e69a39d36bf..07d36e22f32 100644 --- a/src/Mail/v1.0/examples/Remove-MgUserMailFolderMessageRule.md +++ b/src/Mail/v1.0/examples/Remove-MgUserMailFolderMessageRule.md @@ -2,15 +2,8 @@ ```powershell Import-Module Microsoft.Graph.Mail -$params = @{ - displayName = "Important from partner" - actions = @{ - markImportance = "high" - } -} - # A UPN can also be used as -UserId. -Update-MgUserMailFolderMessageRule -UserId $userId -MailFolderId $mailFolderId -MessageRuleId $messageRuleId -BodyParameter $params +Get-MgUserMailFolderMessageRule -UserId $userId -MailFolderId $mailFolderId -MessageRuleId $messageRuleId ``` This example shows how to use the Remove-MgUserMailFolderMessageRule Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Mail/v1.0/examples/Remove-MgUserMessage.md b/src/Mail/v1.0/examples/Remove-MgUserMessage.md index 2422edc4399..b1f2a0f3460 100644 --- a/src/Mail/v1.0/examples/Remove-MgUserMessage.md +++ b/src/Mail/v1.0/examples/Remove-MgUserMessage.md @@ -1,18 +1,19 @@ -### Example 1: Code snippet +### Example 1 ```powershell Import-Module Microsoft.Graph.Mail -$params = @{ - subject = "subject-value" - body = @{ - contentType = "" - content = "content-value" - } - inferenceClassification = "other" -} +# A UPN can also be used as -UserId. +Get-MgUserMessage -UserId $userId -MessageId $messageId +``` +This example shows how to use the Remove-MgUserMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2 + +```powershell Import-Module Microsoft.Graph.Mail # A UPN can also be used as -UserId. -Update-MgUserMessage -UserId $userId -MessageId $messageId -BodyParameter $params +Get-MgUserMessage -UserId $userId -MessageId $messageId -ExpandProperty "microsoft.graph.eventMessage/event" ``` This example shows how to use the Remove-MgUserMessage Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Mail/v1.0/examples/Update-MgUserInferenceClassificationOverride.md b/src/Mail/v1.0/examples/Update-MgUserInferenceClassificationOverride.md index edb8298365f..ffb4e0dfe0d 100644 --- a/src/Mail/v1.0/examples/Update-MgUserInferenceClassificationOverride.md +++ b/src/Mail/v1.0/examples/Update-MgUserInferenceClassificationOverride.md @@ -2,12 +2,8 @@ ```powershell Import-Module Microsoft.Graph.Mail -$params = @{ - classifyAs = "focused" -} - # A UPN can also be used as -UserId. -Update-MgUserInferenceClassificationOverride -UserId $userId -InferenceClassificationOverrideId $inferenceClassificationOverrideId -BodyParameter $params +Remove-MgUserInferenceClassificationOverride -UserId $userId -InferenceClassificationOverrideId $inferenceClassificationOverrideId ``` This example shows how to use the Update-MgUserInferenceClassificationOverride Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Mail/v1.0/examples/Update-MgUserMailFolder.md b/src/Mail/v1.0/examples/Update-MgUserMailFolder.md index 7a754bf2ff8..5b5b0467826 100644 --- a/src/Mail/v1.0/examples/Update-MgUserMailFolder.md +++ b/src/Mail/v1.0/examples/Update-MgUserMailFolder.md @@ -1,13 +1,19 @@ -### Example 1: Code snippet +### Example 1: Get a mail folder ```powershell Import-Module Microsoft.Graph.Mail -$params = @{ - displayName = "displayName-value" -} +# A UPN can also be used as -UserId. +Get-MgUserMailFolder -UserId $userId -MailFolderId $mailFolderId +``` +This example shows how to use the Update-MgUserMailFolder Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Get a mail sent items folder + +```powershell Import-Module Microsoft.Graph.Mail # A UPN can also be used as -UserId. -Update-MgUserMailFolder -UserId $userId -MailFolderId $mailFolderId -BodyParameter $params +Get-MgUserMailFolder -UserId $userId -MailFolderId $mailFolderId ``` This example shows how to use the Update-MgUserMailFolder Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Mail/v1.0/examples/Update-MgUserMailFolderMessageRule.md b/src/Mail/v1.0/examples/Update-MgUserMailFolderMessageRule.md index 4adb4457538..763b991901a 100644 --- a/src/Mail/v1.0/examples/Update-MgUserMailFolderMessageRule.md +++ b/src/Mail/v1.0/examples/Update-MgUserMailFolderMessageRule.md @@ -2,15 +2,8 @@ ```powershell Import-Module Microsoft.Graph.Mail -$params = @{ - displayName = "Important from partner" - actions = @{ - markImportance = "high" - } -} - # A UPN can also be used as -UserId. -Update-MgUserMailFolderMessageRule -UserId $userId -MailFolderId $mailFolderId -MessageRuleId $messageRuleId -BodyParameter $params +Get-MgUserMailFolderMessageRule -UserId $userId -MailFolderId $mailFolderId -MessageRuleId $messageRuleId ``` This example shows how to use the Update-MgUserMailFolderMessageRule Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Mail/v1.0/examples/Update-MgUserMessage.md b/src/Mail/v1.0/examples/Update-MgUserMessage.md index fccb0ba60ce..7bdf700d58a 100644 --- a/src/Mail/v1.0/examples/Update-MgUserMessage.md +++ b/src/Mail/v1.0/examples/Update-MgUserMessage.md @@ -1,18 +1,19 @@ -### Example 1: Code snippet +### Example 1 ```powershell Import-Module Microsoft.Graph.Mail -$params = @{ - subject = "subject-value" - body = @{ - contentType = "" - content = "content-value" - } - inferenceClassification = "other" -} +# A UPN can also be used as -UserId. +Get-MgUserMessage -UserId $userId -MessageId $messageId +``` +This example shows how to use the Update-MgUserMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2 + +```powershell Import-Module Microsoft.Graph.Mail # A UPN can also be used as -UserId. -Update-MgUserMessage -UserId $userId -MessageId $messageId -BodyParameter $params +Get-MgUserMessage -UserId $userId -MessageId $messageId -ExpandProperty "microsoft.graph.eventMessage/event" ``` This example shows how to use the Update-MgUserMessage Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/PersonalContacts/beta/examples/Get-MgBetaUserContact.md b/src/PersonalContacts/beta/examples/Get-MgBetaUserContact.md index 46ba6a6a99d..ca6b9574956 100644 --- a/src/PersonalContacts/beta/examples/Get-MgBetaUserContact.md +++ b/src/PersonalContacts/beta/examples/Get-MgBetaUserContact.md @@ -2,18 +2,8 @@ ```powershell Import-Module Microsoft.Graph.Beta.PersonalContacts -$params = @{ - homeAddress = @{ - street = "123 Some street" - city = "Seattle" - state = "WA" - postalCode = "98121" - } - birthday = [System.DateTime]::Parse("1974-07-22") -} - # A UPN can also be used as -UserId. -Update-MgBetaUserContact -UserId $userId -ContactId $contactId -BodyParameter $params +Get-MgBetaUserContact -UserId $userId -ContactId $contactId ``` This example shows how to use the Get-MgBetaBetaUserContact Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/PersonalContacts/beta/examples/Get-MgBetaUserContactFolder.md b/src/PersonalContacts/beta/examples/Get-MgBetaUserContactFolder.md index 9989a514709..74c413f4f45 100644 --- a/src/PersonalContacts/beta/examples/Get-MgBetaUserContactFolder.md +++ b/src/PersonalContacts/beta/examples/Get-MgBetaUserContactFolder.md @@ -2,13 +2,8 @@ ```powershell Import-Module Microsoft.Graph.Beta.PersonalContacts -$params = @{ - parentFolderId = "parentFolderId-value" - displayName = "displayName-value" -} - # A UPN can also be used as -UserId. -Update-MgBetaUserContactFolder -UserId $userId -ContactFolderId $contactFolderId -BodyParameter $params +Get-MgBetaUserContactFolder -UserId $userId -ContactFolderId $contactFolderId ``` This example shows how to use the Get-MgBetaBetaUserContactFolder Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/PersonalContacts/beta/examples/Remove-MgBetaUserContact.md b/src/PersonalContacts/beta/examples/Remove-MgBetaUserContact.md index 078472ec3e9..45e382711d0 100644 --- a/src/PersonalContacts/beta/examples/Remove-MgBetaUserContact.md +++ b/src/PersonalContacts/beta/examples/Remove-MgBetaUserContact.md @@ -2,18 +2,8 @@ ```powershell Import-Module Microsoft.Graph.Beta.PersonalContacts -$params = @{ - homeAddress = @{ - street = "123 Some street" - city = "Seattle" - state = "WA" - postalCode = "98121" - } - birthday = [System.DateTime]::Parse("1974-07-22") -} - # A UPN can also be used as -UserId. -Update-MgBetaUserContact -UserId $userId -ContactId $contactId -BodyParameter $params +Get-MgBetaUserContact -UserId $userId -ContactId $contactId ``` This example shows how to use the Remove-MgBetaBetaUserContact Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/PersonalContacts/beta/examples/Remove-MgBetaUserContactFolder.md b/src/PersonalContacts/beta/examples/Remove-MgBetaUserContactFolder.md index 5f24b2d3c83..ef8d272690f 100644 --- a/src/PersonalContacts/beta/examples/Remove-MgBetaUserContactFolder.md +++ b/src/PersonalContacts/beta/examples/Remove-MgBetaUserContactFolder.md @@ -2,13 +2,8 @@ ```powershell Import-Module Microsoft.Graph.Beta.PersonalContacts -$params = @{ - parentFolderId = "parentFolderId-value" - displayName = "displayName-value" -} - # A UPN can also be used as -UserId. -Update-MgBetaUserContactFolder -UserId $userId -ContactFolderId $contactFolderId -BodyParameter $params +Get-MgBetaUserContactFolder -UserId $userId -ContactFolderId $contactFolderId ``` This example shows how to use the Remove-MgBetaBetaUserContactFolder Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/PersonalContacts/beta/examples/Update-MgBetaUserContact.md b/src/PersonalContacts/beta/examples/Update-MgBetaUserContact.md index acc56277c67..cfb43388fa5 100644 --- a/src/PersonalContacts/beta/examples/Update-MgBetaUserContact.md +++ b/src/PersonalContacts/beta/examples/Update-MgBetaUserContact.md @@ -2,18 +2,8 @@ ```powershell Import-Module Microsoft.Graph.Beta.PersonalContacts -$params = @{ - homeAddress = @{ - street = "123 Some street" - city = "Seattle" - state = "WA" - postalCode = "98121" - } - birthday = [System.DateTime]::Parse("1974-07-22") -} - # A UPN can also be used as -UserId. -Update-MgBetaUserContact -UserId $userId -ContactId $contactId -BodyParameter $params +Get-MgBetaUserContact -UserId $userId -ContactId $contactId ``` This example shows how to use the Update-MgBetaBetaUserContact Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/PersonalContacts/beta/examples/Update-MgBetaUserContactFolder.md b/src/PersonalContacts/beta/examples/Update-MgBetaUserContactFolder.md index b90c714e5c0..264b5770dde 100644 --- a/src/PersonalContacts/beta/examples/Update-MgBetaUserContactFolder.md +++ b/src/PersonalContacts/beta/examples/Update-MgBetaUserContactFolder.md @@ -2,13 +2,8 @@ ```powershell Import-Module Microsoft.Graph.Beta.PersonalContacts -$params = @{ - parentFolderId = "parentFolderId-value" - displayName = "displayName-value" -} - # A UPN can also be used as -UserId. -Update-MgBetaUserContactFolder -UserId $userId -ContactFolderId $contactFolderId -BodyParameter $params +Get-MgBetaUserContactFolder -UserId $userId -ContactFolderId $contactFolderId ``` This example shows how to use the Update-MgBetaBetaUserContactFolder Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/PersonalContacts/v1.0/examples/Get-MgUserContact.md b/src/PersonalContacts/v1.0/examples/Get-MgUserContact.md index c15b5a9af0e..fa2098cb656 100644 --- a/src/PersonalContacts/v1.0/examples/Get-MgUserContact.md +++ b/src/PersonalContacts/v1.0/examples/Get-MgUserContact.md @@ -2,18 +2,8 @@ ```powershell Import-Module Microsoft.Graph.PersonalContacts -$params = @{ - homeAddress = @{ - street = "123 Some street" - city = "Seattle" - state = "WA" - postalCode = "98121" - } - birthday = [System.DateTime]::Parse("1974-07-22") -} - # A UPN can also be used as -UserId. -Update-MgUserContact -UserId $userId -ContactId $contactId -BodyParameter $params +Get-MgUserContact -UserId $userId -ContactId $contactId ``` This example shows how to use the Get-MgUserContact Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/PersonalContacts/v1.0/examples/Get-MgUserContactFolder.md b/src/PersonalContacts/v1.0/examples/Get-MgUserContactFolder.md index 8164a8e54e9..a29a6ded1f1 100644 --- a/src/PersonalContacts/v1.0/examples/Get-MgUserContactFolder.md +++ b/src/PersonalContacts/v1.0/examples/Get-MgUserContactFolder.md @@ -2,13 +2,8 @@ ```powershell Import-Module Microsoft.Graph.PersonalContacts -$params = @{ - parentFolderId = "parentFolderId-value" - displayName = "displayName-value" -} - # A UPN can also be used as -UserId. -Update-MgUserContactFolder -UserId $userId -ContactFolderId $contactFolderId -BodyParameter $params +Get-MgUserContactFolder -UserId $userId -ContactFolderId $contactFolderId ``` This example shows how to use the Get-MgUserContactFolder Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/PersonalContacts/v1.0/examples/Remove-MgUserContact.md b/src/PersonalContacts/v1.0/examples/Remove-MgUserContact.md index 47617e24f79..d2b9fffafd2 100644 --- a/src/PersonalContacts/v1.0/examples/Remove-MgUserContact.md +++ b/src/PersonalContacts/v1.0/examples/Remove-MgUserContact.md @@ -2,18 +2,8 @@ ```powershell Import-Module Microsoft.Graph.PersonalContacts -$params = @{ - homeAddress = @{ - street = "123 Some street" - city = "Seattle" - state = "WA" - postalCode = "98121" - } - birthday = [System.DateTime]::Parse("1974-07-22") -} - # A UPN can also be used as -UserId. -Update-MgUserContact -UserId $userId -ContactId $contactId -BodyParameter $params +Get-MgUserContact -UserId $userId -ContactId $contactId ``` This example shows how to use the Remove-MgUserContact Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/PersonalContacts/v1.0/examples/Remove-MgUserContactFolder.md b/src/PersonalContacts/v1.0/examples/Remove-MgUserContactFolder.md index c68acb12920..e2a86630912 100644 --- a/src/PersonalContacts/v1.0/examples/Remove-MgUserContactFolder.md +++ b/src/PersonalContacts/v1.0/examples/Remove-MgUserContactFolder.md @@ -2,13 +2,8 @@ ```powershell Import-Module Microsoft.Graph.PersonalContacts -$params = @{ - parentFolderId = "parentFolderId-value" - displayName = "displayName-value" -} - # A UPN can also be used as -UserId. -Update-MgUserContactFolder -UserId $userId -ContactFolderId $contactFolderId -BodyParameter $params +Get-MgUserContactFolder -UserId $userId -ContactFolderId $contactFolderId ``` This example shows how to use the Remove-MgUserContactFolder Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/PersonalContacts/v1.0/examples/Update-MgUserContact.md b/src/PersonalContacts/v1.0/examples/Update-MgUserContact.md index 4d70e81d241..70a7d8b80fe 100644 --- a/src/PersonalContacts/v1.0/examples/Update-MgUserContact.md +++ b/src/PersonalContacts/v1.0/examples/Update-MgUserContact.md @@ -2,18 +2,8 @@ ```powershell Import-Module Microsoft.Graph.PersonalContacts -$params = @{ - homeAddress = @{ - street = "123 Some street" - city = "Seattle" - state = "WA" - postalCode = "98121" - } - birthday = [System.DateTime]::Parse("1974-07-22") -} - # A UPN can also be used as -UserId. -Update-MgUserContact -UserId $userId -ContactId $contactId -BodyParameter $params +Get-MgUserContact -UserId $userId -ContactId $contactId ``` This example shows how to use the Update-MgUserContact Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/PersonalContacts/v1.0/examples/Update-MgUserContactFolder.md b/src/PersonalContacts/v1.0/examples/Update-MgUserContactFolder.md index 6bef481b0e5..764d52254bf 100644 --- a/src/PersonalContacts/v1.0/examples/Update-MgUserContactFolder.md +++ b/src/PersonalContacts/v1.0/examples/Update-MgUserContactFolder.md @@ -2,13 +2,8 @@ ```powershell Import-Module Microsoft.Graph.PersonalContacts -$params = @{ - parentFolderId = "parentFolderId-value" - displayName = "displayName-value" -} - # A UPN can also be used as -UserId. -Update-MgUserContactFolder -UserId $userId -ContactFolderId $contactFolderId -BodyParameter $params +Get-MgUserContactFolder -UserId $userId -ContactFolderId $contactFolderId ``` This example shows how to use the Update-MgUserContactFolder Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/beta/examples/Get-MgBetaPlannerBucket.md b/src/Planner/beta/examples/Get-MgBetaPlannerBucket.md index 57a01ce30da..d085474ddf2 100644 --- a/src/Planner/beta/examples/Get-MgBetaPlannerBucket.md +++ b/src/Planner/beta/examples/Get-MgBetaPlannerBucket.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Planner -$params = @{ - name = "Development" -} - -Update-MgBetaPlannerBucket -PlannerBucketId $plannerBucketId -BodyParameter $params-If-Match W/"JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBAWCc=" +Get-MgBetaPlannerBucket -PlannerBucketId $plannerBucketId ``` This example shows how to use the Get-MgBetaBetaPlannerBucket Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/beta/examples/Get-MgBetaPlannerPlan.md b/src/Planner/beta/examples/Get-MgBetaPlannerPlan.md index 49343821727..07933acb316 100644 --- a/src/Planner/beta/examples/Get-MgBetaPlannerPlan.md +++ b/src/Planner/beta/examples/Get-MgBetaPlannerPlan.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Planner -$params = @{ - title = "title-value" -} - -Update-MgBetaPlannerPlan -PlannerPlanId $plannerPlanId -BodyParameter $params +Get-MgBetaPlannerPlan -PlannerPlanId $plannerPlanId ``` This example shows how to use the Get-MgBetaBetaPlannerPlan Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/beta/examples/Get-MgBetaPlannerTask.md b/src/Planner/beta/examples/Get-MgBetaPlannerTask.md index 3d843cb25cd..2b126e4a534 100644 --- a/src/Planner/beta/examples/Get-MgBetaPlannerTask.md +++ b/src/Planner/beta/examples/Get-MgBetaPlannerTask.md @@ -2,20 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Planner -$params = @{ - assignments = @{ - "fbab97d0-4932-4511-b675-204639209557" = @{ - "@odata.type" = "#microsoft.graph.plannerAssignment" - orderHint = "N9917 U2883!" - } - } - appliedCategories = @{ - category3 = $true - category4 = $false - } -} - -Update-MgBetaPlannerTask -PlannerTaskId $plannerTaskId -BodyParameter $params-If-Match W/"JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBAWCc=" +Get-MgBetaPlannerTask -PlannerTaskId $plannerTaskId ``` This example shows how to use the Get-MgBetaBetaPlannerTask Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/beta/examples/Get-MgBetaPlannerTaskAssignedToTaskBoardFormat.md b/src/Planner/beta/examples/Get-MgBetaPlannerTaskAssignedToTaskBoardFormat.md index ae0bfb8ac39..b49cc9383b6 100644 --- a/src/Planner/beta/examples/Get-MgBetaPlannerTaskAssignedToTaskBoardFormat.md +++ b/src/Planner/beta/examples/Get-MgBetaPlannerTaskAssignedToTaskBoardFormat.md @@ -2,13 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Planner -$params = @{ - orderHintsByAssignee = @{ - "aaa27244-1db4-476a-a5cb-004607466324" = "8566473P 957764Jk!" - } -} - -Update-MgBetaPlannerTaskAssignedToTaskBoardFormat -PlannerTaskId $plannerTaskId -BodyParameter $params-If-Match W/"JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBAWCc=" +Get-MgBetaPlannerTaskAssignedToTaskBoardFormat -PlannerTaskId $plannerTaskId ``` This example shows how to use the Get-MgBetaBetaPlannerTaskAssignedToTaskBoardFormat Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/beta/examples/Get-MgBetaPlannerTaskBucketTaskBoardFormat.md b/src/Planner/beta/examples/Get-MgBetaPlannerTaskBucketTaskBoardFormat.md index 116a1e7ac36..b3e047bc5b2 100644 --- a/src/Planner/beta/examples/Get-MgBetaPlannerTaskBucketTaskBoardFormat.md +++ b/src/Planner/beta/examples/Get-MgBetaPlannerTaskBucketTaskBoardFormat.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Planner -$params = @{ - orderHint = "A6673H Ejkl!" -} - -Update-MgBetaPlannerTaskBucketTaskBoardFormat -PlannerTaskId $plannerTaskId -BodyParameter $params-If-Match W/"JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBAWCc=" +Get-MgBetaPlannerTaskBucketTaskBoardFormat -PlannerTaskId $plannerTaskId ``` This example shows how to use the Get-MgBetaBetaPlannerTaskBucketTaskBoardFormat Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/beta/examples/Get-MgBetaPlannerTaskDetail.md b/src/Planner/beta/examples/Get-MgBetaPlannerTaskDetail.md index e669c8faeed..9fcae33c802 100644 --- a/src/Planner/beta/examples/Get-MgBetaPlannerTaskDetail.md +++ b/src/Planner/beta/examples/Get-MgBetaPlannerTaskDetail.md @@ -2,36 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Planner -$params = @{ - previewType = "noPreview" - references = @{ - "http%3A//developer%2Emicrosoft%2Ecom" = @{ - "@odata.type" = "microsoft.graph.plannerExternalReference" - alias = "Documentation" - previewPriority = " !" - type = "Other" - } - "https%3A//developer%2Emicrosoft%2Ecom/en-us/graph/graph-explorer" = @{ - "@odata.type" = "microsoft.graph.plannerExternalReference" - previewPriority = " !!" - } - "http%3A//www%2Ebing%2Ecom" = $null - } - checklist = @{ - "95e27074-6c4a-447a-aa24-9d718a0b86fa" = @{ - "@odata.type" = "microsoft.graph.plannerChecklistItem" - title = "Update task details" - isChecked = $true - } - "d280ed1a-9f6b-4f9c-a962-fb4d00dc50ff" = @{ - "@odata.type" = "microsoft.graph.plannerChecklistItem" - isChecked = $true - } - "a93c93c5-10a6-4167-9551-8bafa09967a7" = $null - } -} - -Update-MgBetaPlannerTaskDetail -PlannerTaskId $plannerTaskId -BodyParameter $params-If-Match W/"JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBAWCc=" +Get-MgBetaPlannerTaskDetail -PlannerTaskId $plannerTaskId ``` This example shows how to use the Get-MgBetaBetaPlannerTaskDetail Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/beta/examples/Get-MgBetaPlannerTaskProgressTaskBoardFormat.md b/src/Planner/beta/examples/Get-MgBetaPlannerTaskProgressTaskBoardFormat.md index e7b655e2d53..05c8aa9f6e4 100644 --- a/src/Planner/beta/examples/Get-MgBetaPlannerTaskProgressTaskBoardFormat.md +++ b/src/Planner/beta/examples/Get-MgBetaPlannerTaskProgressTaskBoardFormat.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Planner -$params = @{ - orderHint = "A6673H Ejkl!" -} - -Update-MgBetaPlannerTaskProgressTaskBoardFormat -PlannerTaskId $plannerTaskId -BodyParameter $params-If-Match W/"JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBAWCc=" +Get-MgBetaPlannerTaskProgressTaskBoardFormat -PlannerTaskId $plannerTaskId ``` This example shows how to use the Get-MgBetaBetaPlannerTaskProgressTaskBoardFormat Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/beta/examples/Remove-MgBetaPlannerBucket.md b/src/Planner/beta/examples/Remove-MgBetaPlannerBucket.md index 9142f9815d1..c50aa5e8b66 100644 --- a/src/Planner/beta/examples/Remove-MgBetaPlannerBucket.md +++ b/src/Planner/beta/examples/Remove-MgBetaPlannerBucket.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Planner -$params = @{ - name = "Development" -} - -Update-MgBetaPlannerBucket -PlannerBucketId $plannerBucketId -BodyParameter $params-If-Match W/"JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBAWCc=" +Get-MgBetaPlannerBucket -PlannerBucketId $plannerBucketId ``` This example shows how to use the Remove-MgBetaBetaPlannerBucket Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/beta/examples/Remove-MgBetaPlannerPlan.md b/src/Planner/beta/examples/Remove-MgBetaPlannerPlan.md index 1ed24e3eeab..2ca01aefd88 100644 --- a/src/Planner/beta/examples/Remove-MgBetaPlannerPlan.md +++ b/src/Planner/beta/examples/Remove-MgBetaPlannerPlan.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Planner -$params = @{ - title = "title-value" -} - -Update-MgBetaPlannerPlan -PlannerPlanId $plannerPlanId -BodyParameter $params +Get-MgBetaPlannerPlan -PlannerPlanId $plannerPlanId ``` This example shows how to use the Remove-MgBetaBetaPlannerPlan Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/beta/examples/Remove-MgBetaPlannerTask.md b/src/Planner/beta/examples/Remove-MgBetaPlannerTask.md index 3d54f1a68bd..39aacf57179 100644 --- a/src/Planner/beta/examples/Remove-MgBetaPlannerTask.md +++ b/src/Planner/beta/examples/Remove-MgBetaPlannerTask.md @@ -2,20 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Planner -$params = @{ - assignments = @{ - "fbab97d0-4932-4511-b675-204639209557" = @{ - "@odata.type" = "#microsoft.graph.plannerAssignment" - orderHint = "N9917 U2883!" - } - } - appliedCategories = @{ - category3 = $true - category4 = $false - } -} - -Update-MgBetaPlannerTask -PlannerTaskId $plannerTaskId -BodyParameter $params-If-Match W/"JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBAWCc=" +Get-MgBetaPlannerTask -PlannerTaskId $plannerTaskId ``` This example shows how to use the Remove-MgBetaBetaPlannerTask Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/beta/examples/Remove-MgBetaPlannerTaskAssignedToTaskBoardFormat.md b/src/Planner/beta/examples/Remove-MgBetaPlannerTaskAssignedToTaskBoardFormat.md index c741dc03385..4880a0acc1c 100644 --- a/src/Planner/beta/examples/Remove-MgBetaPlannerTaskAssignedToTaskBoardFormat.md +++ b/src/Planner/beta/examples/Remove-MgBetaPlannerTaskAssignedToTaskBoardFormat.md @@ -2,13 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Planner -$params = @{ - orderHintsByAssignee = @{ - "aaa27244-1db4-476a-a5cb-004607466324" = "8566473P 957764Jk!" - } -} - -Update-MgBetaPlannerTaskAssignedToTaskBoardFormat -PlannerTaskId $plannerTaskId -BodyParameter $params-If-Match W/"JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBAWCc=" +Get-MgBetaPlannerTaskAssignedToTaskBoardFormat -PlannerTaskId $plannerTaskId ``` This example shows how to use the Remove-MgBetaBetaPlannerTaskAssignedToTaskBoardFormat Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/beta/examples/Remove-MgBetaPlannerTaskBucketTaskBoardFormat.md b/src/Planner/beta/examples/Remove-MgBetaPlannerTaskBucketTaskBoardFormat.md index ac5195a8dae..9aa45331100 100644 --- a/src/Planner/beta/examples/Remove-MgBetaPlannerTaskBucketTaskBoardFormat.md +++ b/src/Planner/beta/examples/Remove-MgBetaPlannerTaskBucketTaskBoardFormat.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Planner -$params = @{ - orderHint = "A6673H Ejkl!" -} - -Update-MgBetaPlannerTaskBucketTaskBoardFormat -PlannerTaskId $plannerTaskId -BodyParameter $params-If-Match W/"JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBAWCc=" +Get-MgBetaPlannerTaskBucketTaskBoardFormat -PlannerTaskId $plannerTaskId ``` This example shows how to use the Remove-MgBetaBetaPlannerTaskBucketTaskBoardFormat Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/beta/examples/Remove-MgBetaPlannerTaskProgressTaskBoardFormat.md b/src/Planner/beta/examples/Remove-MgBetaPlannerTaskProgressTaskBoardFormat.md index 22b479b8f28..e54a732ef73 100644 --- a/src/Planner/beta/examples/Remove-MgBetaPlannerTaskProgressTaskBoardFormat.md +++ b/src/Planner/beta/examples/Remove-MgBetaPlannerTaskProgressTaskBoardFormat.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Planner -$params = @{ - orderHint = "A6673H Ejkl!" -} - -Update-MgBetaPlannerTaskProgressTaskBoardFormat -PlannerTaskId $plannerTaskId -BodyParameter $params-If-Match W/"JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBAWCc=" +Get-MgBetaPlannerTaskProgressTaskBoardFormat -PlannerTaskId $plannerTaskId ``` This example shows how to use the Remove-MgBetaBetaPlannerTaskProgressTaskBoardFormat Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/beta/examples/Update-MgBetaPlannerBucket.md b/src/Planner/beta/examples/Update-MgBetaPlannerBucket.md index 8ec86a9f7c4..9f4906ca448 100644 --- a/src/Planner/beta/examples/Update-MgBetaPlannerBucket.md +++ b/src/Planner/beta/examples/Update-MgBetaPlannerBucket.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Planner -$params = @{ - name = "Development" -} - -Update-MgBetaPlannerBucket -PlannerBucketId $plannerBucketId -BodyParameter $params-If-Match W/"JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBAWCc=" +Get-MgBetaPlannerBucket -PlannerBucketId $plannerBucketId ``` This example shows how to use the Update-MgBetaBetaPlannerBucket Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/beta/examples/Update-MgBetaPlannerPlan.md b/src/Planner/beta/examples/Update-MgBetaPlannerPlan.md index 06913574b1f..fdfea4fda3f 100644 --- a/src/Planner/beta/examples/Update-MgBetaPlannerPlan.md +++ b/src/Planner/beta/examples/Update-MgBetaPlannerPlan.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Planner -$params = @{ - title = "title-value" -} - -Update-MgBetaPlannerPlan -PlannerPlanId $plannerPlanId -BodyParameter $params +Get-MgBetaPlannerPlan -PlannerPlanId $plannerPlanId ``` This example shows how to use the Update-MgBetaBetaPlannerPlan Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/beta/examples/Update-MgBetaPlannerTask.md b/src/Planner/beta/examples/Update-MgBetaPlannerTask.md index 12478cda0d1..b46b99e224a 100644 --- a/src/Planner/beta/examples/Update-MgBetaPlannerTask.md +++ b/src/Planner/beta/examples/Update-MgBetaPlannerTask.md @@ -2,20 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Planner -$params = @{ - assignments = @{ - "fbab97d0-4932-4511-b675-204639209557" = @{ - "@odata.type" = "#microsoft.graph.plannerAssignment" - orderHint = "N9917 U2883!" - } - } - appliedCategories = @{ - category3 = $true - category4 = $false - } -} - -Update-MgBetaPlannerTask -PlannerTaskId $plannerTaskId -BodyParameter $params-If-Match W/"JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBAWCc=" +Get-MgBetaPlannerTask -PlannerTaskId $plannerTaskId ``` This example shows how to use the Update-MgBetaBetaPlannerTask Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/beta/examples/Update-MgBetaPlannerTaskAssignedToTaskBoardFormat.md b/src/Planner/beta/examples/Update-MgBetaPlannerTaskAssignedToTaskBoardFormat.md index f6689caf3c5..93c31b7b199 100644 --- a/src/Planner/beta/examples/Update-MgBetaPlannerTaskAssignedToTaskBoardFormat.md +++ b/src/Planner/beta/examples/Update-MgBetaPlannerTaskAssignedToTaskBoardFormat.md @@ -2,13 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Planner -$params = @{ - orderHintsByAssignee = @{ - "aaa27244-1db4-476a-a5cb-004607466324" = "8566473P 957764Jk!" - } -} - -Update-MgBetaPlannerTaskAssignedToTaskBoardFormat -PlannerTaskId $plannerTaskId -BodyParameter $params-If-Match W/"JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBAWCc=" +Get-MgBetaPlannerTaskAssignedToTaskBoardFormat -PlannerTaskId $plannerTaskId ``` This example shows how to use the Update-MgBetaBetaPlannerTaskAssignedToTaskBoardFormat Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/beta/examples/Update-MgBetaPlannerTaskBucketTaskBoardFormat.md b/src/Planner/beta/examples/Update-MgBetaPlannerTaskBucketTaskBoardFormat.md index 783e80c6d13..4af4de61899 100644 --- a/src/Planner/beta/examples/Update-MgBetaPlannerTaskBucketTaskBoardFormat.md +++ b/src/Planner/beta/examples/Update-MgBetaPlannerTaskBucketTaskBoardFormat.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Planner -$params = @{ - orderHint = "A6673H Ejkl!" -} - -Update-MgBetaPlannerTaskBucketTaskBoardFormat -PlannerTaskId $plannerTaskId -BodyParameter $params-If-Match W/"JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBAWCc=" +Get-MgBetaPlannerTaskBucketTaskBoardFormat -PlannerTaskId $plannerTaskId ``` This example shows how to use the Update-MgBetaBetaPlannerTaskBucketTaskBoardFormat Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/beta/examples/Update-MgBetaPlannerTaskDetail.md b/src/Planner/beta/examples/Update-MgBetaPlannerTaskDetail.md index bc0f118943b..d55790c7b6b 100644 --- a/src/Planner/beta/examples/Update-MgBetaPlannerTaskDetail.md +++ b/src/Planner/beta/examples/Update-MgBetaPlannerTaskDetail.md @@ -2,36 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Planner -$params = @{ - previewType = "noPreview" - references = @{ - "http%3A//developer%2Emicrosoft%2Ecom" = @{ - "@odata.type" = "microsoft.graph.plannerExternalReference" - alias = "Documentation" - previewPriority = " !" - type = "Other" - } - "https%3A//developer%2Emicrosoft%2Ecom/en-us/graph/graph-explorer" = @{ - "@odata.type" = "microsoft.graph.plannerExternalReference" - previewPriority = " !!" - } - "http%3A//www%2Ebing%2Ecom" = $null - } - checklist = @{ - "95e27074-6c4a-447a-aa24-9d718a0b86fa" = @{ - "@odata.type" = "microsoft.graph.plannerChecklistItem" - title = "Update task details" - isChecked = $true - } - "d280ed1a-9f6b-4f9c-a962-fb4d00dc50ff" = @{ - "@odata.type" = "microsoft.graph.plannerChecklistItem" - isChecked = $true - } - "a93c93c5-10a6-4167-9551-8bafa09967a7" = $null - } -} - -Update-MgBetaPlannerTaskDetail -PlannerTaskId $plannerTaskId -BodyParameter $params-If-Match W/"JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBAWCc=" +Get-MgBetaPlannerTaskDetail -PlannerTaskId $plannerTaskId ``` This example shows how to use the Update-MgBetaBetaPlannerTaskDetail Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/beta/examples/Update-MgBetaPlannerTaskProgressTaskBoardFormat.md b/src/Planner/beta/examples/Update-MgBetaPlannerTaskProgressTaskBoardFormat.md index 2140a7df388..77e03a7c840 100644 --- a/src/Planner/beta/examples/Update-MgBetaPlannerTaskProgressTaskBoardFormat.md +++ b/src/Planner/beta/examples/Update-MgBetaPlannerTaskProgressTaskBoardFormat.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Planner -$params = @{ - orderHint = "A6673H Ejkl!" -} - -Update-MgBetaPlannerTaskProgressTaskBoardFormat -PlannerTaskId $plannerTaskId -BodyParameter $params-If-Match W/"JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBAWCc=" +Get-MgBetaPlannerTaskProgressTaskBoardFormat -PlannerTaskId $plannerTaskId ``` This example shows how to use the Update-MgBetaBetaPlannerTaskProgressTaskBoardFormat Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/v1.0/examples/Get-MgPlannerBucket.md b/src/Planner/v1.0/examples/Get-MgPlannerBucket.md index e8cbf6b7149..b224608c70c 100644 --- a/src/Planner/v1.0/examples/Get-MgPlannerBucket.md +++ b/src/Planner/v1.0/examples/Get-MgPlannerBucket.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Planner -$params = @{ - name = "Development" -} - -Update-MgPlannerBucket -PlannerBucketId $plannerBucketId -BodyParameter $params-If-Match W/"JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBAWCc=" +Get-MgPlannerBucket -PlannerBucketId $plannerBucketId ``` This example shows how to use the Get-MgPlannerBucket Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/v1.0/examples/Get-MgPlannerPlan.md b/src/Planner/v1.0/examples/Get-MgPlannerPlan.md index 90c387f0738..2637cd1661e 100644 --- a/src/Planner/v1.0/examples/Get-MgPlannerPlan.md +++ b/src/Planner/v1.0/examples/Get-MgPlannerPlan.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Planner -$params = @{ - title = "title-value" -} - -Update-MgPlannerPlan -PlannerPlanId $plannerPlanId -BodyParameter $params +Get-MgPlannerPlan -PlannerPlanId $plannerPlanId ``` This example shows how to use the Get-MgPlannerPlan Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/v1.0/examples/Get-MgPlannerPlanDetail.md b/src/Planner/v1.0/examples/Get-MgPlannerPlanDetail.md index f6c6949389e..7a9b647ef3b 100644 --- a/src/Planner/v1.0/examples/Get-MgPlannerPlanDetail.md +++ b/src/Planner/v1.0/examples/Get-MgPlannerPlanDetail.md @@ -1,17 +1,9 @@ -### Example 1: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Planner -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +Get-MgPlannerPlanDetail -PlannerPlanId $plannerPlanId +``` +This example shows how to use the Get-MgPlannerPlanDetail Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Planner/v1.0/examples/Get-MgPlannerTask.md b/src/Planner/v1.0/examples/Get-MgPlannerTask.md index 1c0bfa74700..b9a651abb07 100644 --- a/src/Planner/v1.0/examples/Get-MgPlannerTask.md +++ b/src/Planner/v1.0/examples/Get-MgPlannerTask.md @@ -2,20 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Planner -$params = @{ - assignments = @{ - "fbab97d0-4932-4511-b675-204639209557" = @{ - "@odata.type" = "#microsoft.graph.plannerAssignment" - orderHint = "N9917 U2883!" - } - } - appliedCategories = @{ - category3 = $true - category4 = $false - } -} - -Update-MgPlannerTask -PlannerTaskId $plannerTaskId -BodyParameter $params-If-Match W/"JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBAWCc=" +Get-MgPlannerTask -PlannerTaskId $plannerTaskId ``` This example shows how to use the Get-MgPlannerTask Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/v1.0/examples/Get-MgPlannerTaskAssignedToTaskBoardFormat.md b/src/Planner/v1.0/examples/Get-MgPlannerTaskAssignedToTaskBoardFormat.md index a891d80c95f..9fc43149905 100644 --- a/src/Planner/v1.0/examples/Get-MgPlannerTaskAssignedToTaskBoardFormat.md +++ b/src/Planner/v1.0/examples/Get-MgPlannerTaskAssignedToTaskBoardFormat.md @@ -2,13 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Planner -$params = @{ - orderHintsByAssignee = @{ - "aaa27244-1db4-476a-a5cb-004607466324" = "8566473P 957764Jk!" - } -} - -Update-MgPlannerTaskAssignedToTaskBoardFormat -PlannerTaskId $plannerTaskId -BodyParameter $params-If-Match W/"JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBAWCc=" +Get-MgPlannerTaskAssignedToTaskBoardFormat -PlannerTaskId $plannerTaskId ``` This example shows how to use the Get-MgPlannerTaskAssignedToTaskBoardFormat Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/v1.0/examples/Get-MgPlannerTaskBucketTaskBoardFormat.md b/src/Planner/v1.0/examples/Get-MgPlannerTaskBucketTaskBoardFormat.md index 8b564d50d20..081cb39391a 100644 --- a/src/Planner/v1.0/examples/Get-MgPlannerTaskBucketTaskBoardFormat.md +++ b/src/Planner/v1.0/examples/Get-MgPlannerTaskBucketTaskBoardFormat.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Planner -$params = @{ - orderHint = "A6673H Ejkl!" -} - -Update-MgPlannerTaskBucketTaskBoardFormat -PlannerTaskId $plannerTaskId -BodyParameter $params-If-Match W/"JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBAWCc=" +Get-MgPlannerTaskBucketTaskBoardFormat -PlannerTaskId $plannerTaskId ``` This example shows how to use the Get-MgPlannerTaskBucketTaskBoardFormat Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/v1.0/examples/Get-MgPlannerTaskDetail.md b/src/Planner/v1.0/examples/Get-MgPlannerTaskDetail.md index 7b66c8f7e9a..9fa03a7205d 100644 --- a/src/Planner/v1.0/examples/Get-MgPlannerTaskDetail.md +++ b/src/Planner/v1.0/examples/Get-MgPlannerTaskDetail.md @@ -2,36 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Planner -$params = @{ - previewType = "noPreview" - references = @{ - "http%3A//developer%2Emicrosoft%2Ecom" = @{ - "@odata.type" = "microsoft.graph.plannerExternalReference" - alias = "Documentation" - previewPriority = " !" - type = "Other" - } - "https%3A//developer%2Emicrosoft%2Ecom/en-us/graph/graph-explorer" = @{ - "@odata.type" = "microsoft.graph.plannerExternalReference" - previewPriority = " !!" - } - "http%3A//www%2Ebing%2Ecom" = $null - } - checklist = @{ - "95e27074-6c4a-447a-aa24-9d718a0b86fa" = @{ - "@odata.type" = "microsoft.graph.plannerChecklistItem" - title = "Update task details" - isChecked = $true - } - "d280ed1a-9f6b-4f9c-a962-fb4d00dc50ff" = @{ - "@odata.type" = "microsoft.graph.plannerChecklistItem" - isChecked = $true - } - "a93c93c5-10a6-4167-9551-8bafa09967a7" = $null - } -} - -Update-MgPlannerTaskDetail -PlannerTaskId $plannerTaskId -BodyParameter $params-If-Match W/"JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBAWCc=" +Get-MgPlannerTaskDetail -PlannerTaskId $plannerTaskId ``` This example shows how to use the Get-MgPlannerTaskDetail Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/v1.0/examples/Get-MgPlannerTaskProgressTaskBoardFormat.md b/src/Planner/v1.0/examples/Get-MgPlannerTaskProgressTaskBoardFormat.md index 9aff730daea..bb88424dd2d 100644 --- a/src/Planner/v1.0/examples/Get-MgPlannerTaskProgressTaskBoardFormat.md +++ b/src/Planner/v1.0/examples/Get-MgPlannerTaskProgressTaskBoardFormat.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Planner -$params = @{ - orderHint = "A6673H Ejkl!" -} - -Update-MgPlannerTaskProgressTaskBoardFormat -PlannerTaskId $plannerTaskId -BodyParameter $params-If-Match W/"JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBAWCc=" +Get-MgPlannerTaskProgressTaskBoardFormat -PlannerTaskId $plannerTaskId ``` This example shows how to use the Get-MgPlannerTaskProgressTaskBoardFormat Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/v1.0/examples/Remove-MgPlannerBucket.md b/src/Planner/v1.0/examples/Remove-MgPlannerBucket.md index e889e25f665..5ddf73df630 100644 --- a/src/Planner/v1.0/examples/Remove-MgPlannerBucket.md +++ b/src/Planner/v1.0/examples/Remove-MgPlannerBucket.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Planner -$params = @{ - name = "Development" -} - -Update-MgPlannerBucket -PlannerBucketId $plannerBucketId -BodyParameter $params-If-Match W/"JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBAWCc=" +Get-MgPlannerBucket -PlannerBucketId $plannerBucketId ``` This example shows how to use the Remove-MgPlannerBucket Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/v1.0/examples/Remove-MgPlannerPlan.md b/src/Planner/v1.0/examples/Remove-MgPlannerPlan.md index a382246b442..35bdc01670c 100644 --- a/src/Planner/v1.0/examples/Remove-MgPlannerPlan.md +++ b/src/Planner/v1.0/examples/Remove-MgPlannerPlan.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Planner -$params = @{ - title = "title-value" -} - -Update-MgPlannerPlan -PlannerPlanId $plannerPlanId -BodyParameter $params +Get-MgPlannerPlan -PlannerPlanId $plannerPlanId ``` This example shows how to use the Remove-MgPlannerPlan Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/v1.0/examples/Remove-MgPlannerTask.md b/src/Planner/v1.0/examples/Remove-MgPlannerTask.md index 3d2193e49db..b18412d5c23 100644 --- a/src/Planner/v1.0/examples/Remove-MgPlannerTask.md +++ b/src/Planner/v1.0/examples/Remove-MgPlannerTask.md @@ -2,20 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Planner -$params = @{ - assignments = @{ - "fbab97d0-4932-4511-b675-204639209557" = @{ - "@odata.type" = "#microsoft.graph.plannerAssignment" - orderHint = "N9917 U2883!" - } - } - appliedCategories = @{ - category3 = $true - category4 = $false - } -} - -Update-MgPlannerTask -PlannerTaskId $plannerTaskId -BodyParameter $params-If-Match W/"JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBAWCc=" +Get-MgPlannerTask -PlannerTaskId $plannerTaskId ``` This example shows how to use the Remove-MgPlannerTask Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/v1.0/examples/Remove-MgPlannerTaskAssignedToTaskBoardFormat.md b/src/Planner/v1.0/examples/Remove-MgPlannerTaskAssignedToTaskBoardFormat.md index cb79182003d..4078fbacfce 100644 --- a/src/Planner/v1.0/examples/Remove-MgPlannerTaskAssignedToTaskBoardFormat.md +++ b/src/Planner/v1.0/examples/Remove-MgPlannerTaskAssignedToTaskBoardFormat.md @@ -2,13 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Planner -$params = @{ - orderHintsByAssignee = @{ - "aaa27244-1db4-476a-a5cb-004607466324" = "8566473P 957764Jk!" - } -} - -Update-MgPlannerTaskAssignedToTaskBoardFormat -PlannerTaskId $plannerTaskId -BodyParameter $params-If-Match W/"JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBAWCc=" +Get-MgPlannerTaskAssignedToTaskBoardFormat -PlannerTaskId $plannerTaskId ``` This example shows how to use the Remove-MgPlannerTaskAssignedToTaskBoardFormat Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/v1.0/examples/Remove-MgPlannerTaskBucketTaskBoardFormat.md b/src/Planner/v1.0/examples/Remove-MgPlannerTaskBucketTaskBoardFormat.md index cc6d00fde9e..8fa8b0522b4 100644 --- a/src/Planner/v1.0/examples/Remove-MgPlannerTaskBucketTaskBoardFormat.md +++ b/src/Planner/v1.0/examples/Remove-MgPlannerTaskBucketTaskBoardFormat.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Planner -$params = @{ - orderHint = "A6673H Ejkl!" -} - -Update-MgPlannerTaskBucketTaskBoardFormat -PlannerTaskId $plannerTaskId -BodyParameter $params-If-Match W/"JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBAWCc=" +Get-MgPlannerTaskBucketTaskBoardFormat -PlannerTaskId $plannerTaskId ``` This example shows how to use the Remove-MgPlannerTaskBucketTaskBoardFormat Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/v1.0/examples/Remove-MgPlannerTaskProgressTaskBoardFormat.md b/src/Planner/v1.0/examples/Remove-MgPlannerTaskProgressTaskBoardFormat.md index f08be2a64e1..1df2535b34b 100644 --- a/src/Planner/v1.0/examples/Remove-MgPlannerTaskProgressTaskBoardFormat.md +++ b/src/Planner/v1.0/examples/Remove-MgPlannerTaskProgressTaskBoardFormat.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Planner -$params = @{ - orderHint = "A6673H Ejkl!" -} - -Update-MgPlannerTaskProgressTaskBoardFormat -PlannerTaskId $plannerTaskId -BodyParameter $params-If-Match W/"JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBAWCc=" +Get-MgPlannerTaskProgressTaskBoardFormat -PlannerTaskId $plannerTaskId ``` This example shows how to use the Remove-MgPlannerTaskProgressTaskBoardFormat Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/v1.0/examples/Update-MgPlannerBucket.md b/src/Planner/v1.0/examples/Update-MgPlannerBucket.md index 82348decf75..919c077f581 100644 --- a/src/Planner/v1.0/examples/Update-MgPlannerBucket.md +++ b/src/Planner/v1.0/examples/Update-MgPlannerBucket.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Planner -$params = @{ - name = "Development" -} - -Update-MgPlannerBucket -PlannerBucketId $plannerBucketId -BodyParameter $params-If-Match W/"JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBAWCc=" +Get-MgPlannerBucket -PlannerBucketId $plannerBucketId ``` This example shows how to use the Update-MgPlannerBucket Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/v1.0/examples/Update-MgPlannerPlan.md b/src/Planner/v1.0/examples/Update-MgPlannerPlan.md index d6b9e47d5ae..2ecfa480198 100644 --- a/src/Planner/v1.0/examples/Update-MgPlannerPlan.md +++ b/src/Planner/v1.0/examples/Update-MgPlannerPlan.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Planner -$params = @{ - title = "title-value" -} - -Update-MgPlannerPlan -PlannerPlanId $plannerPlanId -BodyParameter $params +Get-MgPlannerPlan -PlannerPlanId $plannerPlanId ``` This example shows how to use the Update-MgPlannerPlan Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/v1.0/examples/Update-MgPlannerTask.md b/src/Planner/v1.0/examples/Update-MgPlannerTask.md index c634a5b2a5e..8633271b8d6 100644 --- a/src/Planner/v1.0/examples/Update-MgPlannerTask.md +++ b/src/Planner/v1.0/examples/Update-MgPlannerTask.md @@ -2,20 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Planner -$params = @{ - assignments = @{ - "fbab97d0-4932-4511-b675-204639209557" = @{ - "@odata.type" = "#microsoft.graph.plannerAssignment" - orderHint = "N9917 U2883!" - } - } - appliedCategories = @{ - category3 = $true - category4 = $false - } -} - -Update-MgPlannerTask -PlannerTaskId $plannerTaskId -BodyParameter $params-If-Match W/"JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBAWCc=" +Get-MgPlannerTask -PlannerTaskId $plannerTaskId ``` This example shows how to use the Update-MgPlannerTask Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/v1.0/examples/Update-MgPlannerTaskAssignedToTaskBoardFormat.md b/src/Planner/v1.0/examples/Update-MgPlannerTaskAssignedToTaskBoardFormat.md index f82fe82feb4..4d117576a1a 100644 --- a/src/Planner/v1.0/examples/Update-MgPlannerTaskAssignedToTaskBoardFormat.md +++ b/src/Planner/v1.0/examples/Update-MgPlannerTaskAssignedToTaskBoardFormat.md @@ -2,13 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Planner -$params = @{ - orderHintsByAssignee = @{ - "aaa27244-1db4-476a-a5cb-004607466324" = "8566473P 957764Jk!" - } -} - -Update-MgPlannerTaskAssignedToTaskBoardFormat -PlannerTaskId $plannerTaskId -BodyParameter $params-If-Match W/"JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBAWCc=" +Get-MgPlannerTaskAssignedToTaskBoardFormat -PlannerTaskId $plannerTaskId ``` This example shows how to use the Update-MgPlannerTaskAssignedToTaskBoardFormat Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/v1.0/examples/Update-MgPlannerTaskBucketTaskBoardFormat.md b/src/Planner/v1.0/examples/Update-MgPlannerTaskBucketTaskBoardFormat.md index 5a1f6730c3d..96242b4ee31 100644 --- a/src/Planner/v1.0/examples/Update-MgPlannerTaskBucketTaskBoardFormat.md +++ b/src/Planner/v1.0/examples/Update-MgPlannerTaskBucketTaskBoardFormat.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Planner -$params = @{ - orderHint = "A6673H Ejkl!" -} - -Update-MgPlannerTaskBucketTaskBoardFormat -PlannerTaskId $plannerTaskId -BodyParameter $params-If-Match W/"JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBAWCc=" +Get-MgPlannerTaskBucketTaskBoardFormat -PlannerTaskId $plannerTaskId ``` This example shows how to use the Update-MgPlannerTaskBucketTaskBoardFormat Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/v1.0/examples/Update-MgPlannerTaskDetail.md b/src/Planner/v1.0/examples/Update-MgPlannerTaskDetail.md index e62c5bed6e1..292d8b37cc1 100644 --- a/src/Planner/v1.0/examples/Update-MgPlannerTaskDetail.md +++ b/src/Planner/v1.0/examples/Update-MgPlannerTaskDetail.md @@ -2,36 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Planner -$params = @{ - previewType = "noPreview" - references = @{ - "http%3A//developer%2Emicrosoft%2Ecom" = @{ - "@odata.type" = "microsoft.graph.plannerExternalReference" - alias = "Documentation" - previewPriority = " !" - type = "Other" - } - "https%3A//developer%2Emicrosoft%2Ecom/en-us/graph/graph-explorer" = @{ - "@odata.type" = "microsoft.graph.plannerExternalReference" - previewPriority = " !!" - } - "http%3A//www%2Ebing%2Ecom" = $null - } - checklist = @{ - "95e27074-6c4a-447a-aa24-9d718a0b86fa" = @{ - "@odata.type" = "microsoft.graph.plannerChecklistItem" - title = "Update task details" - isChecked = $true - } - "d280ed1a-9f6b-4f9c-a962-fb4d00dc50ff" = @{ - "@odata.type" = "microsoft.graph.plannerChecklistItem" - isChecked = $true - } - "a93c93c5-10a6-4167-9551-8bafa09967a7" = $null - } -} - -Update-MgPlannerTaskDetail -PlannerTaskId $plannerTaskId -BodyParameter $params-If-Match W/"JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBAWCc=" +Get-MgPlannerTaskDetail -PlannerTaskId $plannerTaskId ``` This example shows how to use the Update-MgPlannerTaskDetail Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/v1.0/examples/Update-MgPlannerTaskProgressTaskBoardFormat.md b/src/Planner/v1.0/examples/Update-MgPlannerTaskProgressTaskBoardFormat.md index 843d128ba10..06ee93b641d 100644 --- a/src/Planner/v1.0/examples/Update-MgPlannerTaskProgressTaskBoardFormat.md +++ b/src/Planner/v1.0/examples/Update-MgPlannerTaskProgressTaskBoardFormat.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Planner -$params = @{ - orderHint = "A6673H Ejkl!" -} - -Update-MgPlannerTaskProgressTaskBoardFormat -PlannerTaskId $plannerTaskId -BodyParameter $params-If-Match W/"JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBAWCc=" +Get-MgPlannerTaskProgressTaskBoardFormat -PlannerTaskId $plannerTaskId ``` This example shows how to use the Update-MgPlannerTaskProgressTaskBoardFormat Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/SchemaExtensions/beta/examples/Get-MgBetaSchemaExtension.md b/src/SchemaExtensions/beta/examples/Get-MgBetaSchemaExtension.md index fdfc750d1fe..049c237b99b 100644 --- a/src/SchemaExtensions/beta/examples/Get-MgBetaSchemaExtension.md +++ b/src/SchemaExtensions/beta/examples/Get-MgBetaSchemaExtension.md @@ -2,29 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.SchemaExtensions -$params = @{ - owner = "ef4cb9a8-97c3-4ca7-854b-5cb5ced376fa" - properties = @( - @{ - name = "courseId" - type = "Integer" - } - @{ - name = "courseName" - type = "String" - } - @{ - name = "courseType" - type = "String" - } - @{ - name = "courseSupervisors" - type = "String" - } - ) -} - -Update-MgBetaSchemaExtension -SchemaExtensionId $schemaExtensionId -BodyParameter $params +Get-MgBetaSchemaExtension -SchemaExtensionId $schemaExtensionId ``` This example shows how to use the Get-MgBetaBetaSchemaExtension Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/SchemaExtensions/beta/examples/Remove-MgBetaSchemaExtension.md b/src/SchemaExtensions/beta/examples/Remove-MgBetaSchemaExtension.md index 7460bce0a07..1ce18126a41 100644 --- a/src/SchemaExtensions/beta/examples/Remove-MgBetaSchemaExtension.md +++ b/src/SchemaExtensions/beta/examples/Remove-MgBetaSchemaExtension.md @@ -2,29 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.SchemaExtensions -$params = @{ - owner = "ef4cb9a8-97c3-4ca7-854b-5cb5ced376fa" - properties = @( - @{ - name = "courseId" - type = "Integer" - } - @{ - name = "courseName" - type = "String" - } - @{ - name = "courseType" - type = "String" - } - @{ - name = "courseSupervisors" - type = "String" - } - ) -} - -Update-MgBetaSchemaExtension -SchemaExtensionId $schemaExtensionId -BodyParameter $params +Get-MgBetaSchemaExtension -SchemaExtensionId $schemaExtensionId ``` This example shows how to use the Remove-MgBetaBetaSchemaExtension Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/SchemaExtensions/beta/examples/Update-MgBetaSchemaExtension.md b/src/SchemaExtensions/beta/examples/Update-MgBetaSchemaExtension.md index 95e7b005bda..ca12a4ba6f6 100644 --- a/src/SchemaExtensions/beta/examples/Update-MgBetaSchemaExtension.md +++ b/src/SchemaExtensions/beta/examples/Update-MgBetaSchemaExtension.md @@ -2,29 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.SchemaExtensions -$params = @{ - owner = "ef4cb9a8-97c3-4ca7-854b-5cb5ced376fa" - properties = @( - @{ - name = "courseId" - type = "Integer" - } - @{ - name = "courseName" - type = "String" - } - @{ - name = "courseType" - type = "String" - } - @{ - name = "courseSupervisors" - type = "String" - } - ) -} - -Update-MgBetaSchemaExtension -SchemaExtensionId $schemaExtensionId -BodyParameter $params +Get-MgBetaSchemaExtension -SchemaExtensionId $schemaExtensionId ``` This example shows how to use the Update-MgBetaBetaSchemaExtension Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/SchemaExtensions/v1.0/examples/Get-MgSchemaExtension.md b/src/SchemaExtensions/v1.0/examples/Get-MgSchemaExtension.md index 611fd1a87a7..b40fa380b9e 100644 --- a/src/SchemaExtensions/v1.0/examples/Get-MgSchemaExtension.md +++ b/src/SchemaExtensions/v1.0/examples/Get-MgSchemaExtension.md @@ -2,29 +2,7 @@ ```powershell Import-Module Microsoft.Graph.SchemaExtensions -$params = @{ - owner = "ef4cb9a8-97c3-4ca7-854b-5cb5ced376fa" - properties = @( - @{ - name = "courseId" - type = "Integer" - } - @{ - name = "courseName" - type = "String" - } - @{ - name = "courseType" - type = "String" - } - @{ - name = "courseSupervisors" - type = "String" - } - ) -} - -Update-MgSchemaExtension -SchemaExtensionId $schemaExtensionId -BodyParameter $params +Get-MgSchemaExtension -SchemaExtensionId $schemaExtensionId ``` This example shows how to use the Get-MgSchemaExtension Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/SchemaExtensions/v1.0/examples/Remove-MgSchemaExtension.md b/src/SchemaExtensions/v1.0/examples/Remove-MgSchemaExtension.md index a8d472e2e87..de6de239556 100644 --- a/src/SchemaExtensions/v1.0/examples/Remove-MgSchemaExtension.md +++ b/src/SchemaExtensions/v1.0/examples/Remove-MgSchemaExtension.md @@ -2,29 +2,7 @@ ```powershell Import-Module Microsoft.Graph.SchemaExtensions -$params = @{ - owner = "ef4cb9a8-97c3-4ca7-854b-5cb5ced376fa" - properties = @( - @{ - name = "courseId" - type = "Integer" - } - @{ - name = "courseName" - type = "String" - } - @{ - name = "courseType" - type = "String" - } - @{ - name = "courseSupervisors" - type = "String" - } - ) -} - -Update-MgSchemaExtension -SchemaExtensionId $schemaExtensionId -BodyParameter $params +Get-MgSchemaExtension -SchemaExtensionId $schemaExtensionId ``` This example shows how to use the Remove-MgSchemaExtension Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/SchemaExtensions/v1.0/examples/Update-MgSchemaExtension.md b/src/SchemaExtensions/v1.0/examples/Update-MgSchemaExtension.md index b580c68686f..4fd9555b32c 100644 --- a/src/SchemaExtensions/v1.0/examples/Update-MgSchemaExtension.md +++ b/src/SchemaExtensions/v1.0/examples/Update-MgSchemaExtension.md @@ -2,29 +2,7 @@ ```powershell Import-Module Microsoft.Graph.SchemaExtensions -$params = @{ - owner = "ef4cb9a8-97c3-4ca7-854b-5cb5ced376fa" - properties = @( - @{ - name = "courseId" - type = "Integer" - } - @{ - name = "courseName" - type = "String" - } - @{ - name = "courseType" - type = "String" - } - @{ - name = "courseSupervisors" - type = "String" - } - ) -} - -Update-MgSchemaExtension -SchemaExtensionId $schemaExtensionId -BodyParameter $params +Get-MgSchemaExtension -SchemaExtensionId $schemaExtensionId ``` This example shows how to use the Update-MgSchemaExtension Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Search/beta/examples/Get-MgBetaExternalConnection.md b/src/Search/beta/examples/Get-MgBetaExternalConnection.md index 147bb86c432..32ad77de0be 100644 --- a/src/Search/beta/examples/Get-MgBetaExternalConnection.md +++ b/src/Search/beta/examples/Get-MgBetaExternalConnection.md @@ -2,12 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Search -$params = @{ - name = "Contoso HR Service Tickets" - description = "Connection to index HR service tickets" -} - -Update-MgBetaExternalConnection -ExternalConnectionId $externalConnectionId -BodyParameter $params +Get-MgBetaExternalConnection -ExternalConnectionId $externalConnectionId ``` This example shows how to use the Get-MgBetaBetaExternalConnection Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Search/beta/examples/Get-MgBetaExternalConnectionGroup.md b/src/Search/beta/examples/Get-MgBetaExternalConnectionGroup.md index a9706a33358..468e0d691d9 100644 --- a/src/Search/beta/examples/Get-MgBetaExternalConnectionGroup.md +++ b/src/Search/beta/examples/Get-MgBetaExternalConnectionGroup.md @@ -2,12 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Search -$params = @{ - displayName = "Contoso Marketing" - description = "The product marketing team" -} - -Update-MgBetaExternalConnectionGroup -ExternalConnectionId $externalConnectionId -ExternalGroupId $externalGroupId -BodyParameter $params +Get-MgBetaExternalConnectionGroup -ExternalConnectionId $externalConnectionId -ExternalGroupId $externalGroupId ``` This example shows how to use the Get-MgBetaBetaExternalConnectionGroup Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Search/beta/examples/Remove-MgBetaExternalConnection.md b/src/Search/beta/examples/Remove-MgBetaExternalConnection.md index 8771aa09765..a33adcf96fb 100644 --- a/src/Search/beta/examples/Remove-MgBetaExternalConnection.md +++ b/src/Search/beta/examples/Remove-MgBetaExternalConnection.md @@ -2,12 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Search -$params = @{ - name = "Contoso HR Service Tickets" - description = "Connection to index HR service tickets" -} - -Update-MgBetaExternalConnection -ExternalConnectionId $externalConnectionId -BodyParameter $params +Get-MgBetaExternalConnection -ExternalConnectionId $externalConnectionId ``` This example shows how to use the Remove-MgBetaBetaExternalConnection Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Search/beta/examples/Remove-MgBetaExternalConnectionGroup.md b/src/Search/beta/examples/Remove-MgBetaExternalConnectionGroup.md index c88217da485..3cab9aa447e 100644 --- a/src/Search/beta/examples/Remove-MgBetaExternalConnectionGroup.md +++ b/src/Search/beta/examples/Remove-MgBetaExternalConnectionGroup.md @@ -2,12 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Search -$params = @{ - displayName = "Contoso Marketing" - description = "The product marketing team" -} - -Update-MgBetaExternalConnectionGroup -ExternalConnectionId $externalConnectionId -ExternalGroupId $externalGroupId -BodyParameter $params +Get-MgBetaExternalConnectionGroup -ExternalConnectionId $externalConnectionId -ExternalGroupId $externalGroupId ``` This example shows how to use the Remove-MgBetaBetaExternalConnectionGroup Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Search/beta/examples/Update-MgBetaExternalConnection.md b/src/Search/beta/examples/Update-MgBetaExternalConnection.md index b80bfd1b661..592c44d3fab 100644 --- a/src/Search/beta/examples/Update-MgBetaExternalConnection.md +++ b/src/Search/beta/examples/Update-MgBetaExternalConnection.md @@ -2,12 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Search -$params = @{ - name = "Contoso HR Service Tickets" - description = "Connection to index HR service tickets" -} - -Update-MgBetaExternalConnection -ExternalConnectionId $externalConnectionId -BodyParameter $params +Get-MgBetaExternalConnection -ExternalConnectionId $externalConnectionId ``` This example shows how to use the Update-MgBetaBetaExternalConnection Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Search/v1.0/examples/Get-MgExternalConnection.md b/src/Search/v1.0/examples/Get-MgExternalConnection.md index 38fca1d07cf..f558b471e2d 100644 --- a/src/Search/v1.0/examples/Get-MgExternalConnection.md +++ b/src/Search/v1.0/examples/Get-MgExternalConnection.md @@ -2,12 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Search -$params = @{ - name = "Contoso HR Service Tickets" - description = "Connection to index HR service tickets" -} - -Update-MgExternalConnection -ExternalConnectionId $externalConnectionId -BodyParameter $params +Get-MgExternalConnection -ExternalConnectionId $externalConnectionId ``` This example shows how to use the Get-MgExternalConnection Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Search/v1.0/examples/Get-MgExternalConnectionGroup.md b/src/Search/v1.0/examples/Get-MgExternalConnectionGroup.md index 8a41e5004a3..04ba189363c 100644 --- a/src/Search/v1.0/examples/Get-MgExternalConnectionGroup.md +++ b/src/Search/v1.0/examples/Get-MgExternalConnectionGroup.md @@ -2,12 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Search -$params = @{ - displayName = "Contoso Marketing" - description = "The product marketing team" -} - -Update-MgExternalConnectionGroup -ExternalConnectionId $externalConnectionId -ExternalGroupId $externalGroupId -BodyParameter $params +Get-MgExternalConnectionGroup -ExternalConnectionId $externalConnectionId -ExternalGroupId $externalGroupId ``` This example shows how to use the Get-MgExternalConnectionGroup Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Search/v1.0/examples/Remove-MgExternalConnection.md b/src/Search/v1.0/examples/Remove-MgExternalConnection.md index b2fec752160..186a61ad6f6 100644 --- a/src/Search/v1.0/examples/Remove-MgExternalConnection.md +++ b/src/Search/v1.0/examples/Remove-MgExternalConnection.md @@ -2,12 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Search -$params = @{ - name = "Contoso HR Service Tickets" - description = "Connection to index HR service tickets" -} - -Update-MgExternalConnection -ExternalConnectionId $externalConnectionId -BodyParameter $params +Get-MgExternalConnection -ExternalConnectionId $externalConnectionId ``` This example shows how to use the Remove-MgExternalConnection Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Search/v1.0/examples/Remove-MgExternalConnectionGroup.md b/src/Search/v1.0/examples/Remove-MgExternalConnectionGroup.md index 2e3c5b5b204..26f4e759467 100644 --- a/src/Search/v1.0/examples/Remove-MgExternalConnectionGroup.md +++ b/src/Search/v1.0/examples/Remove-MgExternalConnectionGroup.md @@ -2,12 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Search -$params = @{ - displayName = "Contoso Marketing" - description = "The product marketing team" -} - -Update-MgExternalConnectionGroup -ExternalConnectionId $externalConnectionId -ExternalGroupId $externalGroupId -BodyParameter $params +Get-MgExternalConnectionGroup -ExternalConnectionId $externalConnectionId -ExternalGroupId $externalGroupId ``` This example shows how to use the Remove-MgExternalConnectionGroup Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Search/v1.0/examples/Update-MgExternalConnection.md b/src/Search/v1.0/examples/Update-MgExternalConnection.md index 2acede6c76d..0291a31f1cd 100644 --- a/src/Search/v1.0/examples/Update-MgExternalConnection.md +++ b/src/Search/v1.0/examples/Update-MgExternalConnection.md @@ -2,12 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Search -$params = @{ - name = "Contoso HR Service Tickets" - description = "Connection to index HR service tickets" -} - -Update-MgExternalConnection -ExternalConnectionId $externalConnectionId -BodyParameter $params +Get-MgExternalConnection -ExternalConnectionId $externalConnectionId ``` This example shows how to use the Update-MgExternalConnection Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Search/v1.0/examples/Update-MgExternalConnectionGroup.md b/src/Search/v1.0/examples/Update-MgExternalConnectionGroup.md index 326cba25175..0b131a0e251 100644 --- a/src/Search/v1.0/examples/Update-MgExternalConnectionGroup.md +++ b/src/Search/v1.0/examples/Update-MgExternalConnectionGroup.md @@ -2,12 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Search -$params = @{ - displayName = "Contoso Marketing" - description = "The product marketing team" -} - -Update-MgExternalConnectionGroup -ExternalConnectionId $externalConnectionId -ExternalGroupId $externalGroupId -BodyParameter $params +Get-MgExternalConnectionGroup -ExternalConnectionId $externalConnectionId -ExternalGroupId $externalGroupId ``` This example shows how to use the Update-MgExternalConnectionGroup Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCase.md b/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCase.md index 5ff942e663e..f188161d18d 100644 --- a/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCase.md +++ b/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCase.md @@ -2,12 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Security -$params = @{ - displayName = "My Case 1 - Renamed" - description = "Updated description" -} - -Update-MgBetaSecurityCaseEdiscoveryCase -EdiscoveryCaseId $ediscoveryCaseId -BodyParameter $params +Get-MgBetaSecurityCaseEdiscoveryCase -EdiscoveryCaseId $ediscoveryCaseId ``` This example shows how to use the Get-MgBetaBetaSecurityCaseEdiscoveryCase Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseReviewSetQuery.md b/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseReviewSetQuery.md index 0b73ce0c024..35734846f7a 100644 --- a/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseReviewSetQuery.md +++ b/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseReviewSetQuery.md @@ -2,12 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Security -$params = @{ - displayName = "My Query 1 (update)" - contentQuery = "(Author="edisons")" -} - -Update-MgBetaSecurityCaseEdiscoveryCaseReviewSetQuery -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryReviewSetId $ediscoveryReviewSetId -EdiscoveryReviewSetQueryId $ediscoveryReviewSetQueryId -BodyParameter $params +Get-MgBetaSecurityCaseEdiscoveryCaseReviewSetQuery -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryReviewSetId $ediscoveryReviewSetId -EdiscoveryReviewSetQueryId $ediscoveryReviewSetQueryId ``` This example shows how to use the Get-MgBetaBetaSecurityCaseEdiscoveryCaseReviewSetQuery Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseSearch.md b/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseSearch.md index 491fb0f07a3..9e71ada0c4c 100644 --- a/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseSearch.md +++ b/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseSearch.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Security -$params = @{ - displayName = "Teams search" -} - -Update-MgBetaSecurityCaseEdiscoveryCaseSearch -EdiscoveryCaseId $ediscoveryCaseId -EdiscoverySearchId $ediscoverySearchId -BodyParameter $params +Get-MgBetaSecurityCaseEdiscoveryCaseSearch -EdiscoveryCaseId $ediscoveryCaseId -EdiscoverySearchId $ediscoverySearchId ``` This example shows how to use the Get-MgBetaBetaSecurityCaseEdiscoveryCaseSearch Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseSetting.md b/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseSetting.md index 933e4436f14..80832690968 100644 --- a/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseSetting.md +++ b/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseSetting.md @@ -2,20 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Security -$params = @{ - "@odata.type" = "#microsoft.graph.security.ediscoveryCaseSettings" - redundancyDetection = @{ - "@odata.type" = "microsoft.graph.security.redundancyDetectionSettings" - } - topicModeling = @{ - "@odata.type" = "microsoft.graph.security.topicModelingSettings" - } - ocr = @{ - "@odata.type" = "microsoft.graph.security.ocrSettings" - } -} - -Update-MgBetaSecurityCaseEdiscoveryCaseSetting -EdiscoveryCaseId $ediscoveryCaseId -BodyParameter $params +Get-MgBetaSecurityCaseEdiscoveryCaseSetting -EdiscoveryCaseId $ediscoveryCaseId ``` This example shows how to use the Get-MgBetaBetaSecurityCaseEdiscoveryCaseSetting Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/beta/examples/Get-MgBetaSecurityIncident.md b/src/Security/beta/examples/Get-MgBetaSecurityIncident.md index 2315a4e2198..64e9e40985a 100644 --- a/src/Security/beta/examples/Get-MgBetaSecurityIncident.md +++ b/src/Security/beta/examples/Get-MgBetaSecurityIncident.md @@ -2,15 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Security -$params = @{ - classification = "TruePositive" - determination = "MultiStagedAttack" - customTags = @( - "Demo" - ) -} - -Update-MgBetaSecurityIncident -IncidentId $incidentId -BodyParameter $params +Get-MgBetaSecurityIncident -IncidentId $incidentId ``` This example shows how to use the Get-MgBetaBetaSecurityIncident Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/beta/examples/Get-MgBetaSecuritySecureScoreControlProfile.md b/src/Security/beta/examples/Get-MgBetaSecuritySecureScoreControlProfile.md index 7a9f8ded6ec..37ef5af66d6 100644 --- a/src/Security/beta/examples/Get-MgBetaSecuritySecureScoreControlProfile.md +++ b/src/Security/beta/examples/Get-MgBetaSecuritySecureScoreControlProfile.md @@ -1,41 +1,8 @@ -### Example 1: Request without Prefer header +### Example 1: Code snippet ```powershell Import-Module Microsoft.Graph.Beta.Security -$params = @{ - assignedTo = "" - comment = "control is reviewed" - state = "Reviewed" - vendorInformation = @{ - provider = "SecureScore" - providerVersion = $null - subProvider = $null - vendor = "Microsoft" - } -} - -Update-MgBetaSecuritySecureScoreControlProfile -SecureScoreControlProfileId $secureScoreControlProfileId -BodyParameter $params -``` -This example shows how to use the Get-MgBetaBetaSecuritySecureScoreControlProfile Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Request with Prefer header - -```powershell Import-Module Microsoft.Graph.Beta.Security - -$params = @{ - assignedTo = "" - comment = "control is reviewed" - state = "Reviewed" - vendorInformation = @{ - provider = "SecureScore" - providerVersion = $null - subProvider = $null - vendor = "Microsoft" - } -} - -Update-MgBetaSecuritySecureScoreControlProfile -SecureScoreControlProfileId $secureScoreControlProfileId -BodyParameter $params +Get-MgBetaSecuritySecureScoreControlProfile -SecureScoreControlProfileId $secureScoreControlProfileId ``` This example shows how to use the Get-MgBetaBetaSecuritySecureScoreControlProfile Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/beta/examples/New-MgBetaSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource.md b/src/Security/beta/examples/New-MgBetaSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource.md index cd11ee31136..cead04774a3 100644 --- a/src/Security/beta/examples/New-MgBetaSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource.md +++ b/src/Security/beta/examples/New-MgBetaSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource.md @@ -1,4 +1,4 @@ -### Example 1: Code snippet +### Example 1: Create unifiedGroupSource with group SMTP address ```powershell Import-Module Microsoft.Graph.Beta.Security @@ -14,3 +14,17 @@ New-MgBetaSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource -EdiscoveryCaseI This example shows how to use the New-MgBetaBetaSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Create unifiedGroupSource with group@odata.bind + +```powershell Import-Module Microsoft.Graph.Beta.Security + +$params = @{ + "group@odata.bind" = "https://graph.microsoft.com/v1.0/groups/93f90172-fe05-43ea-83cf-ff785a40d610" + includedSources = "mailbox" +} + +New-MgBetaSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryCustodianId $ediscoveryCustodianId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Security/beta/examples/Remove-MgBetaSecurityCaseEdiscoveryCase.md b/src/Security/beta/examples/Remove-MgBetaSecurityCaseEdiscoveryCase.md index b5ad50341ca..875d1db4199 100644 --- a/src/Security/beta/examples/Remove-MgBetaSecurityCaseEdiscoveryCase.md +++ b/src/Security/beta/examples/Remove-MgBetaSecurityCaseEdiscoveryCase.md @@ -2,12 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Security -$params = @{ - displayName = "My Case 1 - Renamed" - description = "Updated description" -} - -Update-MgBetaSecurityCaseEdiscoveryCase -EdiscoveryCaseId $ediscoveryCaseId -BodyParameter $params +Get-MgBetaSecurityCaseEdiscoveryCase -EdiscoveryCaseId $ediscoveryCaseId ``` This example shows how to use the Remove-MgBetaBetaSecurityCaseEdiscoveryCase Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/beta/examples/Remove-MgBetaSecurityCaseEdiscoveryCaseReviewSetQuery.md b/src/Security/beta/examples/Remove-MgBetaSecurityCaseEdiscoveryCaseReviewSetQuery.md index 0b424220792..0c3badd3e1c 100644 --- a/src/Security/beta/examples/Remove-MgBetaSecurityCaseEdiscoveryCaseReviewSetQuery.md +++ b/src/Security/beta/examples/Remove-MgBetaSecurityCaseEdiscoveryCaseReviewSetQuery.md @@ -2,12 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Security -$params = @{ - displayName = "My Query 1 (update)" - contentQuery = "(Author="edisons")" -} - -Update-MgBetaSecurityCaseEdiscoveryCaseReviewSetQuery -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryReviewSetId $ediscoveryReviewSetId -EdiscoveryReviewSetQueryId $ediscoveryReviewSetQueryId -BodyParameter $params +Get-MgBetaSecurityCaseEdiscoveryCaseReviewSetQuery -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryReviewSetId $ediscoveryReviewSetId -EdiscoveryReviewSetQueryId $ediscoveryReviewSetQueryId ``` This example shows how to use the Remove-MgBetaBetaSecurityCaseEdiscoveryCaseReviewSetQuery Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/beta/examples/Remove-MgBetaSecurityCaseEdiscoveryCaseSearch.md b/src/Security/beta/examples/Remove-MgBetaSecurityCaseEdiscoveryCaseSearch.md index 408f495d1ea..0cb5317c5ac 100644 --- a/src/Security/beta/examples/Remove-MgBetaSecurityCaseEdiscoveryCaseSearch.md +++ b/src/Security/beta/examples/Remove-MgBetaSecurityCaseEdiscoveryCaseSearch.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Security -$params = @{ - displayName = "Teams search" -} - -Update-MgBetaSecurityCaseEdiscoveryCaseSearch -EdiscoveryCaseId $ediscoveryCaseId -EdiscoverySearchId $ediscoverySearchId -BodyParameter $params +Get-MgBetaSecurityCaseEdiscoveryCaseSearch -EdiscoveryCaseId $ediscoveryCaseId -EdiscoverySearchId $ediscoverySearchId ``` This example shows how to use the Remove-MgBetaBetaSecurityCaseEdiscoveryCaseSearch Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/beta/examples/Update-MgBetaSecurityCaseEdiscoveryCase.md b/src/Security/beta/examples/Update-MgBetaSecurityCaseEdiscoveryCase.md index 60bb61e2047..1855b6341cd 100644 --- a/src/Security/beta/examples/Update-MgBetaSecurityCaseEdiscoveryCase.md +++ b/src/Security/beta/examples/Update-MgBetaSecurityCaseEdiscoveryCase.md @@ -2,12 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Security -$params = @{ - displayName = "My Case 1 - Renamed" - description = "Updated description" -} - -Update-MgBetaSecurityCaseEdiscoveryCase -EdiscoveryCaseId $ediscoveryCaseId -BodyParameter $params +Get-MgBetaSecurityCaseEdiscoveryCase -EdiscoveryCaseId $ediscoveryCaseId ``` This example shows how to use the Update-MgBetaBetaSecurityCaseEdiscoveryCase Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/beta/examples/Update-MgBetaSecurityCaseEdiscoveryCaseReviewSetQuery.md b/src/Security/beta/examples/Update-MgBetaSecurityCaseEdiscoveryCaseReviewSetQuery.md index 06842a967e5..69052667575 100644 --- a/src/Security/beta/examples/Update-MgBetaSecurityCaseEdiscoveryCaseReviewSetQuery.md +++ b/src/Security/beta/examples/Update-MgBetaSecurityCaseEdiscoveryCaseReviewSetQuery.md @@ -2,12 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Security -$params = @{ - displayName = "My Query 1 (update)" - contentQuery = "(Author="edisons")" -} - -Update-MgBetaSecurityCaseEdiscoveryCaseReviewSetQuery -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryReviewSetId $ediscoveryReviewSetId -EdiscoveryReviewSetQueryId $ediscoveryReviewSetQueryId -BodyParameter $params +Get-MgBetaSecurityCaseEdiscoveryCaseReviewSetQuery -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryReviewSetId $ediscoveryReviewSetId -EdiscoveryReviewSetQueryId $ediscoveryReviewSetQueryId ``` This example shows how to use the Update-MgBetaBetaSecurityCaseEdiscoveryCaseReviewSetQuery Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/beta/examples/Update-MgBetaSecurityCaseEdiscoveryCaseSearch.md b/src/Security/beta/examples/Update-MgBetaSecurityCaseEdiscoveryCaseSearch.md index 06d8032f383..4bc233bd448 100644 --- a/src/Security/beta/examples/Update-MgBetaSecurityCaseEdiscoveryCaseSearch.md +++ b/src/Security/beta/examples/Update-MgBetaSecurityCaseEdiscoveryCaseSearch.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Security -$params = @{ - displayName = "Teams search" -} - -Update-MgBetaSecurityCaseEdiscoveryCaseSearch -EdiscoveryCaseId $ediscoveryCaseId -EdiscoverySearchId $ediscoverySearchId -BodyParameter $params +Get-MgBetaSecurityCaseEdiscoveryCaseSearch -EdiscoveryCaseId $ediscoveryCaseId -EdiscoverySearchId $ediscoverySearchId ``` This example shows how to use the Update-MgBetaBetaSecurityCaseEdiscoveryCaseSearch Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/beta/examples/Update-MgBetaSecurityCaseEdiscoveryCaseSetting.md b/src/Security/beta/examples/Update-MgBetaSecurityCaseEdiscoveryCaseSetting.md index 7a3761a2c24..03a91e40dfa 100644 --- a/src/Security/beta/examples/Update-MgBetaSecurityCaseEdiscoveryCaseSetting.md +++ b/src/Security/beta/examples/Update-MgBetaSecurityCaseEdiscoveryCaseSetting.md @@ -2,20 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Security -$params = @{ - "@odata.type" = "#microsoft.graph.security.ediscoveryCaseSettings" - redundancyDetection = @{ - "@odata.type" = "microsoft.graph.security.redundancyDetectionSettings" - } - topicModeling = @{ - "@odata.type" = "microsoft.graph.security.topicModelingSettings" - } - ocr = @{ - "@odata.type" = "microsoft.graph.security.ocrSettings" - } -} - -Update-MgBetaSecurityCaseEdiscoveryCaseSetting -EdiscoveryCaseId $ediscoveryCaseId -BodyParameter $params +Get-MgBetaSecurityCaseEdiscoveryCaseSetting -EdiscoveryCaseId $ediscoveryCaseId ``` This example shows how to use the Update-MgBetaBetaSecurityCaseEdiscoveryCaseSetting Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/beta/examples/Update-MgBetaSecurityCaseEdiscoveryCaseTag.md b/src/Security/beta/examples/Update-MgBetaSecurityCaseEdiscoveryCaseTag.md index 093355d11d5..f6c6949389e 100644 --- a/src/Security/beta/examples/Update-MgBetaSecurityCaseEdiscoveryCaseTag.md +++ b/src/Security/beta/examples/Update-MgBetaSecurityCaseEdiscoveryCaseTag.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Security/beta/examples/Update-MgBetaSecurityIncident.md b/src/Security/beta/examples/Update-MgBetaSecurityIncident.md index 5109e0d07de..fb43e3d9a37 100644 --- a/src/Security/beta/examples/Update-MgBetaSecurityIncident.md +++ b/src/Security/beta/examples/Update-MgBetaSecurityIncident.md @@ -2,15 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Security -$params = @{ - classification = "TruePositive" - determination = "MultiStagedAttack" - customTags = @( - "Demo" - ) -} - -Update-MgBetaSecurityIncident -IncidentId $incidentId -BodyParameter $params +Get-MgBetaSecurityIncident -IncidentId $incidentId ``` This example shows how to use the Update-MgBetaBetaSecurityIncident Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/beta/examples/Update-MgBetaSecuritySecureScoreControlProfile.md b/src/Security/beta/examples/Update-MgBetaSecuritySecureScoreControlProfile.md index fe858ec844a..bd8d16bfc8b 100644 --- a/src/Security/beta/examples/Update-MgBetaSecuritySecureScoreControlProfile.md +++ b/src/Security/beta/examples/Update-MgBetaSecuritySecureScoreControlProfile.md @@ -1,41 +1,8 @@ -### Example 1: Request without Prefer header +### Example 1: Code snippet ```powershell Import-Module Microsoft.Graph.Beta.Security -$params = @{ - assignedTo = "" - comment = "control is reviewed" - state = "Reviewed" - vendorInformation = @{ - provider = "SecureScore" - providerVersion = $null - subProvider = $null - vendor = "Microsoft" - } -} - -Update-MgBetaSecuritySecureScoreControlProfile -SecureScoreControlProfileId $secureScoreControlProfileId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaBetaSecuritySecureScoreControlProfile Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Request with Prefer header - -```powershell Import-Module Microsoft.Graph.Beta.Security - -$params = @{ - assignedTo = "" - comment = "control is reviewed" - state = "Reviewed" - vendorInformation = @{ - provider = "SecureScore" - providerVersion = $null - subProvider = $null - vendor = "Microsoft" - } -} - -Update-MgBetaSecuritySecureScoreControlProfile -SecureScoreControlProfileId $secureScoreControlProfileId -BodyParameter $params +Get-MgBetaSecuritySecureScoreControlProfile -SecureScoreControlProfileId $secureScoreControlProfileId ``` This example shows how to use the Update-MgBetaBetaSecuritySecureScoreControlProfile Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCase.md b/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCase.md index d0505e20740..56cec938ea6 100644 --- a/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCase.md +++ b/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCase.md @@ -2,12 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Security -$params = @{ - displayName = "My Case 1 - Renamed" - description = "Updated description" -} - -Update-MgSecurityCaseEdiscoveryCase -EdiscoveryCaseId $ediscoveryCaseId -BodyParameter $params +Get-MgSecurityCaseEdiscoveryCase -EdiscoveryCaseId $ediscoveryCaseId ``` This example shows how to use the Get-MgSecurityCaseEdiscoveryCase Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseReviewSetQuery.md b/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseReviewSetQuery.md index a5daff6d524..18b21760443 100644 --- a/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseReviewSetQuery.md +++ b/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseReviewSetQuery.md @@ -2,12 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Security -$params = @{ - displayName = "My Query 1 (update)" - contentQuery = "(Author="edisons")" -} - -Update-MgSecurityCaseEdiscoveryCaseReviewSetQuery -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryReviewSetId $ediscoveryReviewSetId -EdiscoveryReviewSetQueryId $ediscoveryReviewSetQueryId -BodyParameter $params +Get-MgSecurityCaseEdiscoveryCaseReviewSetQuery -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryReviewSetId $ediscoveryReviewSetId -EdiscoveryReviewSetQueryId $ediscoveryReviewSetQueryId ``` This example shows how to use the Get-MgSecurityCaseEdiscoveryCaseReviewSetQuery Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseSearch.md b/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseSearch.md index 3c0add9b8b1..4f86a97c275 100644 --- a/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseSearch.md +++ b/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseSearch.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Security -$params = @{ - displayName = "Teams search" -} - -Update-MgSecurityCaseEdiscoveryCaseSearch -EdiscoveryCaseId $ediscoveryCaseId -EdiscoverySearchId $ediscoverySearchId -BodyParameter $params +Get-MgSecurityCaseEdiscoveryCaseSearch -EdiscoveryCaseId $ediscoveryCaseId -EdiscoverySearchId $ediscoverySearchId ``` This example shows how to use the Get-MgSecurityCaseEdiscoveryCaseSearch Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseSetting.md b/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseSetting.md index 7b1e4ae6e3d..8406ccf27db 100644 --- a/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseSetting.md +++ b/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseSetting.md @@ -2,20 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Security -$params = @{ - "@odata.type" = "#microsoft.graph.security.ediscoveryCaseSettings" - redundancyDetection = @{ - "@odata.type" = "microsoft.graph.security.redundancyDetectionSettings" - } - topicModeling = @{ - "@odata.type" = "microsoft.graph.security.topicModelingSettings" - } - ocr = @{ - "@odata.type" = "microsoft.graph.security.ocrSettings" - } -} - -Update-MgSecurityCaseEdiscoveryCaseSetting -EdiscoveryCaseId $ediscoveryCaseId -BodyParameter $params +Get-MgSecurityCaseEdiscoveryCaseSetting -EdiscoveryCaseId $ediscoveryCaseId ``` This example shows how to use the Get-MgSecurityCaseEdiscoveryCaseSetting Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseTag.md b/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseTag.md index f6c6949389e..7bd8b777cfb 100644 --- a/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseTag.md +++ b/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseTag.md @@ -1,17 +1,9 @@ -### Example 1: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Security -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +Get-MgSecurityCaseEdiscoveryCaseTag -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryReviewTagId $ediscoveryReviewTagId +``` +This example shows how to use the Get-MgSecurityCaseEdiscoveryCaseTag Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Security/v1.0/examples/Get-MgSecuritySecureScoreControlProfile.md b/src/Security/v1.0/examples/Get-MgSecuritySecureScoreControlProfile.md index 733b74ebdc3..a2aa9308a28 100644 --- a/src/Security/v1.0/examples/Get-MgSecuritySecureScoreControlProfile.md +++ b/src/Security/v1.0/examples/Get-MgSecuritySecureScoreControlProfile.md @@ -1,41 +1,8 @@ -### Example 1: Request without Prefer header +### Example 1: Code snippet ```powershell Import-Module Microsoft.Graph.Security -$params = @{ - assignedTo = "" - comment = "control is reviewed" - state = "Reviewed" - vendorInformation = @{ - provider = "SecureScore" - providerVersion = $null - subProvider = $null - vendor = "Microsoft" - } -} - -Update-MgSecuritySecureScoreControlProfile -SecureScoreControlProfileId $secureScoreControlProfileId -BodyParameter $params -``` -This example shows how to use the Get-MgSecuritySecureScoreControlProfile Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Request with Prefer header - -```powershell Import-Module Microsoft.Graph.Security - -$params = @{ - assignedTo = "" - comment = "control is reviewed" - state = "Reviewed" - vendorInformation = @{ - provider = "SecureScore" - providerVersion = $null - subProvider = $null - vendor = "Microsoft" - } -} - -Update-MgSecuritySecureScoreControlProfile -SecureScoreControlProfileId $secureScoreControlProfileId -BodyParameter $params +Get-MgSecuritySecureScoreControlProfile -SecureScoreControlProfileId $secureScoreControlProfileId ``` This example shows how to use the Get-MgSecuritySecureScoreControlProfile Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/v1.0/examples/New-MgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource.md b/src/Security/v1.0/examples/New-MgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource.md index 29e8f5693be..92c9b1df909 100644 --- a/src/Security/v1.0/examples/New-MgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource.md +++ b/src/Security/v1.0/examples/New-MgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource.md @@ -1,4 +1,4 @@ -### Example 1: Code snippet +### Example 1: Create unifiedGroupSource with group SMTP address ```powershell Import-Module Microsoft.Graph.Security @@ -14,3 +14,17 @@ New-MgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource -EdiscoveryCaseId $e This example shows how to use the New-MgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Create unifiedGroupSource with group@odata.bind + +```powershell Import-Module Microsoft.Graph.Security + +$params = @{ + "group@odata.bind" = "https://graph.microsoft.com/v1.0/groups/93f90172-fe05-43ea-83cf-ff785a40d610" + includedSources = "mailbox" +} + +New-MgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryCustodianId $ediscoveryCustodianId -BodyParameter $params +``` +This example shows how to use the New-MgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Security/v1.0/examples/Remove-MgSecurityCaseEdiscoveryCase.md b/src/Security/v1.0/examples/Remove-MgSecurityCaseEdiscoveryCase.md index 963c8d0c09f..1e80292faf0 100644 --- a/src/Security/v1.0/examples/Remove-MgSecurityCaseEdiscoveryCase.md +++ b/src/Security/v1.0/examples/Remove-MgSecurityCaseEdiscoveryCase.md @@ -2,12 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Security -$params = @{ - displayName = "My Case 1 - Renamed" - description = "Updated description" -} - -Update-MgSecurityCaseEdiscoveryCase -EdiscoveryCaseId $ediscoveryCaseId -BodyParameter $params +Get-MgSecurityCaseEdiscoveryCase -EdiscoveryCaseId $ediscoveryCaseId ``` This example shows how to use the Remove-MgSecurityCaseEdiscoveryCase Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/v1.0/examples/Remove-MgSecurityCaseEdiscoveryCaseReviewSetQuery.md b/src/Security/v1.0/examples/Remove-MgSecurityCaseEdiscoveryCaseReviewSetQuery.md index 0ade59eb0c2..474994b0271 100644 --- a/src/Security/v1.0/examples/Remove-MgSecurityCaseEdiscoveryCaseReviewSetQuery.md +++ b/src/Security/v1.0/examples/Remove-MgSecurityCaseEdiscoveryCaseReviewSetQuery.md @@ -2,12 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Security -$params = @{ - displayName = "My Query 1 (update)" - contentQuery = "(Author="edisons")" -} - -Update-MgSecurityCaseEdiscoveryCaseReviewSetQuery -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryReviewSetId $ediscoveryReviewSetId -EdiscoveryReviewSetQueryId $ediscoveryReviewSetQueryId -BodyParameter $params +Get-MgSecurityCaseEdiscoveryCaseReviewSetQuery -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryReviewSetId $ediscoveryReviewSetId -EdiscoveryReviewSetQueryId $ediscoveryReviewSetQueryId ``` This example shows how to use the Remove-MgSecurityCaseEdiscoveryCaseReviewSetQuery Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/v1.0/examples/Remove-MgSecurityCaseEdiscoveryCaseSearch.md b/src/Security/v1.0/examples/Remove-MgSecurityCaseEdiscoveryCaseSearch.md index b0eb206ecb1..6ba24079154 100644 --- a/src/Security/v1.0/examples/Remove-MgSecurityCaseEdiscoveryCaseSearch.md +++ b/src/Security/v1.0/examples/Remove-MgSecurityCaseEdiscoveryCaseSearch.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Security -$params = @{ - displayName = "Teams search" -} - -Update-MgSecurityCaseEdiscoveryCaseSearch -EdiscoveryCaseId $ediscoveryCaseId -EdiscoverySearchId $ediscoverySearchId -BodyParameter $params +Get-MgSecurityCaseEdiscoveryCaseSearch -EdiscoveryCaseId $ediscoveryCaseId -EdiscoverySearchId $ediscoverySearchId ``` This example shows how to use the Remove-MgSecurityCaseEdiscoveryCaseSearch Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/v1.0/examples/Update-MgSecurityCaseEdiscoveryCase.md b/src/Security/v1.0/examples/Update-MgSecurityCaseEdiscoveryCase.md index 6455b525628..c8379e227f3 100644 --- a/src/Security/v1.0/examples/Update-MgSecurityCaseEdiscoveryCase.md +++ b/src/Security/v1.0/examples/Update-MgSecurityCaseEdiscoveryCase.md @@ -2,12 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Security -$params = @{ - displayName = "My Case 1 - Renamed" - description = "Updated description" -} - -Update-MgSecurityCaseEdiscoveryCase -EdiscoveryCaseId $ediscoveryCaseId -BodyParameter $params +Get-MgSecurityCaseEdiscoveryCase -EdiscoveryCaseId $ediscoveryCaseId ``` This example shows how to use the Update-MgSecurityCaseEdiscoveryCase Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/v1.0/examples/Update-MgSecurityCaseEdiscoveryCaseReviewSetQuery.md b/src/Security/v1.0/examples/Update-MgSecurityCaseEdiscoveryCaseReviewSetQuery.md index 167b5f27697..08c15ce754c 100644 --- a/src/Security/v1.0/examples/Update-MgSecurityCaseEdiscoveryCaseReviewSetQuery.md +++ b/src/Security/v1.0/examples/Update-MgSecurityCaseEdiscoveryCaseReviewSetQuery.md @@ -2,12 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Security -$params = @{ - displayName = "My Query 1 (update)" - contentQuery = "(Author="edisons")" -} - -Update-MgSecurityCaseEdiscoveryCaseReviewSetQuery -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryReviewSetId $ediscoveryReviewSetId -EdiscoveryReviewSetQueryId $ediscoveryReviewSetQueryId -BodyParameter $params +Get-MgSecurityCaseEdiscoveryCaseReviewSetQuery -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryReviewSetId $ediscoveryReviewSetId -EdiscoveryReviewSetQueryId $ediscoveryReviewSetQueryId ``` This example shows how to use the Update-MgSecurityCaseEdiscoveryCaseReviewSetQuery Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/v1.0/examples/Update-MgSecurityCaseEdiscoveryCaseSearch.md b/src/Security/v1.0/examples/Update-MgSecurityCaseEdiscoveryCaseSearch.md index c1288b7da99..6a08ca8513c 100644 --- a/src/Security/v1.0/examples/Update-MgSecurityCaseEdiscoveryCaseSearch.md +++ b/src/Security/v1.0/examples/Update-MgSecurityCaseEdiscoveryCaseSearch.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Security -$params = @{ - displayName = "Teams search" -} - -Update-MgSecurityCaseEdiscoveryCaseSearch -EdiscoveryCaseId $ediscoveryCaseId -EdiscoverySearchId $ediscoverySearchId -BodyParameter $params +Get-MgSecurityCaseEdiscoveryCaseSearch -EdiscoveryCaseId $ediscoveryCaseId -EdiscoverySearchId $ediscoverySearchId ``` This example shows how to use the Update-MgSecurityCaseEdiscoveryCaseSearch Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/v1.0/examples/Update-MgSecurityCaseEdiscoveryCaseSetting.md b/src/Security/v1.0/examples/Update-MgSecurityCaseEdiscoveryCaseSetting.md index e065bc62f7b..f5becec615d 100644 --- a/src/Security/v1.0/examples/Update-MgSecurityCaseEdiscoveryCaseSetting.md +++ b/src/Security/v1.0/examples/Update-MgSecurityCaseEdiscoveryCaseSetting.md @@ -2,20 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Security -$params = @{ - "@odata.type" = "#microsoft.graph.security.ediscoveryCaseSettings" - redundancyDetection = @{ - "@odata.type" = "microsoft.graph.security.redundancyDetectionSettings" - } - topicModeling = @{ - "@odata.type" = "microsoft.graph.security.topicModelingSettings" - } - ocr = @{ - "@odata.type" = "microsoft.graph.security.ocrSettings" - } -} - -Update-MgSecurityCaseEdiscoveryCaseSetting -EdiscoveryCaseId $ediscoveryCaseId -BodyParameter $params +Get-MgSecurityCaseEdiscoveryCaseSetting -EdiscoveryCaseId $ediscoveryCaseId ``` This example shows how to use the Update-MgSecurityCaseEdiscoveryCaseSetting Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/v1.0/examples/Update-MgSecurityCaseEdiscoveryCaseTag.md b/src/Security/v1.0/examples/Update-MgSecurityCaseEdiscoveryCaseTag.md index 093355d11d5..f6c6949389e 100644 --- a/src/Security/v1.0/examples/Update-MgSecurityCaseEdiscoveryCaseTag.md +++ b/src/Security/v1.0/examples/Update-MgSecurityCaseEdiscoveryCaseTag.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Security/v1.0/examples/Update-MgSecuritySecureScoreControlProfile.md b/src/Security/v1.0/examples/Update-MgSecuritySecureScoreControlProfile.md index 9d0cda445bd..e2139e112d1 100644 --- a/src/Security/v1.0/examples/Update-MgSecuritySecureScoreControlProfile.md +++ b/src/Security/v1.0/examples/Update-MgSecuritySecureScoreControlProfile.md @@ -1,41 +1,8 @@ -### Example 1: Request without Prefer header +### Example 1: Code snippet ```powershell Import-Module Microsoft.Graph.Security -$params = @{ - assignedTo = "" - comment = "control is reviewed" - state = "Reviewed" - vendorInformation = @{ - provider = "SecureScore" - providerVersion = $null - subProvider = $null - vendor = "Microsoft" - } -} - -Update-MgSecuritySecureScoreControlProfile -SecureScoreControlProfileId $secureScoreControlProfileId -BodyParameter $params -``` -This example shows how to use the Update-MgSecuritySecureScoreControlProfile Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Request with Prefer header - -```powershell Import-Module Microsoft.Graph.Security - -$params = @{ - assignedTo = "" - comment = "control is reviewed" - state = "Reviewed" - vendorInformation = @{ - provider = "SecureScore" - providerVersion = $null - subProvider = $null - vendor = "Microsoft" - } -} - -Update-MgSecuritySecureScoreControlProfile -SecureScoreControlProfileId $secureScoreControlProfileId -BodyParameter $params +Get-MgSecuritySecureScoreControlProfile -SecureScoreControlProfileId $secureScoreControlProfileId ``` This example shows how to use the Update-MgSecuritySecureScoreControlProfile Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/beta/examples/Get-MgBetaSiteContentType.md b/src/Sites/beta/examples/Get-MgBetaSiteContentType.md index 285aaa9c9f6..74a6fa6e2d4 100644 --- a/src/Sites/beta/examples/Get-MgBetaSiteContentType.md +++ b/src/Sites/beta/examples/Get-MgBetaSiteContentType.md @@ -2,50 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Sites -$params = @{ - name = "updatedCt" - documentSet = @{ - shouldPrefixNameToFile = $true - allowedContentTypes = @( - @{ - id = "0x0101" - name = "Document" - } - ) - defaultContents = @( - @{ - fileName = "a.txt" - contentType = @{ - id = "0x0101" - } - } - @{ - fileName = "b.txt" - contentType = @{ - id = "0x0101" - } - } - ) - sharedColumns = @( - @{ - name = "Description" - id = "cbb92da4-fd46-4c7d-af6c-3128c2a5576e" - } - @{ - name = "Address" - id = "fc2e188e-ba91-48c9-9dd3-16431afddd50" - } - ) - welcomePageColumns = @( - @{ - name = "Address" - id = "fc2e188e-ba91-48c9-9dd3-16431afddd50" - } - ) - } -} - -Update-MgBetaSiteContentType -SiteId $siteId -ContentTypeId $contentTypeId -BodyParameter $params +Get-MgBetaSiteContentType -SiteId $siteId -ContentTypeId $contentTypeId ``` This example shows how to use the Get-MgBetaBetaSiteContentType Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/beta/examples/Get-MgBetaSitePermission.md b/src/Sites/beta/examples/Get-MgBetaSitePermission.md index a95d991bc3f..133afec4fcb 100644 --- a/src/Sites/beta/examples/Get-MgBetaSitePermission.md +++ b/src/Sites/beta/examples/Get-MgBetaSitePermission.md @@ -2,13 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Sites -$params = @{ - roles = @( - "read" - ) -} - -Update-MgBetaSitePermission -SiteId $siteId -PermissionId $permissionId -BodyParameter $params +Get-MgBetaSitePermission -SiteId $siteId -PermissionId $permissionId ``` This example shows how to use the Get-MgBetaBetaSitePermission Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/beta/examples/Get-MgBetaSiteTermStore.md b/src/Sites/beta/examples/Get-MgBetaSiteTermStore.md index d64ebda74c9..bfc880c22d3 100644 --- a/src/Sites/beta/examples/Get-MgBetaSiteTermStore.md +++ b/src/Sites/beta/examples/Get-MgBetaSiteTermStore.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Sites -$params = @{ - defaultLanguageTag = "en-US" -} - -Update-MgBetaSiteTermStore -SiteId $siteId -BodyParameter $params +Get-MgBetaSiteTermStore -SiteId $siteId ``` This example shows how to use the Get-MgBetaBetaSiteTermStore Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/beta/examples/Get-MgBetaSiteTermStoreGroupSetTerm.md b/src/Sites/beta/examples/Get-MgBetaSiteTermStoreGroupSetTerm.md index c3b822d25ca..80ced4dc7d5 100644 --- a/src/Sites/beta/examples/Get-MgBetaSiteTermStoreGroupSetTerm.md +++ b/src/Sites/beta/examples/Get-MgBetaSiteTermStoreGroupSetTerm.md @@ -2,17 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Sites -$params = @{ - labels = @( - @{ - name = "changedLabel" - languageTag = "en-US" - isDefault = $true - } - ) -} - -Update-MgBetaSiteTermStoreSetTerm -SiteId $siteId -SetId $setId -TermId $termId -BodyParameter $params +Get-MgBetaSiteTermStoreGroupSetTerm -SiteId $siteId -GroupId $groupId -SetId $setId -TermId $termId ``` This example shows how to use the Get-MgBetaBetaSiteTermStoreGroupSetTerm Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/beta/examples/Get-MgBetaSiteTermStoreSet.md b/src/Sites/beta/examples/Get-MgBetaSiteTermStoreSet.md index a62de6bfd3c..93c4468075b 100644 --- a/src/Sites/beta/examples/Get-MgBetaSiteTermStoreSet.md +++ b/src/Sites/beta/examples/Get-MgBetaSiteTermStoreSet.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Sites -$params = @{ - description = "mySet" -} - -Update-MgBetaSiteTermStoreSet -SiteId $siteId -SetId $setId -BodyParameter $params +Get-MgBetaSiteTermStoreSet -SiteId $siteId -SetId $setId ``` This example shows how to use the Get-MgBetaBetaSiteTermStoreSet Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/beta/examples/Remove-MgBetaSiteContentType.md b/src/Sites/beta/examples/Remove-MgBetaSiteContentType.md index f2aebe53daa..191250059a2 100644 --- a/src/Sites/beta/examples/Remove-MgBetaSiteContentType.md +++ b/src/Sites/beta/examples/Remove-MgBetaSiteContentType.md @@ -2,50 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Sites -$params = @{ - name = "updatedCt" - documentSet = @{ - shouldPrefixNameToFile = $true - allowedContentTypes = @( - @{ - id = "0x0101" - name = "Document" - } - ) - defaultContents = @( - @{ - fileName = "a.txt" - contentType = @{ - id = "0x0101" - } - } - @{ - fileName = "b.txt" - contentType = @{ - id = "0x0101" - } - } - ) - sharedColumns = @( - @{ - name = "Description" - id = "cbb92da4-fd46-4c7d-af6c-3128c2a5576e" - } - @{ - name = "Address" - id = "fc2e188e-ba91-48c9-9dd3-16431afddd50" - } - ) - welcomePageColumns = @( - @{ - name = "Address" - id = "fc2e188e-ba91-48c9-9dd3-16431afddd50" - } - ) - } -} - -Update-MgBetaSiteContentType -SiteId $siteId -ContentTypeId $contentTypeId -BodyParameter $params +Get-MgBetaSiteContentType -SiteId $siteId -ContentTypeId $contentTypeId ``` This example shows how to use the Remove-MgBetaBetaSiteContentType Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/beta/examples/Remove-MgBetaSitePermission.md b/src/Sites/beta/examples/Remove-MgBetaSitePermission.md index 785e7031349..4fa247f1262 100644 --- a/src/Sites/beta/examples/Remove-MgBetaSitePermission.md +++ b/src/Sites/beta/examples/Remove-MgBetaSitePermission.md @@ -2,13 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Sites -$params = @{ - roles = @( - "read" - ) -} - -Update-MgBetaSitePermission -SiteId $siteId -PermissionId $permissionId -BodyParameter $params +Get-MgBetaSitePermission -SiteId $siteId -PermissionId $permissionId ``` This example shows how to use the Remove-MgBetaBetaSitePermission Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/beta/examples/Remove-MgBetaSiteTermStore.md b/src/Sites/beta/examples/Remove-MgBetaSiteTermStore.md index f2fd0803218..bf7733d31dc 100644 --- a/src/Sites/beta/examples/Remove-MgBetaSiteTermStore.md +++ b/src/Sites/beta/examples/Remove-MgBetaSiteTermStore.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Sites -$params = @{ - defaultLanguageTag = "en-US" -} - -Update-MgBetaSiteTermStore -SiteId $siteId -BodyParameter $params +Get-MgBetaSiteTermStore -SiteId $siteId ``` This example shows how to use the Remove-MgBetaBetaSiteTermStore Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/beta/examples/Update-MgBetaSiteContentType.md b/src/Sites/beta/examples/Update-MgBetaSiteContentType.md index 6941bcfabb9..fdf0412c7a3 100644 --- a/src/Sites/beta/examples/Update-MgBetaSiteContentType.md +++ b/src/Sites/beta/examples/Update-MgBetaSiteContentType.md @@ -2,50 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Sites -$params = @{ - name = "updatedCt" - documentSet = @{ - shouldPrefixNameToFile = $true - allowedContentTypes = @( - @{ - id = "0x0101" - name = "Document" - } - ) - defaultContents = @( - @{ - fileName = "a.txt" - contentType = @{ - id = "0x0101" - } - } - @{ - fileName = "b.txt" - contentType = @{ - id = "0x0101" - } - } - ) - sharedColumns = @( - @{ - name = "Description" - id = "cbb92da4-fd46-4c7d-af6c-3128c2a5576e" - } - @{ - name = "Address" - id = "fc2e188e-ba91-48c9-9dd3-16431afddd50" - } - ) - welcomePageColumns = @( - @{ - name = "Address" - id = "fc2e188e-ba91-48c9-9dd3-16431afddd50" - } - ) - } -} - -Update-MgBetaSiteContentType -SiteId $siteId -ContentTypeId $contentTypeId -BodyParameter $params +Get-MgBetaSiteContentType -SiteId $siteId -ContentTypeId $contentTypeId ``` This example shows how to use the Update-MgBetaBetaSiteContentType Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/beta/examples/Update-MgBetaSitePermission.md b/src/Sites/beta/examples/Update-MgBetaSitePermission.md index d9c041dba28..5fb7b7075a0 100644 --- a/src/Sites/beta/examples/Update-MgBetaSitePermission.md +++ b/src/Sites/beta/examples/Update-MgBetaSitePermission.md @@ -2,13 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Sites -$params = @{ - roles = @( - "read" - ) -} - -Update-MgBetaSitePermission -SiteId $siteId -PermissionId $permissionId -BodyParameter $params +Get-MgBetaSitePermission -SiteId $siteId -PermissionId $permissionId ``` This example shows how to use the Update-MgBetaBetaSitePermission Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/beta/examples/Update-MgBetaSiteTermStore.md b/src/Sites/beta/examples/Update-MgBetaSiteTermStore.md index 44db18e9790..2118689087d 100644 --- a/src/Sites/beta/examples/Update-MgBetaSiteTermStore.md +++ b/src/Sites/beta/examples/Update-MgBetaSiteTermStore.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Sites -$params = @{ - defaultLanguageTag = "en-US" -} - -Update-MgBetaSiteTermStore -SiteId $siteId -BodyParameter $params +Get-MgBetaSiteTermStore -SiteId $siteId ``` This example shows how to use the Update-MgBetaBetaSiteTermStore Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/v1.0/examples/Get-MgSiteContentType.md b/src/Sites/v1.0/examples/Get-MgSiteContentType.md index e0f12a3e1bc..37b5224078d 100644 --- a/src/Sites/v1.0/examples/Get-MgSiteContentType.md +++ b/src/Sites/v1.0/examples/Get-MgSiteContentType.md @@ -2,50 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Sites -$params = @{ - name = "updatedCt" - documentSet = @{ - shouldPrefixNameToFile = $true - allowedContentTypes = @( - @{ - id = "0x0101" - name = "Document" - } - ) - defaultContents = @( - @{ - fileName = "a.txt" - contentType = @{ - id = "0x0101" - } - } - @{ - fileName = "b.txt" - contentType = @{ - id = "0x0101" - } - } - ) - sharedColumns = @( - @{ - name = "Description" - id = "cbb92da4-fd46-4c7d-af6c-3128c2a5576e" - } - @{ - name = "Address" - id = "fc2e188e-ba91-48c9-9dd3-16431afddd50" - } - ) - welcomePageColumns = @( - @{ - name = "Address" - id = "fc2e188e-ba91-48c9-9dd3-16431afddd50" - } - ) - } -} - -Update-MgSiteContentType -SiteId $siteId -ContentTypeId $contentTypeId -BodyParameter $params +Get-MgSiteContentType -SiteId $siteId -ContentTypeId $contentTypeId ``` This example shows how to use the Get-MgSiteContentType Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/v1.0/examples/Get-MgSitePermission.md b/src/Sites/v1.0/examples/Get-MgSitePermission.md index d9b085cb8a2..4d78b253a43 100644 --- a/src/Sites/v1.0/examples/Get-MgSitePermission.md +++ b/src/Sites/v1.0/examples/Get-MgSitePermission.md @@ -2,13 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Sites -$params = @{ - roles = @( - "read" - ) -} - -Update-MgSitePermission -SiteId $siteId -PermissionId $permissionId -BodyParameter $params +Get-MgSitePermission -SiteId $siteId -PermissionId $permissionId ``` This example shows how to use the Get-MgSitePermission Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/v1.0/examples/Get-MgSiteTermStore.md b/src/Sites/v1.0/examples/Get-MgSiteTermStore.md index d13b5316608..62808c032e4 100644 --- a/src/Sites/v1.0/examples/Get-MgSiteTermStore.md +++ b/src/Sites/v1.0/examples/Get-MgSiteTermStore.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Sites -$params = @{ - defaultLanguageTag = "en-US" -} - -Update-MgSiteTermStore -SiteId $siteId -BodyParameter $params +Get-MgSiteTermStore -SiteId $siteId ``` This example shows how to use the Get-MgSiteTermStore Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/v1.0/examples/Get-MgSiteTermStoreGroupSetTerm.md b/src/Sites/v1.0/examples/Get-MgSiteTermStoreGroupSetTerm.md index 5529b1c1644..e50ae2a6b96 100644 --- a/src/Sites/v1.0/examples/Get-MgSiteTermStoreGroupSetTerm.md +++ b/src/Sites/v1.0/examples/Get-MgSiteTermStoreGroupSetTerm.md @@ -2,17 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Sites -$params = @{ - labels = @( - @{ - name = "changedLabel" - languageTag = "en-US" - isDefault = $true - } - ) -} - -Update-MgSiteTermStoreSetTerm -SiteId $siteId -SetId $setId -TermId $termId -BodyParameter $params +Get-MgSiteTermStoreGroupSetTerm -SiteId $siteId -GroupId $groupId -SetId $setId -TermId $termId ``` This example shows how to use the Get-MgSiteTermStoreGroupSetTerm Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/v1.0/examples/Get-MgSiteTermStoreSet.md b/src/Sites/v1.0/examples/Get-MgSiteTermStoreSet.md index e023323c9a1..9bb4fed1027 100644 --- a/src/Sites/v1.0/examples/Get-MgSiteTermStoreSet.md +++ b/src/Sites/v1.0/examples/Get-MgSiteTermStoreSet.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Sites -$params = @{ - description = "mySet" -} - -Update-MgSiteTermStoreSet -SiteId $siteId -SetId $setId -BodyParameter $params +Get-MgSiteTermStoreSet -SiteId $siteId -SetId $setId ``` This example shows how to use the Get-MgSiteTermStoreSet Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/v1.0/examples/Remove-MgSiteContentType.md b/src/Sites/v1.0/examples/Remove-MgSiteContentType.md index 6a3008c6d41..006f0e9509c 100644 --- a/src/Sites/v1.0/examples/Remove-MgSiteContentType.md +++ b/src/Sites/v1.0/examples/Remove-MgSiteContentType.md @@ -2,50 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Sites -$params = @{ - name = "updatedCt" - documentSet = @{ - shouldPrefixNameToFile = $true - allowedContentTypes = @( - @{ - id = "0x0101" - name = "Document" - } - ) - defaultContents = @( - @{ - fileName = "a.txt" - contentType = @{ - id = "0x0101" - } - } - @{ - fileName = "b.txt" - contentType = @{ - id = "0x0101" - } - } - ) - sharedColumns = @( - @{ - name = "Description" - id = "cbb92da4-fd46-4c7d-af6c-3128c2a5576e" - } - @{ - name = "Address" - id = "fc2e188e-ba91-48c9-9dd3-16431afddd50" - } - ) - welcomePageColumns = @( - @{ - name = "Address" - id = "fc2e188e-ba91-48c9-9dd3-16431afddd50" - } - ) - } -} - -Update-MgSiteContentType -SiteId $siteId -ContentTypeId $contentTypeId -BodyParameter $params +Get-MgSiteContentType -SiteId $siteId -ContentTypeId $contentTypeId ``` This example shows how to use the Remove-MgSiteContentType Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/v1.0/examples/Remove-MgSitePermission.md b/src/Sites/v1.0/examples/Remove-MgSitePermission.md index 24e7a70bba7..c5f811db313 100644 --- a/src/Sites/v1.0/examples/Remove-MgSitePermission.md +++ b/src/Sites/v1.0/examples/Remove-MgSitePermission.md @@ -2,13 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Sites -$params = @{ - roles = @( - "read" - ) -} - -Update-MgSitePermission -SiteId $siteId -PermissionId $permissionId -BodyParameter $params +Get-MgSitePermission -SiteId $siteId -PermissionId $permissionId ``` This example shows how to use the Remove-MgSitePermission Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/v1.0/examples/Remove-MgSiteTermStore.md b/src/Sites/v1.0/examples/Remove-MgSiteTermStore.md index a3b8174e047..50efc964dfd 100644 --- a/src/Sites/v1.0/examples/Remove-MgSiteTermStore.md +++ b/src/Sites/v1.0/examples/Remove-MgSiteTermStore.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Sites -$params = @{ - defaultLanguageTag = "en-US" -} - -Update-MgSiteTermStore -SiteId $siteId -BodyParameter $params +Get-MgSiteTermStore -SiteId $siteId ``` This example shows how to use the Remove-MgSiteTermStore Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/v1.0/examples/Remove-MgSiteTermStoreSet.md b/src/Sites/v1.0/examples/Remove-MgSiteTermStoreSet.md index 75301852c8c..6c0e2bdb676 100644 --- a/src/Sites/v1.0/examples/Remove-MgSiteTermStoreSet.md +++ b/src/Sites/v1.0/examples/Remove-MgSiteTermStoreSet.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Sites -$params = @{ - description = "mySet" -} - -Update-MgSiteTermStoreSet -SiteId $siteId -SetId $setId -BodyParameter $params +Get-MgSiteTermStoreSet -SiteId $siteId -SetId $setId ``` This example shows how to use the Remove-MgSiteTermStoreSet Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/v1.0/examples/Remove-MgSiteTermStoreSetTerm.md b/src/Sites/v1.0/examples/Remove-MgSiteTermStoreSetTerm.md index ee7305e9de4..b8104d1c6fb 100644 --- a/src/Sites/v1.0/examples/Remove-MgSiteTermStoreSetTerm.md +++ b/src/Sites/v1.0/examples/Remove-MgSiteTermStoreSetTerm.md @@ -2,17 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Sites -$params = @{ - labels = @( - @{ - name = "changedLabel" - languageTag = "en-US" - isDefault = $true - } - ) -} - -Update-MgSiteTermStoreSetTerm -SiteId $siteId -SetId $setId -TermId $termId -BodyParameter $params +Get-MgSiteTermStoreGroupSetTerm -SiteId $siteId -GroupId $groupId -SetId $setId -TermId $termId ``` This example shows how to use the Remove-MgSiteTermStoreSetTerm Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/v1.0/examples/Update-MgSiteContentType.md b/src/Sites/v1.0/examples/Update-MgSiteContentType.md index bb7f52c7f16..5c77a098758 100644 --- a/src/Sites/v1.0/examples/Update-MgSiteContentType.md +++ b/src/Sites/v1.0/examples/Update-MgSiteContentType.md @@ -2,50 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Sites -$params = @{ - name = "updatedCt" - documentSet = @{ - shouldPrefixNameToFile = $true - allowedContentTypes = @( - @{ - id = "0x0101" - name = "Document" - } - ) - defaultContents = @( - @{ - fileName = "a.txt" - contentType = @{ - id = "0x0101" - } - } - @{ - fileName = "b.txt" - contentType = @{ - id = "0x0101" - } - } - ) - sharedColumns = @( - @{ - name = "Description" - id = "cbb92da4-fd46-4c7d-af6c-3128c2a5576e" - } - @{ - name = "Address" - id = "fc2e188e-ba91-48c9-9dd3-16431afddd50" - } - ) - welcomePageColumns = @( - @{ - name = "Address" - id = "fc2e188e-ba91-48c9-9dd3-16431afddd50" - } - ) - } -} - -Update-MgSiteContentType -SiteId $siteId -ContentTypeId $contentTypeId -BodyParameter $params +Get-MgSiteContentType -SiteId $siteId -ContentTypeId $contentTypeId ``` This example shows how to use the Update-MgSiteContentType Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/v1.0/examples/Update-MgSitePermission.md b/src/Sites/v1.0/examples/Update-MgSitePermission.md index 614a5baac31..a8b01c10712 100644 --- a/src/Sites/v1.0/examples/Update-MgSitePermission.md +++ b/src/Sites/v1.0/examples/Update-MgSitePermission.md @@ -2,13 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Sites -$params = @{ - roles = @( - "read" - ) -} - -Update-MgSitePermission -SiteId $siteId -PermissionId $permissionId -BodyParameter $params +Get-MgSitePermission -SiteId $siteId -PermissionId $permissionId ``` This example shows how to use the Update-MgSitePermission Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/v1.0/examples/Update-MgSiteTermStore.md b/src/Sites/v1.0/examples/Update-MgSiteTermStore.md index 2fec0152cbd..4d641039538 100644 --- a/src/Sites/v1.0/examples/Update-MgSiteTermStore.md +++ b/src/Sites/v1.0/examples/Update-MgSiteTermStore.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Sites -$params = @{ - defaultLanguageTag = "en-US" -} - -Update-MgSiteTermStore -SiteId $siteId -BodyParameter $params +Get-MgSiteTermStore -SiteId $siteId ``` This example shows how to use the Update-MgSiteTermStore Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/v1.0/examples/Update-MgSiteTermStoreSet.md b/src/Sites/v1.0/examples/Update-MgSiteTermStoreSet.md index 9304b40f3c6..dceb69bcc35 100644 --- a/src/Sites/v1.0/examples/Update-MgSiteTermStoreSet.md +++ b/src/Sites/v1.0/examples/Update-MgSiteTermStoreSet.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Sites -$params = @{ - description = "mySet" -} - -Update-MgSiteTermStoreSet -SiteId $siteId -SetId $setId -BodyParameter $params +Get-MgSiteTermStoreSet -SiteId $siteId -SetId $setId ``` This example shows how to use the Update-MgSiteTermStoreSet Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/v1.0/examples/Update-MgSiteTermStoreSetTerm.md b/src/Sites/v1.0/examples/Update-MgSiteTermStoreSetTerm.md index b4a9b87557a..3ccaa8529b0 100644 --- a/src/Sites/v1.0/examples/Update-MgSiteTermStoreSetTerm.md +++ b/src/Sites/v1.0/examples/Update-MgSiteTermStoreSetTerm.md @@ -2,17 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Sites -$params = @{ - labels = @( - @{ - name = "changedLabel" - languageTag = "en-US" - isDefault = $true - } - ) -} - -Update-MgSiteTermStoreSetTerm -SiteId $siteId -SetId $setId -TermId $termId -BodyParameter $params +Get-MgSiteTermStoreGroupSetTerm -SiteId $siteId -GroupId $groupId -SetId $setId -TermId $termId ``` This example shows how to use the Update-MgSiteTermStoreSetTerm Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/beta/examples/Get-MgBetaChat.md b/src/Teams/beta/examples/Get-MgBetaChat.md index b3d437023d0..927ce84e625 100644 --- a/src/Teams/beta/examples/Get-MgBetaChat.md +++ b/src/Teams/beta/examples/Get-MgBetaChat.md @@ -1,12 +1,44 @@ -### Example 1: Code snippet +### Example 1: Get a group chat ```powershell Import-Module Microsoft.Graph.Beta.Teams -$params = @{ - topic = "Group chat title update" -} +Get-MgBetaChat -ChatId $chatId +``` +This example shows how to use the Get-MgBetaBetaChat Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Get a user's one on one chat + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +Get-MgBetaUserChat -UserId $userId -ChatId $chatId +``` +This example shows how to use the Get-MgBetaBetaChat Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Get a chat and all its members + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +Get-MgBetaChat -ChatId $chatId -ExpandProperty "members" +``` +This example shows how to use the Get-MgBetaBetaChat Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Get the meeting details of a chat associated with a Microsoft Teams meeting + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +Get-MgBetaChat -ChatId $chatId +``` +This example shows how to use the Get-MgBetaBetaChat Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 5: Get the chat along with the preview of the last message sent in the chat + +```powershell Import-Module Microsoft.Graph.Beta.Teams -Update-MgBetaChat -ChatId $chatId -BodyParameter $params +Get-MgBetaChat -ChatId $chatId -ExpandProperty "lastMessagePreview" ``` This example shows how to use the Get-MgBetaBetaChat Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/beta/examples/Get-MgBetaChatTab.md b/src/Teams/beta/examples/Get-MgBetaChatTab.md index 6a5e815c3fd..31c3e0b89c5 100644 --- a/src/Teams/beta/examples/Get-MgBetaChatTab.md +++ b/src/Teams/beta/examples/Get-MgBetaChatTab.md @@ -1,12 +1,8 @@ -### Example 1: Update the name of a tab in a chat +### Example 1: Code snippet ```powershell Import-Module Microsoft.Graph.Beta.Teams -$params = @{ - displayName = "My Contoso Tab - updated again" -} - -Update-MgBetaChatTab -ChatId $chatId -TeamsTabId $teamsTabId -BodyParameter $params +Get-MgBetaChatTab -ChatId $chatId -TeamsTabId $teamsTabId -ExpandProperty "teamsApp" ``` This example shows how to use the Get-MgBetaBetaChatTab Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/beta/examples/Get-MgBetaGroupTeamChannelMessage.md b/src/Teams/beta/examples/Get-MgBetaGroupTeamChannelMessage.md index eb04142ed21..be5e665099f 100644 --- a/src/Teams/beta/examples/Get-MgBetaGroupTeamChannelMessage.md +++ b/src/Teams/beta/examples/Get-MgBetaGroupTeamChannelMessage.md @@ -1,433 +1,26 @@ -### Example 1: Update policyViolation property using application permissions +### Example 1: Get a message in a chat ```powershell Import-Module Microsoft.Graph.Beta.Teams -$params = @{ - policyViolation = @{ - policyTip = @{ - generalText = "This item has been blocked by the administrator." - complianceUrl = "https://contoso.com/dlp-policy-page" - matchedConditionDescriptions = @( - "Credit Card Number" - ) - } - verdictDetails = "AllowOverrideWithoutJustification,AllowFalsePositiveOverride" - dlpAction = "BlockAccess" - } -} - -Update-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params -``` -This example shows how to use the Get-MgBetaBetaGroupTeamChannelMessage Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Update any property of a message using delegated permissions - -```powershell Import-Module Microsoft.Graph.Beta.Teams - -$params = @{ - messageType = "message" - subject = $null - summary = $null - importance = "normal" - locale = "en-us" - from = @{ - application = $null - device = $null - user = @{ - id = "3b102402-813e-4e17-a6b2-f841aef1fdfc" - displayName = "Lam Cong" - userIdentityType = "aadUser" - } - conversation = $null - } - body = @{ - contentType = "text" - content = "Edit text only" - } - attachments = @( - ) - mentions = @( - ) - reactions = @( - ) -} - -Update-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params +Get-MgBetaChatMessage -ChatId $chatId -ChatMessageId $chatMessageId ``` This example shows how to use the Get-MgBetaBetaGroupTeamChannelMessage Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Update the mentions of a message using delegated permissions +### Example 2: Get a message in a channel ```powershell Import-Module Microsoft.Graph.Beta.Teams -$params = @{ - messageType = "message" - deletedDateTime = $null - subject = $null - summary = $null - importance = "normal" - locale = "en-us" - from = @{ - application = $null - device = $null - conversation = $null - user = @{ - id = "6b3f3c54-d09c-4fdd-b146-9b514a8a4f40" - displayName = "Lam Cong" - userIdentityType = "aadUser" - } - } - body = @{ - contentType = "html" - content = "<div><div> -<div> -<div> -<div> -<div><at id="0">Raghav</at><at id="1">TestGlobalBot</at> YEAH" - } - attachments = @( - ) - mentions = @( - @{ - id = 0 - mentionText = "Raghav" - mentioned = @{ - application = $null - device = $null - conversation = $null - user = @{ - id = "f1b66449-b46d-49b0-9c3c-53c10234c818e" - displayName = "Lam Cong" - userIdentityType = "aadUser" - } - } - } - @{ - id = 1 - mentionText = "TestGlobalBot" - mentioned = @{ - application = @{ - id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" - displayName = "TestGlobalBot" - applicationIdentityType = "bot" - } - device = $null - conversation = $null - user = $null - } - } - ) - reactions = @( - ) -} - -Update-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params +Get-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId ``` This example shows how to use the Get-MgBetaBetaGroupTeamChannelMessage Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Update the content with attachments of a message using delegated permissions +### Example 3: Get reply to a message in a channel ```powershell Import-Module Microsoft.Graph.Beta.Teams -$params = @{ - messageType = "message" - subject = $null - summary = $null - importance = "normal" - locale = "en-us" - from = @{ - application = $null - device = $null - user = @{ - id = "3b102402-813e-4e17-a6b2-f841aef1fdfc" - displayName = "Lam Cong" - userIdentityType = "aadUser" - } - conversation = $null - } - body = @{ - contentType = "html" - content = "<p><em>text</em></p><attachment id="e8f78756199240b88448ae0fc6db112d"></attachment><attachment id="638464e32834471ea202007da60a5ae6"></attachment>" - } - attachments = @( - @{ - id = "e8f78756199240b88448ae0fc6db112d" - contentType = "application/vnd.microsoft.card.hero" - contentUrl = $null - content = "{ - "title": "*title*", - "subtitle": "*subtitle*", - "text": "Have you found yourself scratching your head trying to figure these questions out? Frustrated trying to access some of the goodies unique to the Microsoft Teams platform? Well, fear not, Bot Builder SDK Extension for Teams in .NET and Node flavors is here! Just head on over to Nuget or NPM to download our tasty helpers, sure to speed up your prep time so you can spend more time maximizing the flavor of the bots you're cooking up.Here???s a small sample of some recipes to whet your appetite.", - "images": [ - { - "url": "https://us-api.asm.skype.com/v1/objects/0-eus-d8-ced0c9567ee7b0b233b987bd32f9eacd/views/img_preview" - } - ], - "buttons": [ - { - "type": "openUrl", - "image": "https://urlp.asm.skype.com/v1/url/content?url=https%3a%2f%2fcdn2.iconfinder.com%2fdata%2ficons%2fsocial-icons-33%2f128%2fTrello-128.png", - "title": "???????? click me ????????", - "value": "http://microsoft.com" - }, - { - "type": "imback", - "title": "&i am back& <>= \"", - "value": "&i am back& <>= \"" - }, - { - "type": "openUrl", - "title": "Open URL", - "value": "http://google.com" - } - ] -}" - name = $null - thumbnailUrl = $null - } - @{ - id = "638464e32834471ea202007da60a5ae6" - contentType = "application/vnd.microsoft.card.hero" - contentUrl = $null - content = "{ - "title": "*title*", - "subtitle": "*subtitle*", - "text": "Have you found yourself scratching your head trying to figure these questions out? Frustrated trying to access some of the goodies unique to the Microsoft Teams platform? Well, fear not, Bot Builder SDK Extension for Teams in .NET and Node flavors is here! Just head on over to Nuget or NPM to download our tasty helpers, sure to speed up your prep time so you can spend more time maximizing the flavor of the bots you're cooking up.Here???s a small sample of some recipes to whet your appetite.", - "images": [ - { - "url": "https://us-api.asm.skype.com/v1/objects/0-eus-d8-ced0c9567ee7b0b233b987bd32f9eacd/views/img_preview" - } - ], - "buttons": [ - { - "type": "messageBack", - "title": "&message back& <>= \"", - "text": "text = &message back& <>= \"", - "displayText": "displayText = &message back& <>= \"", - "value": { - "text": "some text 2" - } - } - ] -}" - name = $null - thumbnailUrl = $null - } - ) - mentions = @( - ) - reactions = @( - ) -} - -Update-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params -``` -This example shows how to use the Get-MgBetaBetaGroupTeamChannelMessage Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 5: Update the reactions in a message using delegated permissions - -```powershell Import-Module Microsoft.Graph.Beta.Teams - -$params = @{ - messageType = "message" - subject = $null - summary = $null - importance = "normal" - locale = "en-us" - from = @{ - application = $null - device = $null - user = @{ - id = "3b102402-813e-4e17-a6b2-f841aef1fdfc" - displayName = "Lam Cong" - userIdentityType = "aadUser" - } - conversation = $null - } - body = @{ - contentType = "html" - content = "<p><em>text</em></p><attachment id="e8f78756199240b88448ae0fc6db112d"></attachment><attachment id="638464e32834471ea202007da60a5ae6"></attachment>" - } - attachments = @( - @{ - id = "e8f78756199240b88448ae0fc6db112d" - contentType = "application/vnd.microsoft.card.hero" - contentUrl = $null - content = "{ - "title": "*title*", - "subtitle": "*subtitle*", - "text": "Have you found yourself scratching your head trying to figure these questions out? Frustrated trying to access some of the goodies unique to the Microsoft Teams platform? Well, fear not, Bot Builder SDK Extension for Teams in .NET and Node flavors is here! Just head on over to Nuget or NPM to download our tasty helpers, sure to speed up your prep time so you can spend more time maximizing the flavor of the bots you're cooking up.Here???s a small sample of some recipes to whet your appetite.", - "images": [ - { - "url": "https://us-api.asm.skype.com/v1/objects/0-eus-d8-ced0c9567ee7b0b233b987bd32f9eacd/views/img_preview" - } - ], - "buttons": [ - { - "type": "openUrl", - "image": "https://urlp.asm.skype.com/v1/url/content?url=https%3a%2f%2fcdn2.iconfinder.com%2fdata%2ficons%2fsocial-icons-33%2f128%2fTrello-128.png", - "title": "???????? click me ????????", - "value": "http://microsoft.com" - }, - { - "type": "imback", - "title": "&i am back& <>= \"", - "value": "&i am back& <>= \"" - }, - { - "type": "openUrl", - "title": "Open URL", - "value": "http://google.com" - } - ] -}" - name = $null - thumbnailUrl = $null - } - @{ - id = "638464e32834471ea202007da60a5ae6" - contentType = "application/vnd.microsoft.card.hero" - contentUrl = $null - content = "{ - "title": "*title*", - "subtitle": "*subtitle*", - "text": "Have you found yourself scratching your head trying to figure these questions out? Frustrated trying to access some of the goodies unique to the Microsoft Teams platform? Well, fear not, Bot Builder SDK Extension for Teams in .NET and Node flavors is here! Just head on over to Nuget or NPM to download our tasty helpers, sure to speed up your prep time so you can spend more time maximizing the flavor of the bots you're cooking up.Here???s a small sample of some recipes to whet your appetite.", - "images": [ - { - "url": "https://us-api.asm.skype.com/v1/objects/0-eus-d8-ced0c9567ee7b0b233b987bd32f9eacd/views/img_preview" - } - ], - "buttons": [ - { - "type": "messageBack", - "title": "&message back& <>= \"", - "text": "text = &message back& <>= \"", - "displayText": "displayText = &message back& <>= \"", - "value": { - "text": "some text 2" - } - } - ] -}" - name = $null - thumbnailUrl = $null - } - ) - mentions = @( - ) - reactions = @( - @{ - reactionType = "angry" - createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:30.489Z") - user = @{ - application = $null - device = $null - user = @{ - id = "f1b66449-b46d-49b0-9c3c-53c10a5c818e" - displayName = $null - userIdentityType = "aadUser" - } - } - } - @{ - reactionType = "laugh" - createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:32.489Z") - user = @{ - application = $null - device = $null - user = @{ - id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" - displayName = $null - userIdentityType = "aadUser" - } - } - } - @{ - reactionType = "like" - createdDateTime = [System.DateTime]::Parse("2018-10-21T02:17:14.67Z") - user = @{ - application = $null - device = $null - user = @{ - id = "f1b66449-b46d-49b0-9c3c-53c10a5c818e" - displayName = $null - userIdentityType = "aadUser" - } - } - } - @{ - reactionType = "like" - createdDateTime = [System.DateTime]::Parse("2018-10-21T02:34:40.3Z") - user = @{ - application = $null - device = $null - user = @{ - id = "4c9041b7-449a-40f7-8855-56da239b9fd1" - displayName = $null - userIdentityType = "aadUser" - } - } - } - @{ - reactionType = "like" - createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:25.489Z") - user = @{ - application = $null - device = $null - user = @{ - id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" - displayName = $null - userIdentityType = "aadUser" - } - } - } - @{ - reactionType = "heart" - createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:31.489Z") - user = @{ - application = $null - device = $null - user = @{ - id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" - displayName = $null - userIdentityType = "aadUser" - } - } - } - @{ - reactionType = "sad" - createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:33.489Z") - user = @{ - application = $null - device = $null - user = @{ - id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" - displayName = $null - userIdentityType = "aadUser" - } - } - } - @{ - reactionType = "surprised" - createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:34.489Z") - user = @{ - application = $null - device = $null - user = @{ - id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" - displayName = $null - userIdentityType = "aadUser" - } - } - } - ) -} - -Update-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params +Get-MgBetaTeamChannelMessageReply -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -ChatMessageId1 $chatMessageId1 ``` This example shows how to use the Get-MgBetaBetaGroupTeamChannelMessage Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/beta/examples/Get-MgBetaGroupTeamMember.md b/src/Teams/beta/examples/Get-MgBetaGroupTeamMember.md index 1e7f0446448..14cbaa0d144 100644 --- a/src/Teams/beta/examples/Get-MgBetaGroupTeamMember.md +++ b/src/Teams/beta/examples/Get-MgBetaGroupTeamMember.md @@ -2,14 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Teams -$params = @{ - "@odata.type" = "#microsoft.graph.aadUserConversationMember" - roles = @( - "owner" - ) -} - -Update-MgBetaTeamMember -TeamId $teamId -ConversationMemberId $conversationMemberId -BodyParameter $params +Get-MgBetaTeamMember -TeamId $teamId -ConversationMemberId $conversationMemberId ``` This example shows how to use the Get-MgBetaBetaGroupTeamMember Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/beta/examples/Get-MgBetaGroupTeamPrimaryChannelMessage.md b/src/Teams/beta/examples/Get-MgBetaGroupTeamPrimaryChannelMessage.md index 7766c076818..3fd893943a9 100644 --- a/src/Teams/beta/examples/Get-MgBetaGroupTeamPrimaryChannelMessage.md +++ b/src/Teams/beta/examples/Get-MgBetaGroupTeamPrimaryChannelMessage.md @@ -1,433 +1,26 @@ -### Example 1: Update policyViolation property using application permissions +### Example 1: Get a message in a chat ```powershell Import-Module Microsoft.Graph.Beta.Teams -$params = @{ - policyViolation = @{ - policyTip = @{ - generalText = "This item has been blocked by the administrator." - complianceUrl = "https://contoso.com/dlp-policy-page" - matchedConditionDescriptions = @( - "Credit Card Number" - ) - } - verdictDetails = "AllowOverrideWithoutJustification,AllowFalsePositiveOverride" - dlpAction = "BlockAccess" - } -} - -Update-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params -``` -This example shows how to use the Get-MgBetaBetaGroupTeamPrimaryChannelMessage Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Update any property of a message using delegated permissions - -```powershell Import-Module Microsoft.Graph.Beta.Teams - -$params = @{ - messageType = "message" - subject = $null - summary = $null - importance = "normal" - locale = "en-us" - from = @{ - application = $null - device = $null - user = @{ - id = "3b102402-813e-4e17-a6b2-f841aef1fdfc" - displayName = "Lam Cong" - userIdentityType = "aadUser" - } - conversation = $null - } - body = @{ - contentType = "text" - content = "Edit text only" - } - attachments = @( - ) - mentions = @( - ) - reactions = @( - ) -} - -Update-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params +Get-MgBetaChatMessage -ChatId $chatId -ChatMessageId $chatMessageId ``` This example shows how to use the Get-MgBetaBetaGroupTeamPrimaryChannelMessage Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Update the mentions of a message using delegated permissions +### Example 2: Get a message in a channel ```powershell Import-Module Microsoft.Graph.Beta.Teams -$params = @{ - messageType = "message" - deletedDateTime = $null - subject = $null - summary = $null - importance = "normal" - locale = "en-us" - from = @{ - application = $null - device = $null - conversation = $null - user = @{ - id = "6b3f3c54-d09c-4fdd-b146-9b514a8a4f40" - displayName = "Lam Cong" - userIdentityType = "aadUser" - } - } - body = @{ - contentType = "html" - content = "<div><div> -<div> -<div> -<div> -<div><at id="0">Raghav</at><at id="1">TestGlobalBot</at> YEAH" - } - attachments = @( - ) - mentions = @( - @{ - id = 0 - mentionText = "Raghav" - mentioned = @{ - application = $null - device = $null - conversation = $null - user = @{ - id = "f1b66449-b46d-49b0-9c3c-53c10234c818e" - displayName = "Lam Cong" - userIdentityType = "aadUser" - } - } - } - @{ - id = 1 - mentionText = "TestGlobalBot" - mentioned = @{ - application = @{ - id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" - displayName = "TestGlobalBot" - applicationIdentityType = "bot" - } - device = $null - conversation = $null - user = $null - } - } - ) - reactions = @( - ) -} - -Update-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params +Get-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId ``` This example shows how to use the Get-MgBetaBetaGroupTeamPrimaryChannelMessage Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Update the content with attachments of a message using delegated permissions +### Example 3: Get reply to a message in a channel ```powershell Import-Module Microsoft.Graph.Beta.Teams -$params = @{ - messageType = "message" - subject = $null - summary = $null - importance = "normal" - locale = "en-us" - from = @{ - application = $null - device = $null - user = @{ - id = "3b102402-813e-4e17-a6b2-f841aef1fdfc" - displayName = "Lam Cong" - userIdentityType = "aadUser" - } - conversation = $null - } - body = @{ - contentType = "html" - content = "<p><em>text</em></p><attachment id="e8f78756199240b88448ae0fc6db112d"></attachment><attachment id="638464e32834471ea202007da60a5ae6"></attachment>" - } - attachments = @( - @{ - id = "e8f78756199240b88448ae0fc6db112d" - contentType = "application/vnd.microsoft.card.hero" - contentUrl = $null - content = "{ - "title": "*title*", - "subtitle": "*subtitle*", - "text": "Have you found yourself scratching your head trying to figure these questions out? Frustrated trying to access some of the goodies unique to the Microsoft Teams platform? Well, fear not, Bot Builder SDK Extension for Teams in .NET and Node flavors is here! Just head on over to Nuget or NPM to download our tasty helpers, sure to speed up your prep time so you can spend more time maximizing the flavor of the bots you're cooking up.Here???s a small sample of some recipes to whet your appetite.", - "images": [ - { - "url": "https://us-api.asm.skype.com/v1/objects/0-eus-d8-ced0c9567ee7b0b233b987bd32f9eacd/views/img_preview" - } - ], - "buttons": [ - { - "type": "openUrl", - "image": "https://urlp.asm.skype.com/v1/url/content?url=https%3a%2f%2fcdn2.iconfinder.com%2fdata%2ficons%2fsocial-icons-33%2f128%2fTrello-128.png", - "title": "???????? click me ????????", - "value": "http://microsoft.com" - }, - { - "type": "imback", - "title": "&i am back& <>= \"", - "value": "&i am back& <>= \"" - }, - { - "type": "openUrl", - "title": "Open URL", - "value": "http://google.com" - } - ] -}" - name = $null - thumbnailUrl = $null - } - @{ - id = "638464e32834471ea202007da60a5ae6" - contentType = "application/vnd.microsoft.card.hero" - contentUrl = $null - content = "{ - "title": "*title*", - "subtitle": "*subtitle*", - "text": "Have you found yourself scratching your head trying to figure these questions out? Frustrated trying to access some of the goodies unique to the Microsoft Teams platform? Well, fear not, Bot Builder SDK Extension for Teams in .NET and Node flavors is here! Just head on over to Nuget or NPM to download our tasty helpers, sure to speed up your prep time so you can spend more time maximizing the flavor of the bots you're cooking up.Here???s a small sample of some recipes to whet your appetite.", - "images": [ - { - "url": "https://us-api.asm.skype.com/v1/objects/0-eus-d8-ced0c9567ee7b0b233b987bd32f9eacd/views/img_preview" - } - ], - "buttons": [ - { - "type": "messageBack", - "title": "&message back& <>= \"", - "text": "text = &message back& <>= \"", - "displayText": "displayText = &message back& <>= \"", - "value": { - "text": "some text 2" - } - } - ] -}" - name = $null - thumbnailUrl = $null - } - ) - mentions = @( - ) - reactions = @( - ) -} - -Update-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params -``` -This example shows how to use the Get-MgBetaBetaGroupTeamPrimaryChannelMessage Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 5: Update the reactions in a message using delegated permissions - -```powershell Import-Module Microsoft.Graph.Beta.Teams - -$params = @{ - messageType = "message" - subject = $null - summary = $null - importance = "normal" - locale = "en-us" - from = @{ - application = $null - device = $null - user = @{ - id = "3b102402-813e-4e17-a6b2-f841aef1fdfc" - displayName = "Lam Cong" - userIdentityType = "aadUser" - } - conversation = $null - } - body = @{ - contentType = "html" - content = "<p><em>text</em></p><attachment id="e8f78756199240b88448ae0fc6db112d"></attachment><attachment id="638464e32834471ea202007da60a5ae6"></attachment>" - } - attachments = @( - @{ - id = "e8f78756199240b88448ae0fc6db112d" - contentType = "application/vnd.microsoft.card.hero" - contentUrl = $null - content = "{ - "title": "*title*", - "subtitle": "*subtitle*", - "text": "Have you found yourself scratching your head trying to figure these questions out? Frustrated trying to access some of the goodies unique to the Microsoft Teams platform? Well, fear not, Bot Builder SDK Extension for Teams in .NET and Node flavors is here! Just head on over to Nuget or NPM to download our tasty helpers, sure to speed up your prep time so you can spend more time maximizing the flavor of the bots you're cooking up.Here???s a small sample of some recipes to whet your appetite.", - "images": [ - { - "url": "https://us-api.asm.skype.com/v1/objects/0-eus-d8-ced0c9567ee7b0b233b987bd32f9eacd/views/img_preview" - } - ], - "buttons": [ - { - "type": "openUrl", - "image": "https://urlp.asm.skype.com/v1/url/content?url=https%3a%2f%2fcdn2.iconfinder.com%2fdata%2ficons%2fsocial-icons-33%2f128%2fTrello-128.png", - "title": "???????? click me ????????", - "value": "http://microsoft.com" - }, - { - "type": "imback", - "title": "&i am back& <>= \"", - "value": "&i am back& <>= \"" - }, - { - "type": "openUrl", - "title": "Open URL", - "value": "http://google.com" - } - ] -}" - name = $null - thumbnailUrl = $null - } - @{ - id = "638464e32834471ea202007da60a5ae6" - contentType = "application/vnd.microsoft.card.hero" - contentUrl = $null - content = "{ - "title": "*title*", - "subtitle": "*subtitle*", - "text": "Have you found yourself scratching your head trying to figure these questions out? Frustrated trying to access some of the goodies unique to the Microsoft Teams platform? Well, fear not, Bot Builder SDK Extension for Teams in .NET and Node flavors is here! Just head on over to Nuget or NPM to download our tasty helpers, sure to speed up your prep time so you can spend more time maximizing the flavor of the bots you're cooking up.Here???s a small sample of some recipes to whet your appetite.", - "images": [ - { - "url": "https://us-api.asm.skype.com/v1/objects/0-eus-d8-ced0c9567ee7b0b233b987bd32f9eacd/views/img_preview" - } - ], - "buttons": [ - { - "type": "messageBack", - "title": "&message back& <>= \"", - "text": "text = &message back& <>= \"", - "displayText": "displayText = &message back& <>= \"", - "value": { - "text": "some text 2" - } - } - ] -}" - name = $null - thumbnailUrl = $null - } - ) - mentions = @( - ) - reactions = @( - @{ - reactionType = "angry" - createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:30.489Z") - user = @{ - application = $null - device = $null - user = @{ - id = "f1b66449-b46d-49b0-9c3c-53c10a5c818e" - displayName = $null - userIdentityType = "aadUser" - } - } - } - @{ - reactionType = "laugh" - createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:32.489Z") - user = @{ - application = $null - device = $null - user = @{ - id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" - displayName = $null - userIdentityType = "aadUser" - } - } - } - @{ - reactionType = "like" - createdDateTime = [System.DateTime]::Parse("2018-10-21T02:17:14.67Z") - user = @{ - application = $null - device = $null - user = @{ - id = "f1b66449-b46d-49b0-9c3c-53c10a5c818e" - displayName = $null - userIdentityType = "aadUser" - } - } - } - @{ - reactionType = "like" - createdDateTime = [System.DateTime]::Parse("2018-10-21T02:34:40.3Z") - user = @{ - application = $null - device = $null - user = @{ - id = "4c9041b7-449a-40f7-8855-56da239b9fd1" - displayName = $null - userIdentityType = "aadUser" - } - } - } - @{ - reactionType = "like" - createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:25.489Z") - user = @{ - application = $null - device = $null - user = @{ - id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" - displayName = $null - userIdentityType = "aadUser" - } - } - } - @{ - reactionType = "heart" - createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:31.489Z") - user = @{ - application = $null - device = $null - user = @{ - id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" - displayName = $null - userIdentityType = "aadUser" - } - } - } - @{ - reactionType = "sad" - createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:33.489Z") - user = @{ - application = $null - device = $null - user = @{ - id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" - displayName = $null - userIdentityType = "aadUser" - } - } - } - @{ - reactionType = "surprised" - createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:34.489Z") - user = @{ - application = $null - device = $null - user = @{ - id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" - displayName = $null - userIdentityType = "aadUser" - } - } - } - ) -} - -Update-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params +Get-MgBetaTeamChannelMessageReply -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -ChatMessageId1 $chatMessageId1 ``` This example shows how to use the Get-MgBetaBetaGroupTeamPrimaryChannelMessage Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/beta/examples/Get-MgBetaGroupTeamScheduleOpenShift.md b/src/Teams/beta/examples/Get-MgBetaGroupTeamScheduleOpenShift.md index 2f549ba1bfc..d2a16a83f4c 100644 --- a/src/Teams/beta/examples/Get-MgBetaGroupTeamScheduleOpenShift.md +++ b/src/Teams/beta/examples/Get-MgBetaGroupTeamScheduleOpenShift.md @@ -2,29 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Teams -$params = @{ - schedulingGroupId = "TAG_228940ed-ff84-4e25-b129-1b395cf78be0" - sharedOpenShift = @{ - notes = "Inventory Management" - openSlotCount = 5 - displayName = "Field shift" - startDateTime = [System.DateTime]::Parse("2018-10-04T00:58:45.340Z") - endDateTime = [System.DateTime]::Parse("2018-10-04T09:50:45.332Z") - theme = "white" - activities = @( - @{ - isPaid = $true - startDateTime = [System.DateTime]::Parse("2018-10-04T00:58:45.340Z") - endDateTime = [System.DateTime]::Parse("2018-10-04T01:58:45.340Z") - code = "" - displayName = "Lunch" - } - ) - } - draftOpenShift = $null -} - -Update-MgBetaTeamScheduleOpenShift -TeamId $teamId -OpenShiftId $openShiftId -BodyParameter $params +Get-MgBetaTeamScheduleOpenShift -TeamId $teamId -OpenShiftId $openShiftId ``` This example shows how to use the Get-MgBetaBetaGroupTeamScheduleOpenShift Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/beta/examples/Get-MgBetaGroupTeamTag.md b/src/Teams/beta/examples/Get-MgBetaGroupTeamTag.md index 2432c414ed0..8bb6eb1d68d 100644 --- a/src/Teams/beta/examples/Get-MgBetaGroupTeamTag.md +++ b/src/Teams/beta/examples/Get-MgBetaGroupTeamTag.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Teams -$params = @{ - displayName = "Finance" -} - -Update-MgBetaTeamTag -TeamId $teamId -TeamworkTagId $teamworkTagId -BodyParameter $params +Get-MgBetaTeamTag -TeamId $teamId -TeamworkTagId $teamworkTagId ``` This example shows how to use the Get-MgBetaBetaGroupTeamTag Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/beta/examples/Get-MgBetaTeam.md b/src/Teams/beta/examples/Get-MgBetaTeam.md index 7b5b2e2dda3..082d0f46fd5 100644 --- a/src/Teams/beta/examples/Get-MgBetaTeam.md +++ b/src/Teams/beta/examples/Get-MgBetaTeam.md @@ -2,21 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Teams -$params = @{ - memberSettings = @{ - allowCreateUpdateChannels = $true - } - messagingSettings = @{ - allowUserEditMessages = $true - allowUserDeleteMessages = $true - } - funSettings = @{ - allowGiphy = $true - giphyContentRating = "strict" - } -} - -Update-MgBetaTeam -TeamId $teamId -BodyParameter $params +Get-MgBetaTeam -TeamId $teamId ``` This example shows how to use the Get-MgBetaBetaTeam Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/beta/examples/Get-MgBetaTeamChannelMessage.md b/src/Teams/beta/examples/Get-MgBetaTeamChannelMessage.md index 7327c6bffe5..b26597a1abd 100644 --- a/src/Teams/beta/examples/Get-MgBetaTeamChannelMessage.md +++ b/src/Teams/beta/examples/Get-MgBetaTeamChannelMessage.md @@ -1,433 +1,26 @@ -### Example 1: Update policyViolation property using application permissions +### Example 1: Get a message in a chat ```powershell Import-Module Microsoft.Graph.Beta.Teams -$params = @{ - policyViolation = @{ - policyTip = @{ - generalText = "This item has been blocked by the administrator." - complianceUrl = "https://contoso.com/dlp-policy-page" - matchedConditionDescriptions = @( - "Credit Card Number" - ) - } - verdictDetails = "AllowOverrideWithoutJustification,AllowFalsePositiveOverride" - dlpAction = "BlockAccess" - } -} - -Update-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params -``` -This example shows how to use the Get-MgBetaBetaTeamChannelMessage Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Update any property of a message using delegated permissions - -```powershell Import-Module Microsoft.Graph.Beta.Teams - -$params = @{ - messageType = "message" - subject = $null - summary = $null - importance = "normal" - locale = "en-us" - from = @{ - application = $null - device = $null - user = @{ - id = "3b102402-813e-4e17-a6b2-f841aef1fdfc" - displayName = "Lam Cong" - userIdentityType = "aadUser" - } - conversation = $null - } - body = @{ - contentType = "text" - content = "Edit text only" - } - attachments = @( - ) - mentions = @( - ) - reactions = @( - ) -} - -Update-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params +Get-MgBetaChatMessage -ChatId $chatId -ChatMessageId $chatMessageId ``` This example shows how to use the Get-MgBetaBetaTeamChannelMessage Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Update the mentions of a message using delegated permissions +### Example 2: Get a message in a channel ```powershell Import-Module Microsoft.Graph.Beta.Teams -$params = @{ - messageType = "message" - deletedDateTime = $null - subject = $null - summary = $null - importance = "normal" - locale = "en-us" - from = @{ - application = $null - device = $null - conversation = $null - user = @{ - id = "6b3f3c54-d09c-4fdd-b146-9b514a8a4f40" - displayName = "Lam Cong" - userIdentityType = "aadUser" - } - } - body = @{ - contentType = "html" - content = "<div><div> -<div> -<div> -<div> -<div><at id="0">Raghav</at><at id="1">TestGlobalBot</at> YEAH" - } - attachments = @( - ) - mentions = @( - @{ - id = 0 - mentionText = "Raghav" - mentioned = @{ - application = $null - device = $null - conversation = $null - user = @{ - id = "f1b66449-b46d-49b0-9c3c-53c10234c818e" - displayName = "Lam Cong" - userIdentityType = "aadUser" - } - } - } - @{ - id = 1 - mentionText = "TestGlobalBot" - mentioned = @{ - application = @{ - id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" - displayName = "TestGlobalBot" - applicationIdentityType = "bot" - } - device = $null - conversation = $null - user = $null - } - } - ) - reactions = @( - ) -} - -Update-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params +Get-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId ``` This example shows how to use the Get-MgBetaBetaTeamChannelMessage Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Update the content with attachments of a message using delegated permissions +### Example 3: Get reply to a message in a channel ```powershell Import-Module Microsoft.Graph.Beta.Teams -$params = @{ - messageType = "message" - subject = $null - summary = $null - importance = "normal" - locale = "en-us" - from = @{ - application = $null - device = $null - user = @{ - id = "3b102402-813e-4e17-a6b2-f841aef1fdfc" - displayName = "Lam Cong" - userIdentityType = "aadUser" - } - conversation = $null - } - body = @{ - contentType = "html" - content = "<p><em>text</em></p><attachment id="e8f78756199240b88448ae0fc6db112d"></attachment><attachment id="638464e32834471ea202007da60a5ae6"></attachment>" - } - attachments = @( - @{ - id = "e8f78756199240b88448ae0fc6db112d" - contentType = "application/vnd.microsoft.card.hero" - contentUrl = $null - content = "{ - "title": "*title*", - "subtitle": "*subtitle*", - "text": "Have you found yourself scratching your head trying to figure these questions out? Frustrated trying to access some of the goodies unique to the Microsoft Teams platform? Well, fear not, Bot Builder SDK Extension for Teams in .NET and Node flavors is here! Just head on over to Nuget or NPM to download our tasty helpers, sure to speed up your prep time so you can spend more time maximizing the flavor of the bots you're cooking up.Here???s a small sample of some recipes to whet your appetite.", - "images": [ - { - "url": "https://us-api.asm.skype.com/v1/objects/0-eus-d8-ced0c9567ee7b0b233b987bd32f9eacd/views/img_preview" - } - ], - "buttons": [ - { - "type": "openUrl", - "image": "https://urlp.asm.skype.com/v1/url/content?url=https%3a%2f%2fcdn2.iconfinder.com%2fdata%2ficons%2fsocial-icons-33%2f128%2fTrello-128.png", - "title": "???????? click me ????????", - "value": "http://microsoft.com" - }, - { - "type": "imback", - "title": "&i am back& <>= \"", - "value": "&i am back& <>= \"" - }, - { - "type": "openUrl", - "title": "Open URL", - "value": "http://google.com" - } - ] -}" - name = $null - thumbnailUrl = $null - } - @{ - id = "638464e32834471ea202007da60a5ae6" - contentType = "application/vnd.microsoft.card.hero" - contentUrl = $null - content = "{ - "title": "*title*", - "subtitle": "*subtitle*", - "text": "Have you found yourself scratching your head trying to figure these questions out? Frustrated trying to access some of the goodies unique to the Microsoft Teams platform? Well, fear not, Bot Builder SDK Extension for Teams in .NET and Node flavors is here! Just head on over to Nuget or NPM to download our tasty helpers, sure to speed up your prep time so you can spend more time maximizing the flavor of the bots you're cooking up.Here???s a small sample of some recipes to whet your appetite.", - "images": [ - { - "url": "https://us-api.asm.skype.com/v1/objects/0-eus-d8-ced0c9567ee7b0b233b987bd32f9eacd/views/img_preview" - } - ], - "buttons": [ - { - "type": "messageBack", - "title": "&message back& <>= \"", - "text": "text = &message back& <>= \"", - "displayText": "displayText = &message back& <>= \"", - "value": { - "text": "some text 2" - } - } - ] -}" - name = $null - thumbnailUrl = $null - } - ) - mentions = @( - ) - reactions = @( - ) -} - -Update-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params -``` -This example shows how to use the Get-MgBetaBetaTeamChannelMessage Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 5: Update the reactions in a message using delegated permissions - -```powershell Import-Module Microsoft.Graph.Beta.Teams - -$params = @{ - messageType = "message" - subject = $null - summary = $null - importance = "normal" - locale = "en-us" - from = @{ - application = $null - device = $null - user = @{ - id = "3b102402-813e-4e17-a6b2-f841aef1fdfc" - displayName = "Lam Cong" - userIdentityType = "aadUser" - } - conversation = $null - } - body = @{ - contentType = "html" - content = "<p><em>text</em></p><attachment id="e8f78756199240b88448ae0fc6db112d"></attachment><attachment id="638464e32834471ea202007da60a5ae6"></attachment>" - } - attachments = @( - @{ - id = "e8f78756199240b88448ae0fc6db112d" - contentType = "application/vnd.microsoft.card.hero" - contentUrl = $null - content = "{ - "title": "*title*", - "subtitle": "*subtitle*", - "text": "Have you found yourself scratching your head trying to figure these questions out? Frustrated trying to access some of the goodies unique to the Microsoft Teams platform? Well, fear not, Bot Builder SDK Extension for Teams in .NET and Node flavors is here! Just head on over to Nuget or NPM to download our tasty helpers, sure to speed up your prep time so you can spend more time maximizing the flavor of the bots you're cooking up.Here???s a small sample of some recipes to whet your appetite.", - "images": [ - { - "url": "https://us-api.asm.skype.com/v1/objects/0-eus-d8-ced0c9567ee7b0b233b987bd32f9eacd/views/img_preview" - } - ], - "buttons": [ - { - "type": "openUrl", - "image": "https://urlp.asm.skype.com/v1/url/content?url=https%3a%2f%2fcdn2.iconfinder.com%2fdata%2ficons%2fsocial-icons-33%2f128%2fTrello-128.png", - "title": "???????? click me ????????", - "value": "http://microsoft.com" - }, - { - "type": "imback", - "title": "&i am back& <>= \"", - "value": "&i am back& <>= \"" - }, - { - "type": "openUrl", - "title": "Open URL", - "value": "http://google.com" - } - ] -}" - name = $null - thumbnailUrl = $null - } - @{ - id = "638464e32834471ea202007da60a5ae6" - contentType = "application/vnd.microsoft.card.hero" - contentUrl = $null - content = "{ - "title": "*title*", - "subtitle": "*subtitle*", - "text": "Have you found yourself scratching your head trying to figure these questions out? Frustrated trying to access some of the goodies unique to the Microsoft Teams platform? Well, fear not, Bot Builder SDK Extension for Teams in .NET and Node flavors is here! Just head on over to Nuget or NPM to download our tasty helpers, sure to speed up your prep time so you can spend more time maximizing the flavor of the bots you're cooking up.Here???s a small sample of some recipes to whet your appetite.", - "images": [ - { - "url": "https://us-api.asm.skype.com/v1/objects/0-eus-d8-ced0c9567ee7b0b233b987bd32f9eacd/views/img_preview" - } - ], - "buttons": [ - { - "type": "messageBack", - "title": "&message back& <>= \"", - "text": "text = &message back& <>= \"", - "displayText": "displayText = &message back& <>= \"", - "value": { - "text": "some text 2" - } - } - ] -}" - name = $null - thumbnailUrl = $null - } - ) - mentions = @( - ) - reactions = @( - @{ - reactionType = "angry" - createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:30.489Z") - user = @{ - application = $null - device = $null - user = @{ - id = "f1b66449-b46d-49b0-9c3c-53c10a5c818e" - displayName = $null - userIdentityType = "aadUser" - } - } - } - @{ - reactionType = "laugh" - createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:32.489Z") - user = @{ - application = $null - device = $null - user = @{ - id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" - displayName = $null - userIdentityType = "aadUser" - } - } - } - @{ - reactionType = "like" - createdDateTime = [System.DateTime]::Parse("2018-10-21T02:17:14.67Z") - user = @{ - application = $null - device = $null - user = @{ - id = "f1b66449-b46d-49b0-9c3c-53c10a5c818e" - displayName = $null - userIdentityType = "aadUser" - } - } - } - @{ - reactionType = "like" - createdDateTime = [System.DateTime]::Parse("2018-10-21T02:34:40.3Z") - user = @{ - application = $null - device = $null - user = @{ - id = "4c9041b7-449a-40f7-8855-56da239b9fd1" - displayName = $null - userIdentityType = "aadUser" - } - } - } - @{ - reactionType = "like" - createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:25.489Z") - user = @{ - application = $null - device = $null - user = @{ - id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" - displayName = $null - userIdentityType = "aadUser" - } - } - } - @{ - reactionType = "heart" - createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:31.489Z") - user = @{ - application = $null - device = $null - user = @{ - id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" - displayName = $null - userIdentityType = "aadUser" - } - } - } - @{ - reactionType = "sad" - createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:33.489Z") - user = @{ - application = $null - device = $null - user = @{ - id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" - displayName = $null - userIdentityType = "aadUser" - } - } - } - @{ - reactionType = "surprised" - createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:34.489Z") - user = @{ - application = $null - device = $null - user = @{ - id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" - displayName = $null - userIdentityType = "aadUser" - } - } - } - ) -} - -Update-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params +Get-MgBetaTeamChannelMessageReply -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -ChatMessageId1 $chatMessageId1 ``` This example shows how to use the Get-MgBetaBetaTeamChannelMessage Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/beta/examples/Get-MgBetaTeamMember.md b/src/Teams/beta/examples/Get-MgBetaTeamMember.md index d4cbce01581..a6ee26f61ee 100644 --- a/src/Teams/beta/examples/Get-MgBetaTeamMember.md +++ b/src/Teams/beta/examples/Get-MgBetaTeamMember.md @@ -2,14 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Teams -$params = @{ - "@odata.type" = "#microsoft.graph.aadUserConversationMember" - roles = @( - "owner" - ) -} - -Update-MgBetaTeamMember -TeamId $teamId -ConversationMemberId $conversationMemberId -BodyParameter $params +Get-MgBetaTeamMember -TeamId $teamId -ConversationMemberId $conversationMemberId ``` This example shows how to use the Get-MgBetaBetaTeamMember Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/beta/examples/Get-MgBetaTeamPrimaryChannelMessage.md b/src/Teams/beta/examples/Get-MgBetaTeamPrimaryChannelMessage.md index 736b1f38f9d..baee1225c2a 100644 --- a/src/Teams/beta/examples/Get-MgBetaTeamPrimaryChannelMessage.md +++ b/src/Teams/beta/examples/Get-MgBetaTeamPrimaryChannelMessage.md @@ -1,433 +1,26 @@ -### Example 1: Update policyViolation property using application permissions +### Example 1: Get a message in a chat ```powershell Import-Module Microsoft.Graph.Beta.Teams -$params = @{ - policyViolation = @{ - policyTip = @{ - generalText = "This item has been blocked by the administrator." - complianceUrl = "https://contoso.com/dlp-policy-page" - matchedConditionDescriptions = @( - "Credit Card Number" - ) - } - verdictDetails = "AllowOverrideWithoutJustification,AllowFalsePositiveOverride" - dlpAction = "BlockAccess" - } -} - -Update-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params -``` -This example shows how to use the Get-MgBetaBetaTeamPrimaryChannelMessage Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Update any property of a message using delegated permissions - -```powershell Import-Module Microsoft.Graph.Beta.Teams - -$params = @{ - messageType = "message" - subject = $null - summary = $null - importance = "normal" - locale = "en-us" - from = @{ - application = $null - device = $null - user = @{ - id = "3b102402-813e-4e17-a6b2-f841aef1fdfc" - displayName = "Lam Cong" - userIdentityType = "aadUser" - } - conversation = $null - } - body = @{ - contentType = "text" - content = "Edit text only" - } - attachments = @( - ) - mentions = @( - ) - reactions = @( - ) -} - -Update-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params +Get-MgBetaChatMessage -ChatId $chatId -ChatMessageId $chatMessageId ``` This example shows how to use the Get-MgBetaBetaTeamPrimaryChannelMessage Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Update the mentions of a message using delegated permissions +### Example 2: Get a message in a channel ```powershell Import-Module Microsoft.Graph.Beta.Teams -$params = @{ - messageType = "message" - deletedDateTime = $null - subject = $null - summary = $null - importance = "normal" - locale = "en-us" - from = @{ - application = $null - device = $null - conversation = $null - user = @{ - id = "6b3f3c54-d09c-4fdd-b146-9b514a8a4f40" - displayName = "Lam Cong" - userIdentityType = "aadUser" - } - } - body = @{ - contentType = "html" - content = "<div><div> -<div> -<div> -<div> -<div><at id="0">Raghav</at><at id="1">TestGlobalBot</at> YEAH" - } - attachments = @( - ) - mentions = @( - @{ - id = 0 - mentionText = "Raghav" - mentioned = @{ - application = $null - device = $null - conversation = $null - user = @{ - id = "f1b66449-b46d-49b0-9c3c-53c10234c818e" - displayName = "Lam Cong" - userIdentityType = "aadUser" - } - } - } - @{ - id = 1 - mentionText = "TestGlobalBot" - mentioned = @{ - application = @{ - id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" - displayName = "TestGlobalBot" - applicationIdentityType = "bot" - } - device = $null - conversation = $null - user = $null - } - } - ) - reactions = @( - ) -} - -Update-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params +Get-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId ``` This example shows how to use the Get-MgBetaBetaTeamPrimaryChannelMessage Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Update the content with attachments of a message using delegated permissions +### Example 3: Get reply to a message in a channel ```powershell Import-Module Microsoft.Graph.Beta.Teams -$params = @{ - messageType = "message" - subject = $null - summary = $null - importance = "normal" - locale = "en-us" - from = @{ - application = $null - device = $null - user = @{ - id = "3b102402-813e-4e17-a6b2-f841aef1fdfc" - displayName = "Lam Cong" - userIdentityType = "aadUser" - } - conversation = $null - } - body = @{ - contentType = "html" - content = "<p><em>text</em></p><attachment id="e8f78756199240b88448ae0fc6db112d"></attachment><attachment id="638464e32834471ea202007da60a5ae6"></attachment>" - } - attachments = @( - @{ - id = "e8f78756199240b88448ae0fc6db112d" - contentType = "application/vnd.microsoft.card.hero" - contentUrl = $null - content = "{ - "title": "*title*", - "subtitle": "*subtitle*", - "text": "Have you found yourself scratching your head trying to figure these questions out? Frustrated trying to access some of the goodies unique to the Microsoft Teams platform? Well, fear not, Bot Builder SDK Extension for Teams in .NET and Node flavors is here! Just head on over to Nuget or NPM to download our tasty helpers, sure to speed up your prep time so you can spend more time maximizing the flavor of the bots you're cooking up.Here???s a small sample of some recipes to whet your appetite.", - "images": [ - { - "url": "https://us-api.asm.skype.com/v1/objects/0-eus-d8-ced0c9567ee7b0b233b987bd32f9eacd/views/img_preview" - } - ], - "buttons": [ - { - "type": "openUrl", - "image": "https://urlp.asm.skype.com/v1/url/content?url=https%3a%2f%2fcdn2.iconfinder.com%2fdata%2ficons%2fsocial-icons-33%2f128%2fTrello-128.png", - "title": "???????? click me ????????", - "value": "http://microsoft.com" - }, - { - "type": "imback", - "title": "&i am back& <>= \"", - "value": "&i am back& <>= \"" - }, - { - "type": "openUrl", - "title": "Open URL", - "value": "http://google.com" - } - ] -}" - name = $null - thumbnailUrl = $null - } - @{ - id = "638464e32834471ea202007da60a5ae6" - contentType = "application/vnd.microsoft.card.hero" - contentUrl = $null - content = "{ - "title": "*title*", - "subtitle": "*subtitle*", - "text": "Have you found yourself scratching your head trying to figure these questions out? Frustrated trying to access some of the goodies unique to the Microsoft Teams platform? Well, fear not, Bot Builder SDK Extension for Teams in .NET and Node flavors is here! Just head on over to Nuget or NPM to download our tasty helpers, sure to speed up your prep time so you can spend more time maximizing the flavor of the bots you're cooking up.Here???s a small sample of some recipes to whet your appetite.", - "images": [ - { - "url": "https://us-api.asm.skype.com/v1/objects/0-eus-d8-ced0c9567ee7b0b233b987bd32f9eacd/views/img_preview" - } - ], - "buttons": [ - { - "type": "messageBack", - "title": "&message back& <>= \"", - "text": "text = &message back& <>= \"", - "displayText": "displayText = &message back& <>= \"", - "value": { - "text": "some text 2" - } - } - ] -}" - name = $null - thumbnailUrl = $null - } - ) - mentions = @( - ) - reactions = @( - ) -} - -Update-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params -``` -This example shows how to use the Get-MgBetaBetaTeamPrimaryChannelMessage Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 5: Update the reactions in a message using delegated permissions - -```powershell Import-Module Microsoft.Graph.Beta.Teams - -$params = @{ - messageType = "message" - subject = $null - summary = $null - importance = "normal" - locale = "en-us" - from = @{ - application = $null - device = $null - user = @{ - id = "3b102402-813e-4e17-a6b2-f841aef1fdfc" - displayName = "Lam Cong" - userIdentityType = "aadUser" - } - conversation = $null - } - body = @{ - contentType = "html" - content = "<p><em>text</em></p><attachment id="e8f78756199240b88448ae0fc6db112d"></attachment><attachment id="638464e32834471ea202007da60a5ae6"></attachment>" - } - attachments = @( - @{ - id = "e8f78756199240b88448ae0fc6db112d" - contentType = "application/vnd.microsoft.card.hero" - contentUrl = $null - content = "{ - "title": "*title*", - "subtitle": "*subtitle*", - "text": "Have you found yourself scratching your head trying to figure these questions out? Frustrated trying to access some of the goodies unique to the Microsoft Teams platform? Well, fear not, Bot Builder SDK Extension for Teams in .NET and Node flavors is here! Just head on over to Nuget or NPM to download our tasty helpers, sure to speed up your prep time so you can spend more time maximizing the flavor of the bots you're cooking up.Here???s a small sample of some recipes to whet your appetite.", - "images": [ - { - "url": "https://us-api.asm.skype.com/v1/objects/0-eus-d8-ced0c9567ee7b0b233b987bd32f9eacd/views/img_preview" - } - ], - "buttons": [ - { - "type": "openUrl", - "image": "https://urlp.asm.skype.com/v1/url/content?url=https%3a%2f%2fcdn2.iconfinder.com%2fdata%2ficons%2fsocial-icons-33%2f128%2fTrello-128.png", - "title": "???????? click me ????????", - "value": "http://microsoft.com" - }, - { - "type": "imback", - "title": "&i am back& <>= \"", - "value": "&i am back& <>= \"" - }, - { - "type": "openUrl", - "title": "Open URL", - "value": "http://google.com" - } - ] -}" - name = $null - thumbnailUrl = $null - } - @{ - id = "638464e32834471ea202007da60a5ae6" - contentType = "application/vnd.microsoft.card.hero" - contentUrl = $null - content = "{ - "title": "*title*", - "subtitle": "*subtitle*", - "text": "Have you found yourself scratching your head trying to figure these questions out? Frustrated trying to access some of the goodies unique to the Microsoft Teams platform? Well, fear not, Bot Builder SDK Extension for Teams in .NET and Node flavors is here! Just head on over to Nuget or NPM to download our tasty helpers, sure to speed up your prep time so you can spend more time maximizing the flavor of the bots you're cooking up.Here???s a small sample of some recipes to whet your appetite.", - "images": [ - { - "url": "https://us-api.asm.skype.com/v1/objects/0-eus-d8-ced0c9567ee7b0b233b987bd32f9eacd/views/img_preview" - } - ], - "buttons": [ - { - "type": "messageBack", - "title": "&message back& <>= \"", - "text": "text = &message back& <>= \"", - "displayText": "displayText = &message back& <>= \"", - "value": { - "text": "some text 2" - } - } - ] -}" - name = $null - thumbnailUrl = $null - } - ) - mentions = @( - ) - reactions = @( - @{ - reactionType = "angry" - createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:30.489Z") - user = @{ - application = $null - device = $null - user = @{ - id = "f1b66449-b46d-49b0-9c3c-53c10a5c818e" - displayName = $null - userIdentityType = "aadUser" - } - } - } - @{ - reactionType = "laugh" - createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:32.489Z") - user = @{ - application = $null - device = $null - user = @{ - id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" - displayName = $null - userIdentityType = "aadUser" - } - } - } - @{ - reactionType = "like" - createdDateTime = [System.DateTime]::Parse("2018-10-21T02:17:14.67Z") - user = @{ - application = $null - device = $null - user = @{ - id = "f1b66449-b46d-49b0-9c3c-53c10a5c818e" - displayName = $null - userIdentityType = "aadUser" - } - } - } - @{ - reactionType = "like" - createdDateTime = [System.DateTime]::Parse("2018-10-21T02:34:40.3Z") - user = @{ - application = $null - device = $null - user = @{ - id = "4c9041b7-449a-40f7-8855-56da239b9fd1" - displayName = $null - userIdentityType = "aadUser" - } - } - } - @{ - reactionType = "like" - createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:25.489Z") - user = @{ - application = $null - device = $null - user = @{ - id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" - displayName = $null - userIdentityType = "aadUser" - } - } - } - @{ - reactionType = "heart" - createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:31.489Z") - user = @{ - application = $null - device = $null - user = @{ - id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" - displayName = $null - userIdentityType = "aadUser" - } - } - } - @{ - reactionType = "sad" - createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:33.489Z") - user = @{ - application = $null - device = $null - user = @{ - id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" - displayName = $null - userIdentityType = "aadUser" - } - } - } - @{ - reactionType = "surprised" - createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:34.489Z") - user = @{ - application = $null - device = $null - user = @{ - id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" - displayName = $null - userIdentityType = "aadUser" - } - } - } - ) -} - -Update-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params +Get-MgBetaTeamChannelMessageReply -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -ChatMessageId1 $chatMessageId1 ``` This example shows how to use the Get-MgBetaBetaTeamPrimaryChannelMessage Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/beta/examples/Get-MgBetaTeamScheduleOpenShift.md b/src/Teams/beta/examples/Get-MgBetaTeamScheduleOpenShift.md index c4b8a25aa0f..6a870c79391 100644 --- a/src/Teams/beta/examples/Get-MgBetaTeamScheduleOpenShift.md +++ b/src/Teams/beta/examples/Get-MgBetaTeamScheduleOpenShift.md @@ -2,29 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Teams -$params = @{ - schedulingGroupId = "TAG_228940ed-ff84-4e25-b129-1b395cf78be0" - sharedOpenShift = @{ - notes = "Inventory Management" - openSlotCount = 5 - displayName = "Field shift" - startDateTime = [System.DateTime]::Parse("2018-10-04T00:58:45.340Z") - endDateTime = [System.DateTime]::Parse("2018-10-04T09:50:45.332Z") - theme = "white" - activities = @( - @{ - isPaid = $true - startDateTime = [System.DateTime]::Parse("2018-10-04T00:58:45.340Z") - endDateTime = [System.DateTime]::Parse("2018-10-04T01:58:45.340Z") - code = "" - displayName = "Lunch" - } - ) - } - draftOpenShift = $null -} - -Update-MgBetaTeamScheduleOpenShift -TeamId $teamId -OpenShiftId $openShiftId -BodyParameter $params +Get-MgBetaTeamScheduleOpenShift -TeamId $teamId -OpenShiftId $openShiftId ``` This example shows how to use the Get-MgBetaBetaTeamScheduleOpenShift Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/beta/examples/Get-MgBetaTeamTag.md b/src/Teams/beta/examples/Get-MgBetaTeamTag.md index 541a9c53c05..ee571c1c6ea 100644 --- a/src/Teams/beta/examples/Get-MgBetaTeamTag.md +++ b/src/Teams/beta/examples/Get-MgBetaTeamTag.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Teams -$params = @{ - displayName = "Finance" -} - -Update-MgBetaTeamTag -TeamId $teamId -TeamworkTagId $teamworkTagId -BodyParameter $params +Get-MgBetaTeamTag -TeamId $teamId -TeamworkTagId $teamworkTagId ``` This example shows how to use the Get-MgBetaBetaTeamTag Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/beta/examples/Get-MgBetaTeamworkDeletedTeamChannelMember.md b/src/Teams/beta/examples/Get-MgBetaTeamworkDeletedTeamChannelMember.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Get-MgBetaTeamworkDeletedTeamChannelMember.md +++ b/src/Teams/beta/examples/Get-MgBetaTeamworkDeletedTeamChannelMember.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Get-MgBetaTeamworkWorkforceIntegration.md b/src/Teams/beta/examples/Get-MgBetaTeamworkWorkforceIntegration.md index f47fe02dee8..f81a849569a 100644 --- a/src/Teams/beta/examples/Get-MgBetaTeamworkWorkforceIntegration.md +++ b/src/Teams/beta/examples/Get-MgBetaTeamworkWorkforceIntegration.md @@ -2,19 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Teams -$params = @{ - displayName = "displayName-value" - apiVersion = 99 - encryption = @{ - protocol = "protocol-value" - secret = "secret-value" - } - isActive = $true - url = "url-value" - supportedEntities = "supportedEntities-value" -} - -Update-MgBetaTeamworkWorkforceIntegration -WorkforceIntegrationId $workforceIntegrationId -BodyParameter $params +Get-MgBetaTeamworkWorkforceIntegration -WorkforceIntegrationId $workforceIntegrationId ``` This example shows how to use the Get-MgBetaBetaTeamworkWorkforceIntegration Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/beta/examples/Get-MgBetaUserChatTab.md b/src/Teams/beta/examples/Get-MgBetaUserChatTab.md index 28e3638053f..1d41c436ab8 100644 --- a/src/Teams/beta/examples/Get-MgBetaUserChatTab.md +++ b/src/Teams/beta/examples/Get-MgBetaUserChatTab.md @@ -1,12 +1,8 @@ -### Example 1: Update the name of a tab in a chat +### Example 1: Code snippet ```powershell Import-Module Microsoft.Graph.Beta.Teams -$params = @{ - displayName = "My Contoso Tab - updated again" -} - -Update-MgBetaChatTab -ChatId $chatId -TeamsTabId $teamsTabId -BodyParameter $params +Get-MgBetaChatTab -ChatId $chatId -TeamsTabId $teamsTabId -ExpandProperty "teamsApp" ``` This example shows how to use the Get-MgBetaBetaUserChatTab Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/beta/examples/New-MgBetaChatMember.md b/src/Teams/beta/examples/New-MgBetaChatMember.md index 528200d0042..91f5e657bc1 100644 --- a/src/Teams/beta/examples/New-MgBetaChatMember.md +++ b/src/Teams/beta/examples/New-MgBetaChatMember.md @@ -1,4 +1,4 @@ -### Example 1: Add a single member to a chat and specify the timespan for the conversation history +### Example 1: Code snippet ```powershell Import-Module Microsoft.Graph.Beta.Teams @@ -16,7 +16,7 @@ New-MgBetaChatMember -ChatId $chatId -BodyParameter $params This example shows how to use the New-MgBetaBetaChatMember Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Adding a single member to a Microsoft Teams chat, sharing no chat history +### Example 2: Code snippet ```powershell Import-Module Microsoft.Graph.Beta.Teams @@ -33,7 +33,7 @@ New-MgBetaChatMember -ChatId $chatId -BodyParameter $params This example shows how to use the New-MgBetaBetaChatMember Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Adding a single member to a Microsoft Teams chat, sharing the whole history of the chat +### Example 3: Code snippet ```powershell Import-Module Microsoft.Graph.Beta.Teams @@ -51,7 +51,7 @@ New-MgBetaChatMember -ChatId $chatId -BodyParameter $params This example shows how to use the New-MgBetaBetaChatMember Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Add a single member to a chat using user principal name +### Example 4: Code snippet ```powershell Import-Module Microsoft.Graph.Beta.Teams diff --git a/src/Teams/beta/examples/New-MgBetaChatMessage.md b/src/Teams/beta/examples/New-MgBetaChatMessage.md index 5e5e063a250..2d3e51eaabb 100644 --- a/src/Teams/beta/examples/New-MgBetaChatMessage.md +++ b/src/Teams/beta/examples/New-MgBetaChatMessage.md @@ -307,6 +307,8 @@ $params = @{ ) reactions = @( ) + messageHistory = @( + ) } New-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params diff --git a/src/Teams/beta/examples/New-MgBetaGroupTeamChannelMessage.md b/src/Teams/beta/examples/New-MgBetaGroupTeamChannelMessage.md index 29c6d245c15..4040f8592d3 100644 --- a/src/Teams/beta/examples/New-MgBetaGroupTeamChannelMessage.md +++ b/src/Teams/beta/examples/New-MgBetaGroupTeamChannelMessage.md @@ -307,6 +307,8 @@ $params = @{ ) reactions = @( ) + messageHistory = @( + ) } New-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params diff --git a/src/Teams/beta/examples/New-MgBetaGroupTeamPrimaryChannelMessage.md b/src/Teams/beta/examples/New-MgBetaGroupTeamPrimaryChannelMessage.md index e3c2d317ceb..7e6c2a7b815 100644 --- a/src/Teams/beta/examples/New-MgBetaGroupTeamPrimaryChannelMessage.md +++ b/src/Teams/beta/examples/New-MgBetaGroupTeamPrimaryChannelMessage.md @@ -307,6 +307,8 @@ $params = @{ ) reactions = @( ) + messageHistory = @( + ) } New-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params diff --git a/src/Teams/beta/examples/New-MgBetaTeamChannelMessage.md b/src/Teams/beta/examples/New-MgBetaTeamChannelMessage.md index 26a0f91677a..04f6ba9fe44 100644 --- a/src/Teams/beta/examples/New-MgBetaTeamChannelMessage.md +++ b/src/Teams/beta/examples/New-MgBetaTeamChannelMessage.md @@ -307,6 +307,8 @@ $params = @{ ) reactions = @( ) + messageHistory = @( + ) } New-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params diff --git a/src/Teams/beta/examples/New-MgBetaTeamPrimaryChannelMessage.md b/src/Teams/beta/examples/New-MgBetaTeamPrimaryChannelMessage.md index c26078a42af..5e337095031 100644 --- a/src/Teams/beta/examples/New-MgBetaTeamPrimaryChannelMessage.md +++ b/src/Teams/beta/examples/New-MgBetaTeamPrimaryChannelMessage.md @@ -307,6 +307,8 @@ $params = @{ ) reactions = @( ) + messageHistory = @( + ) } New-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params diff --git a/src/Teams/beta/examples/New-MgBetaUserChat.md b/src/Teams/beta/examples/New-MgBetaUserChat.md index a06845dd2bb..2c16e5a3fb0 100644 --- a/src/Teams/beta/examples/New-MgBetaUserChat.md +++ b/src/Teams/beta/examples/New-MgBetaUserChat.md @@ -1,4 +1,4 @@ -### Example 1: Code snippet +### Example 1: List all chats ```powershell Import-Module Microsoft.Graph.Beta.Teams @@ -7,7 +7,7 @@ Get-MgBetaUserChat -UserId $userId This example shows how to use the New-MgBetaBetaUserChat Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Code snippet +### Example 2: List all chats along with the members of each chat ```powershell Import-Module Microsoft.Graph.Beta.Teams @@ -16,7 +16,7 @@ Get-MgBetaUserChat -UserId $userId -ExpandProperty "members" This example shows how to use the New-MgBetaBetaUserChat Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Code snippet +### Example 3: List all chats in order of the most to least recent chat messages ```powershell Import-Module Microsoft.Graph.Beta.Teams @@ -25,3 +25,12 @@ Get-MgBetaChat -Sort "lastMessagePreview/createdDateTime desc" This example shows how to use the New-MgBetaBetaUserChat Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: List chats along with the preview of the last message sent in the chat + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +Get-MgBetaChat -ExpandProperty "lastMessagePreview" +``` +This example shows how to use the New-MgBetaBetaUserChat Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/New-MgBetaUserChatMember.md b/src/Teams/beta/examples/New-MgBetaUserChatMember.md index ed60f084a42..d9dccdccf64 100644 --- a/src/Teams/beta/examples/New-MgBetaUserChatMember.md +++ b/src/Teams/beta/examples/New-MgBetaUserChatMember.md @@ -1,4 +1,4 @@ -### Example 1: Add a single member to a chat and specify the timespan for the conversation history +### Example 1: Code snippet ```powershell Import-Module Microsoft.Graph.Beta.Teams @@ -16,7 +16,7 @@ New-MgBetaChatMember -ChatId $chatId -BodyParameter $params This example shows how to use the New-MgBetaBetaUserChatMember Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Adding a single member to a Microsoft Teams chat, sharing no chat history +### Example 2: Code snippet ```powershell Import-Module Microsoft.Graph.Beta.Teams @@ -33,7 +33,7 @@ New-MgBetaChatMember -ChatId $chatId -BodyParameter $params This example shows how to use the New-MgBetaBetaUserChatMember Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Adding a single member to a Microsoft Teams chat, sharing the whole history of the chat +### Example 3: Code snippet ```powershell Import-Module Microsoft.Graph.Beta.Teams @@ -51,7 +51,7 @@ New-MgBetaChatMember -ChatId $chatId -BodyParameter $params This example shows how to use the New-MgBetaBetaUserChatMember Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Add a single member to a chat using user principal name +### Example 4: Code snippet ```powershell Import-Module Microsoft.Graph.Beta.Teams diff --git a/src/Teams/beta/examples/New-MgBetaUserChatMessage.md b/src/Teams/beta/examples/New-MgBetaUserChatMessage.md index b16c3245e2c..39f33b4df2d 100644 --- a/src/Teams/beta/examples/New-MgBetaUserChatMessage.md +++ b/src/Teams/beta/examples/New-MgBetaUserChatMessage.md @@ -307,6 +307,8 @@ $params = @{ ) reactions = @( ) + messageHistory = @( + ) } New-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params diff --git a/src/Teams/beta/examples/Remove-MgBetaChat.md b/src/Teams/beta/examples/Remove-MgBetaChat.md index 1ac68c2da75..1bb83836541 100644 --- a/src/Teams/beta/examples/Remove-MgBetaChat.md +++ b/src/Teams/beta/examples/Remove-MgBetaChat.md @@ -1,12 +1,44 @@ -### Example 1: Code snippet +### Example 1: Get a group chat ```powershell Import-Module Microsoft.Graph.Beta.Teams -$params = @{ - topic = "Group chat title update" -} +Get-MgBetaChat -ChatId $chatId +``` +This example shows how to use the Remove-MgBetaBetaChat Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Get a user's one on one chat + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +Get-MgBetaUserChat -UserId $userId -ChatId $chatId +``` +This example shows how to use the Remove-MgBetaBetaChat Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Get a chat and all its members + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +Get-MgBetaChat -ChatId $chatId -ExpandProperty "members" +``` +This example shows how to use the Remove-MgBetaBetaChat Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Get the meeting details of a chat associated with a Microsoft Teams meeting + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +Get-MgBetaChat -ChatId $chatId +``` +This example shows how to use the Remove-MgBetaBetaChat Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 5: Get the chat along with the preview of the last message sent in the chat + +```powershell Import-Module Microsoft.Graph.Beta.Teams -Update-MgBetaChat -ChatId $chatId -BodyParameter $params +Get-MgBetaChat -ChatId $chatId -ExpandProperty "lastMessagePreview" ``` This example shows how to use the Remove-MgBetaBetaChat Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/beta/examples/Remove-MgBetaChatTab.md b/src/Teams/beta/examples/Remove-MgBetaChatTab.md index 2552028f601..5d2cb3f4294 100644 --- a/src/Teams/beta/examples/Remove-MgBetaChatTab.md +++ b/src/Teams/beta/examples/Remove-MgBetaChatTab.md @@ -1,12 +1,8 @@ -### Example 1: Update the name of a tab in a chat +### Example 1: Code snippet ```powershell Import-Module Microsoft.Graph.Beta.Teams -$params = @{ - displayName = "My Contoso Tab - updated again" -} - -Update-MgBetaChatTab -ChatId $chatId -TeamsTabId $teamsTabId -BodyParameter $params +Get-MgBetaChatTab -ChatId $chatId -TeamsTabId $teamsTabId -ExpandProperty "teamsApp" ``` This example shows how to use the Remove-MgBetaBetaChatTab Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/beta/examples/Remove-MgBetaGroupTeamChannelMember.md b/src/Teams/beta/examples/Remove-MgBetaGroupTeamChannelMember.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Remove-MgBetaGroupTeamChannelMember.md +++ b/src/Teams/beta/examples/Remove-MgBetaGroupTeamChannelMember.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Remove-MgBetaGroupTeamPrimaryChannelMember.md b/src/Teams/beta/examples/Remove-MgBetaGroupTeamPrimaryChannelMember.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Remove-MgBetaGroupTeamPrimaryChannelMember.md +++ b/src/Teams/beta/examples/Remove-MgBetaGroupTeamPrimaryChannelMember.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Remove-MgBetaGroupTeamScheduleSchedulingGroup.md b/src/Teams/beta/examples/Remove-MgBetaGroupTeamScheduleSchedulingGroup.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Remove-MgBetaGroupTeamScheduleSchedulingGroup.md +++ b/src/Teams/beta/examples/Remove-MgBetaGroupTeamScheduleSchedulingGroup.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Remove-MgBetaGroupTeamScheduleShift.md b/src/Teams/beta/examples/Remove-MgBetaGroupTeamScheduleShift.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Remove-MgBetaGroupTeamScheduleShift.md +++ b/src/Teams/beta/examples/Remove-MgBetaGroupTeamScheduleShift.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Remove-MgBetaGroupTeamScheduleTimeOff.md b/src/Teams/beta/examples/Remove-MgBetaGroupTeamScheduleTimeOff.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Remove-MgBetaGroupTeamScheduleTimeOff.md +++ b/src/Teams/beta/examples/Remove-MgBetaGroupTeamScheduleTimeOff.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Remove-MgBetaGroupTeamScheduleTimeOffReason.md b/src/Teams/beta/examples/Remove-MgBetaGroupTeamScheduleTimeOffReason.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Remove-MgBetaGroupTeamScheduleTimeOffReason.md +++ b/src/Teams/beta/examples/Remove-MgBetaGroupTeamScheduleTimeOffReason.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Remove-MgBetaTeam.md b/src/Teams/beta/examples/Remove-MgBetaTeam.md index 93834f3f8ba..ee6aaaf1c01 100644 --- a/src/Teams/beta/examples/Remove-MgBetaTeam.md +++ b/src/Teams/beta/examples/Remove-MgBetaTeam.md @@ -2,21 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Teams -$params = @{ - memberSettings = @{ - allowCreateUpdateChannels = $true - } - messagingSettings = @{ - allowUserEditMessages = $true - allowUserDeleteMessages = $true - } - funSettings = @{ - allowGiphy = $true - giphyContentRating = "strict" - } -} - -Update-MgBetaTeam -TeamId $teamId -BodyParameter $params +Get-MgBetaTeam -TeamId $teamId ``` This example shows how to use the Remove-MgBetaBetaTeam Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/beta/examples/Remove-MgBetaTeamChannel.md b/src/Teams/beta/examples/Remove-MgBetaTeamChannel.md index 889c6588c4b..d33070cc598 100644 --- a/src/Teams/beta/examples/Remove-MgBetaTeamChannel.md +++ b/src/Teams/beta/examples/Remove-MgBetaTeamChannel.md @@ -2,7 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Teams -Update-MgBetaTeamChannel -TeamId $teamId -ChannelId $channelId +Get-MgBetaTeamChannel -TeamId $teamId -ChannelId $channelId ``` This example shows how to use the Remove-MgBetaBetaTeamChannel Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/beta/examples/Remove-MgBetaTeamMember.md b/src/Teams/beta/examples/Remove-MgBetaTeamMember.md index e275d260838..2acc2011175 100644 --- a/src/Teams/beta/examples/Remove-MgBetaTeamMember.md +++ b/src/Teams/beta/examples/Remove-MgBetaTeamMember.md @@ -2,14 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Teams -$params = @{ - "@odata.type" = "#microsoft.graph.aadUserConversationMember" - roles = @( - "owner" - ) -} - -Update-MgBetaTeamMember -TeamId $teamId -ConversationMemberId $conversationMemberId -BodyParameter $params +Get-MgBetaTeamMember -TeamId $teamId -ConversationMemberId $conversationMemberId ``` This example shows how to use the Remove-MgBetaBetaTeamMember Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/beta/examples/Remove-MgBetaTeamPrimaryChannelMember.md b/src/Teams/beta/examples/Remove-MgBetaTeamPrimaryChannelMember.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Remove-MgBetaTeamPrimaryChannelMember.md +++ b/src/Teams/beta/examples/Remove-MgBetaTeamPrimaryChannelMember.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Remove-MgBetaTeamScheduleOpenShift.md b/src/Teams/beta/examples/Remove-MgBetaTeamScheduleOpenShift.md index 70604233560..09675fbae21 100644 --- a/src/Teams/beta/examples/Remove-MgBetaTeamScheduleOpenShift.md +++ b/src/Teams/beta/examples/Remove-MgBetaTeamScheduleOpenShift.md @@ -2,29 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Teams -$params = @{ - schedulingGroupId = "TAG_228940ed-ff84-4e25-b129-1b395cf78be0" - sharedOpenShift = @{ - notes = "Inventory Management" - openSlotCount = 5 - displayName = "Field shift" - startDateTime = [System.DateTime]::Parse("2018-10-04T00:58:45.340Z") - endDateTime = [System.DateTime]::Parse("2018-10-04T09:50:45.332Z") - theme = "white" - activities = @( - @{ - isPaid = $true - startDateTime = [System.DateTime]::Parse("2018-10-04T00:58:45.340Z") - endDateTime = [System.DateTime]::Parse("2018-10-04T01:58:45.340Z") - code = "" - displayName = "Lunch" - } - ) - } - draftOpenShift = $null -} - -Update-MgBetaTeamScheduleOpenShift -TeamId $teamId -OpenShiftId $openShiftId -BodyParameter $params +Get-MgBetaTeamScheduleOpenShift -TeamId $teamId -OpenShiftId $openShiftId ``` This example shows how to use the Remove-MgBetaBetaTeamScheduleOpenShift Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/beta/examples/Remove-MgBetaTeamTag.md b/src/Teams/beta/examples/Remove-MgBetaTeamTag.md index 00e00733aa4..5b5b1d2cb4f 100644 --- a/src/Teams/beta/examples/Remove-MgBetaTeamTag.md +++ b/src/Teams/beta/examples/Remove-MgBetaTeamTag.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Teams -$params = @{ - displayName = "Finance" -} - -Update-MgBetaTeamTag -TeamId $teamId -TeamworkTagId $teamworkTagId -BodyParameter $params +Get-MgBetaTeamTag -TeamId $teamId -TeamworkTagId $teamworkTagId ``` This example shows how to use the Remove-MgBetaBetaTeamTag Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/beta/examples/Remove-MgBetaTeamworkDeletedTeamChannelMember.md b/src/Teams/beta/examples/Remove-MgBetaTeamworkDeletedTeamChannelMember.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Remove-MgBetaTeamworkDeletedTeamChannelMember.md +++ b/src/Teams/beta/examples/Remove-MgBetaTeamworkDeletedTeamChannelMember.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Remove-MgBetaTeamworkWorkforceIntegration.md b/src/Teams/beta/examples/Remove-MgBetaTeamworkWorkforceIntegration.md index 1fd664de8a6..877e7ce03f0 100644 --- a/src/Teams/beta/examples/Remove-MgBetaTeamworkWorkforceIntegration.md +++ b/src/Teams/beta/examples/Remove-MgBetaTeamworkWorkforceIntegration.md @@ -2,19 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Teams -$params = @{ - displayName = "displayName-value" - apiVersion = 99 - encryption = @{ - protocol = "protocol-value" - secret = "secret-value" - } - isActive = $true - url = "url-value" - supportedEntities = "supportedEntities-value" -} - -Update-MgBetaTeamworkWorkforceIntegration -WorkforceIntegrationId $workforceIntegrationId -BodyParameter $params +Get-MgBetaTeamworkWorkforceIntegration -WorkforceIntegrationId $workforceIntegrationId ``` This example shows how to use the Remove-MgBetaBetaTeamworkWorkforceIntegration Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/beta/examples/Update-MgBetaChat.md b/src/Teams/beta/examples/Update-MgBetaChat.md index 9e27e8e7c13..46390bb647c 100644 --- a/src/Teams/beta/examples/Update-MgBetaChat.md +++ b/src/Teams/beta/examples/Update-MgBetaChat.md @@ -1,12 +1,44 @@ -### Example 1: Code snippet +### Example 1: Get a group chat ```powershell Import-Module Microsoft.Graph.Beta.Teams -$params = @{ - topic = "Group chat title update" -} +Get-MgBetaChat -ChatId $chatId +``` +This example shows how to use the Update-MgBetaBetaChat Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Get a user's one on one chat + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +Get-MgBetaUserChat -UserId $userId -ChatId $chatId +``` +This example shows how to use the Update-MgBetaBetaChat Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Get a chat and all its members + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +Get-MgBetaChat -ChatId $chatId -ExpandProperty "members" +``` +This example shows how to use the Update-MgBetaBetaChat Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Get the meeting details of a chat associated with a Microsoft Teams meeting + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +Get-MgBetaChat -ChatId $chatId +``` +This example shows how to use the Update-MgBetaBetaChat Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 5: Get the chat along with the preview of the last message sent in the chat + +```powershell Import-Module Microsoft.Graph.Beta.Teams -Update-MgBetaChat -ChatId $chatId -BodyParameter $params +Get-MgBetaChat -ChatId $chatId -ExpandProperty "lastMessagePreview" ``` This example shows how to use the Update-MgBetaBetaChat Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/beta/examples/Update-MgBetaChatTab.md b/src/Teams/beta/examples/Update-MgBetaChatTab.md index 174feae4dc5..e5c5d8a90a9 100644 --- a/src/Teams/beta/examples/Update-MgBetaChatTab.md +++ b/src/Teams/beta/examples/Update-MgBetaChatTab.md @@ -1,12 +1,8 @@ -### Example 1: Update the name of a tab in a chat +### Example 1: Code snippet ```powershell Import-Module Microsoft.Graph.Beta.Teams -$params = @{ - displayName = "My Contoso Tab - updated again" -} - -Update-MgBetaChatTab -ChatId $chatId -TeamsTabId $teamsTabId -BodyParameter $params +Get-MgBetaChatTab -ChatId $chatId -TeamsTabId $teamsTabId -ExpandProperty "teamsApp" ``` This example shows how to use the Update-MgBetaBetaChatTab Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/beta/examples/Update-MgBetaGroupTeamChannelMember.md b/src/Teams/beta/examples/Update-MgBetaGroupTeamChannelMember.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Update-MgBetaGroupTeamChannelMember.md +++ b/src/Teams/beta/examples/Update-MgBetaGroupTeamChannelMember.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Update-MgBetaGroupTeamPrimaryChannelMember.md b/src/Teams/beta/examples/Update-MgBetaGroupTeamPrimaryChannelMember.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Update-MgBetaGroupTeamPrimaryChannelMember.md +++ b/src/Teams/beta/examples/Update-MgBetaGroupTeamPrimaryChannelMember.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Update-MgBetaGroupTeamScheduleSchedulingGroup.md b/src/Teams/beta/examples/Update-MgBetaGroupTeamScheduleSchedulingGroup.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Update-MgBetaGroupTeamScheduleSchedulingGroup.md +++ b/src/Teams/beta/examples/Update-MgBetaGroupTeamScheduleSchedulingGroup.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Update-MgBetaGroupTeamScheduleShift.md b/src/Teams/beta/examples/Update-MgBetaGroupTeamScheduleShift.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Update-MgBetaGroupTeamScheduleShift.md +++ b/src/Teams/beta/examples/Update-MgBetaGroupTeamScheduleShift.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Update-MgBetaGroupTeamScheduleTimeOff.md b/src/Teams/beta/examples/Update-MgBetaGroupTeamScheduleTimeOff.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Update-MgBetaGroupTeamScheduleTimeOff.md +++ b/src/Teams/beta/examples/Update-MgBetaGroupTeamScheduleTimeOff.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Update-MgBetaGroupTeamScheduleTimeOffReason.md b/src/Teams/beta/examples/Update-MgBetaGroupTeamScheduleTimeOffReason.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Update-MgBetaGroupTeamScheduleTimeOffReason.md +++ b/src/Teams/beta/examples/Update-MgBetaGroupTeamScheduleTimeOffReason.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Update-MgBetaTeam.md b/src/Teams/beta/examples/Update-MgBetaTeam.md index fabad1d51c2..c80b1c0e08b 100644 --- a/src/Teams/beta/examples/Update-MgBetaTeam.md +++ b/src/Teams/beta/examples/Update-MgBetaTeam.md @@ -2,21 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Teams -$params = @{ - memberSettings = @{ - allowCreateUpdateChannels = $true - } - messagingSettings = @{ - allowUserEditMessages = $true - allowUserDeleteMessages = $true - } - funSettings = @{ - allowGiphy = $true - giphyContentRating = "strict" - } -} - -Update-MgBetaTeam -TeamId $teamId -BodyParameter $params +Get-MgBetaTeam -TeamId $teamId ``` This example shows how to use the Update-MgBetaBetaTeam Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/beta/examples/Update-MgBetaTeamChannel.md b/src/Teams/beta/examples/Update-MgBetaTeamChannel.md index a976aa02b5d..881d20d3730 100644 --- a/src/Teams/beta/examples/Update-MgBetaTeamChannel.md +++ b/src/Teams/beta/examples/Update-MgBetaTeamChannel.md @@ -2,7 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Teams -Update-MgBetaTeamChannel -TeamId $teamId -ChannelId $channelId +Get-MgBetaTeamChannel -TeamId $teamId -ChannelId $channelId ``` This example shows how to use the Update-MgBetaBetaTeamChannel Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/beta/examples/Update-MgBetaTeamChannelMessage.md b/src/Teams/beta/examples/Update-MgBetaTeamChannelMessage.md index f6646122168..0bfbb6dbbd8 100644 --- a/src/Teams/beta/examples/Update-MgBetaTeamChannelMessage.md +++ b/src/Teams/beta/examples/Update-MgBetaTeamChannelMessage.md @@ -1,433 +1,26 @@ -### Example 1: Update policyViolation property using application permissions +### Example 1: Get a message in a chat ```powershell Import-Module Microsoft.Graph.Beta.Teams -$params = @{ - policyViolation = @{ - policyTip = @{ - generalText = "This item has been blocked by the administrator." - complianceUrl = "https://contoso.com/dlp-policy-page" - matchedConditionDescriptions = @( - "Credit Card Number" - ) - } - verdictDetails = "AllowOverrideWithoutJustification,AllowFalsePositiveOverride" - dlpAction = "BlockAccess" - } -} - -Update-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaBetaTeamChannelMessage Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Update any property of a message using delegated permissions - -```powershell Import-Module Microsoft.Graph.Beta.Teams - -$params = @{ - messageType = "message" - subject = $null - summary = $null - importance = "normal" - locale = "en-us" - from = @{ - application = $null - device = $null - user = @{ - id = "3b102402-813e-4e17-a6b2-f841aef1fdfc" - displayName = "Lam Cong" - userIdentityType = "aadUser" - } - conversation = $null - } - body = @{ - contentType = "text" - content = "Edit text only" - } - attachments = @( - ) - mentions = @( - ) - reactions = @( - ) -} - -Update-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params +Get-MgBetaChatMessage -ChatId $chatId -ChatMessageId $chatMessageId ``` This example shows how to use the Update-MgBetaBetaTeamChannelMessage Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Update the mentions of a message using delegated permissions +### Example 2: Get a message in a channel ```powershell Import-Module Microsoft.Graph.Beta.Teams -$params = @{ - messageType = "message" - deletedDateTime = $null - subject = $null - summary = $null - importance = "normal" - locale = "en-us" - from = @{ - application = $null - device = $null - conversation = $null - user = @{ - id = "6b3f3c54-d09c-4fdd-b146-9b514a8a4f40" - displayName = "Lam Cong" - userIdentityType = "aadUser" - } - } - body = @{ - contentType = "html" - content = "<div><div> -<div> -<div> -<div> -<div><at id="0">Raghav</at><at id="1">TestGlobalBot</at> YEAH" - } - attachments = @( - ) - mentions = @( - @{ - id = 0 - mentionText = "Raghav" - mentioned = @{ - application = $null - device = $null - conversation = $null - user = @{ - id = "f1b66449-b46d-49b0-9c3c-53c10234c818e" - displayName = "Lam Cong" - userIdentityType = "aadUser" - } - } - } - @{ - id = 1 - mentionText = "TestGlobalBot" - mentioned = @{ - application = @{ - id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" - displayName = "TestGlobalBot" - applicationIdentityType = "bot" - } - device = $null - conversation = $null - user = $null - } - } - ) - reactions = @( - ) -} - -Update-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params +Get-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId ``` This example shows how to use the Update-MgBetaBetaTeamChannelMessage Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Update the content with attachments of a message using delegated permissions +### Example 3: Get reply to a message in a channel ```powershell Import-Module Microsoft.Graph.Beta.Teams -$params = @{ - messageType = "message" - subject = $null - summary = $null - importance = "normal" - locale = "en-us" - from = @{ - application = $null - device = $null - user = @{ - id = "3b102402-813e-4e17-a6b2-f841aef1fdfc" - displayName = "Lam Cong" - userIdentityType = "aadUser" - } - conversation = $null - } - body = @{ - contentType = "html" - content = "<p><em>text</em></p><attachment id="e8f78756199240b88448ae0fc6db112d"></attachment><attachment id="638464e32834471ea202007da60a5ae6"></attachment>" - } - attachments = @( - @{ - id = "e8f78756199240b88448ae0fc6db112d" - contentType = "application/vnd.microsoft.card.hero" - contentUrl = $null - content = "{ - "title": "*title*", - "subtitle": "*subtitle*", - "text": "Have you found yourself scratching your head trying to figure these questions out? Frustrated trying to access some of the goodies unique to the Microsoft Teams platform? Well, fear not, Bot Builder SDK Extension for Teams in .NET and Node flavors is here! Just head on over to Nuget or NPM to download our tasty helpers, sure to speed up your prep time so you can spend more time maximizing the flavor of the bots you're cooking up.Here???s a small sample of some recipes to whet your appetite.", - "images": [ - { - "url": "https://us-api.asm.skype.com/v1/objects/0-eus-d8-ced0c9567ee7b0b233b987bd32f9eacd/views/img_preview" - } - ], - "buttons": [ - { - "type": "openUrl", - "image": "https://urlp.asm.skype.com/v1/url/content?url=https%3a%2f%2fcdn2.iconfinder.com%2fdata%2ficons%2fsocial-icons-33%2f128%2fTrello-128.png", - "title": "???????? click me ????????", - "value": "http://microsoft.com" - }, - { - "type": "imback", - "title": "&i am back& <>= \"", - "value": "&i am back& <>= \"" - }, - { - "type": "openUrl", - "title": "Open URL", - "value": "http://google.com" - } - ] -}" - name = $null - thumbnailUrl = $null - } - @{ - id = "638464e32834471ea202007da60a5ae6" - contentType = "application/vnd.microsoft.card.hero" - contentUrl = $null - content = "{ - "title": "*title*", - "subtitle": "*subtitle*", - "text": "Have you found yourself scratching your head trying to figure these questions out? Frustrated trying to access some of the goodies unique to the Microsoft Teams platform? Well, fear not, Bot Builder SDK Extension for Teams in .NET and Node flavors is here! Just head on over to Nuget or NPM to download our tasty helpers, sure to speed up your prep time so you can spend more time maximizing the flavor of the bots you're cooking up.Here???s a small sample of some recipes to whet your appetite.", - "images": [ - { - "url": "https://us-api.asm.skype.com/v1/objects/0-eus-d8-ced0c9567ee7b0b233b987bd32f9eacd/views/img_preview" - } - ], - "buttons": [ - { - "type": "messageBack", - "title": "&message back& <>= \"", - "text": "text = &message back& <>= \"", - "displayText": "displayText = &message back& <>= \"", - "value": { - "text": "some text 2" - } - } - ] -}" - name = $null - thumbnailUrl = $null - } - ) - mentions = @( - ) - reactions = @( - ) -} - -Update-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaBetaTeamChannelMessage Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 5: Update the reactions in a message using delegated permissions - -```powershell Import-Module Microsoft.Graph.Beta.Teams - -$params = @{ - messageType = "message" - subject = $null - summary = $null - importance = "normal" - locale = "en-us" - from = @{ - application = $null - device = $null - user = @{ - id = "3b102402-813e-4e17-a6b2-f841aef1fdfc" - displayName = "Lam Cong" - userIdentityType = "aadUser" - } - conversation = $null - } - body = @{ - contentType = "html" - content = "<p><em>text</em></p><attachment id="e8f78756199240b88448ae0fc6db112d"></attachment><attachment id="638464e32834471ea202007da60a5ae6"></attachment>" - } - attachments = @( - @{ - id = "e8f78756199240b88448ae0fc6db112d" - contentType = "application/vnd.microsoft.card.hero" - contentUrl = $null - content = "{ - "title": "*title*", - "subtitle": "*subtitle*", - "text": "Have you found yourself scratching your head trying to figure these questions out? Frustrated trying to access some of the goodies unique to the Microsoft Teams platform? Well, fear not, Bot Builder SDK Extension for Teams in .NET and Node flavors is here! Just head on over to Nuget or NPM to download our tasty helpers, sure to speed up your prep time so you can spend more time maximizing the flavor of the bots you're cooking up.Here???s a small sample of some recipes to whet your appetite.", - "images": [ - { - "url": "https://us-api.asm.skype.com/v1/objects/0-eus-d8-ced0c9567ee7b0b233b987bd32f9eacd/views/img_preview" - } - ], - "buttons": [ - { - "type": "openUrl", - "image": "https://urlp.asm.skype.com/v1/url/content?url=https%3a%2f%2fcdn2.iconfinder.com%2fdata%2ficons%2fsocial-icons-33%2f128%2fTrello-128.png", - "title": "???????? click me ????????", - "value": "http://microsoft.com" - }, - { - "type": "imback", - "title": "&i am back& <>= \"", - "value": "&i am back& <>= \"" - }, - { - "type": "openUrl", - "title": "Open URL", - "value": "http://google.com" - } - ] -}" - name = $null - thumbnailUrl = $null - } - @{ - id = "638464e32834471ea202007da60a5ae6" - contentType = "application/vnd.microsoft.card.hero" - contentUrl = $null - content = "{ - "title": "*title*", - "subtitle": "*subtitle*", - "text": "Have you found yourself scratching your head trying to figure these questions out? Frustrated trying to access some of the goodies unique to the Microsoft Teams platform? Well, fear not, Bot Builder SDK Extension for Teams in .NET and Node flavors is here! Just head on over to Nuget or NPM to download our tasty helpers, sure to speed up your prep time so you can spend more time maximizing the flavor of the bots you're cooking up.Here???s a small sample of some recipes to whet your appetite.", - "images": [ - { - "url": "https://us-api.asm.skype.com/v1/objects/0-eus-d8-ced0c9567ee7b0b233b987bd32f9eacd/views/img_preview" - } - ], - "buttons": [ - { - "type": "messageBack", - "title": "&message back& <>= \"", - "text": "text = &message back& <>= \"", - "displayText": "displayText = &message back& <>= \"", - "value": { - "text": "some text 2" - } - } - ] -}" - name = $null - thumbnailUrl = $null - } - ) - mentions = @( - ) - reactions = @( - @{ - reactionType = "angry" - createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:30.489Z") - user = @{ - application = $null - device = $null - user = @{ - id = "f1b66449-b46d-49b0-9c3c-53c10a5c818e" - displayName = $null - userIdentityType = "aadUser" - } - } - } - @{ - reactionType = "laugh" - createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:32.489Z") - user = @{ - application = $null - device = $null - user = @{ - id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" - displayName = $null - userIdentityType = "aadUser" - } - } - } - @{ - reactionType = "like" - createdDateTime = [System.DateTime]::Parse("2018-10-21T02:17:14.67Z") - user = @{ - application = $null - device = $null - user = @{ - id = "f1b66449-b46d-49b0-9c3c-53c10a5c818e" - displayName = $null - userIdentityType = "aadUser" - } - } - } - @{ - reactionType = "like" - createdDateTime = [System.DateTime]::Parse("2018-10-21T02:34:40.3Z") - user = @{ - application = $null - device = $null - user = @{ - id = "4c9041b7-449a-40f7-8855-56da239b9fd1" - displayName = $null - userIdentityType = "aadUser" - } - } - } - @{ - reactionType = "like" - createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:25.489Z") - user = @{ - application = $null - device = $null - user = @{ - id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" - displayName = $null - userIdentityType = "aadUser" - } - } - } - @{ - reactionType = "heart" - createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:31.489Z") - user = @{ - application = $null - device = $null - user = @{ - id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" - displayName = $null - userIdentityType = "aadUser" - } - } - } - @{ - reactionType = "sad" - createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:33.489Z") - user = @{ - application = $null - device = $null - user = @{ - id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" - displayName = $null - userIdentityType = "aadUser" - } - } - } - @{ - reactionType = "surprised" - createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:34.489Z") - user = @{ - application = $null - device = $null - user = @{ - id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" - displayName = $null - userIdentityType = "aadUser" - } - } - } - ) -} - -Update-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params +Get-MgBetaTeamChannelMessageReply -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -ChatMessageId1 $chatMessageId1 ``` This example shows how to use the Update-MgBetaBetaTeamChannelMessage Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/beta/examples/Update-MgBetaTeamMember.md b/src/Teams/beta/examples/Update-MgBetaTeamMember.md index d43d25588fa..8cd0facb1e8 100644 --- a/src/Teams/beta/examples/Update-MgBetaTeamMember.md +++ b/src/Teams/beta/examples/Update-MgBetaTeamMember.md @@ -2,14 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Teams -$params = @{ - "@odata.type" = "#microsoft.graph.aadUserConversationMember" - roles = @( - "owner" - ) -} - -Update-MgBetaTeamMember -TeamId $teamId -ConversationMemberId $conversationMemberId -BodyParameter $params +Get-MgBetaTeamMember -TeamId $teamId -ConversationMemberId $conversationMemberId ``` This example shows how to use the Update-MgBetaBetaTeamMember Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/beta/examples/Update-MgBetaTeamPrimaryChannelMember.md b/src/Teams/beta/examples/Update-MgBetaTeamPrimaryChannelMember.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Update-MgBetaTeamPrimaryChannelMember.md +++ b/src/Teams/beta/examples/Update-MgBetaTeamPrimaryChannelMember.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Update-MgBetaTeamScheduleSchedulingGroup.md b/src/Teams/beta/examples/Update-MgBetaTeamScheduleSchedulingGroup.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Update-MgBetaTeamScheduleSchedulingGroup.md +++ b/src/Teams/beta/examples/Update-MgBetaTeamScheduleSchedulingGroup.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Update-MgBetaTeamScheduleShift.md b/src/Teams/beta/examples/Update-MgBetaTeamScheduleShift.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Update-MgBetaTeamScheduleShift.md +++ b/src/Teams/beta/examples/Update-MgBetaTeamScheduleShift.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Update-MgBetaTeamScheduleTimeOff.md b/src/Teams/beta/examples/Update-MgBetaTeamScheduleTimeOff.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Update-MgBetaTeamScheduleTimeOff.md +++ b/src/Teams/beta/examples/Update-MgBetaTeamScheduleTimeOff.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Update-MgBetaTeamScheduleTimeOffReason.md b/src/Teams/beta/examples/Update-MgBetaTeamScheduleTimeOffReason.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Update-MgBetaTeamScheduleTimeOffReason.md +++ b/src/Teams/beta/examples/Update-MgBetaTeamScheduleTimeOffReason.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Update-MgBetaTeamTag.md b/src/Teams/beta/examples/Update-MgBetaTeamTag.md index a5e30db82a1..d1250968909 100644 --- a/src/Teams/beta/examples/Update-MgBetaTeamTag.md +++ b/src/Teams/beta/examples/Update-MgBetaTeamTag.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Teams -$params = @{ - displayName = "Finance" -} - -Update-MgBetaTeamTag -TeamId $teamId -TeamworkTagId $teamworkTagId -BodyParameter $params +Get-MgBetaTeamTag -TeamId $teamId -TeamworkTagId $teamworkTagId ``` This example shows how to use the Update-MgBetaBetaTeamTag Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/beta/examples/Update-MgBetaTeamworkDeletedTeamChannelMember.md b/src/Teams/beta/examples/Update-MgBetaTeamworkDeletedTeamChannelMember.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Update-MgBetaTeamworkDeletedTeamChannelMember.md +++ b/src/Teams/beta/examples/Update-MgBetaTeamworkDeletedTeamChannelMember.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Update-MgBetaTeamworkWorkforceIntegration.md b/src/Teams/beta/examples/Update-MgBetaTeamworkWorkforceIntegration.md index 09fbf46cd3b..35f7d437f34 100644 --- a/src/Teams/beta/examples/Update-MgBetaTeamworkWorkforceIntegration.md +++ b/src/Teams/beta/examples/Update-MgBetaTeamworkWorkforceIntegration.md @@ -2,19 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Teams -$params = @{ - displayName = "displayName-value" - apiVersion = 99 - encryption = @{ - protocol = "protocol-value" - secret = "secret-value" - } - isActive = $true - url = "url-value" - supportedEntities = "supportedEntities-value" -} - -Update-MgBetaTeamworkWorkforceIntegration -WorkforceIntegrationId $workforceIntegrationId -BodyParameter $params +Get-MgBetaTeamworkWorkforceIntegration -WorkforceIntegrationId $workforceIntegrationId ``` This example shows how to use the Update-MgBetaBetaTeamworkWorkforceIntegration Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/v1.0/examples/Get-MgChat.md b/src/Teams/v1.0/examples/Get-MgChat.md index a61a1a0d739..738a1325831 100644 --- a/src/Teams/v1.0/examples/Get-MgChat.md +++ b/src/Teams/v1.0/examples/Get-MgChat.md @@ -1,12 +1,44 @@ -### Example 1: Code snippet +### Example 1: Get a group chat ```powershell Import-Module Microsoft.Graph.Teams -$params = @{ - topic = "Group chat title update" -} +Get-MgChat -ChatId $chatId +``` +This example shows how to use the Get-MgChat Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Get a user's one on one chat + +```powershell Import-Module Microsoft.Graph.Teams + +Get-MgUserChat -UserId $userId -ChatId $chatId +``` +This example shows how to use the Get-MgChat Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Get a chat and all its members + +```powershell Import-Module Microsoft.Graph.Teams + +Get-MgChat -ChatId $chatId -ExpandProperty "members" +``` +This example shows how to use the Get-MgChat Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Get the meeting details of a chat associated with a Microsoft Teams meeting + +```powershell Import-Module Microsoft.Graph.Teams + +Get-MgChat -ChatId $chatId +``` +This example shows how to use the Get-MgChat Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 5: Get the chat along with the preview of the last message sent in the chat + +```powershell Import-Module Microsoft.Graph.Teams -Update-MgChat -ChatId $chatId -BodyParameter $params +Get-MgChat -ChatId $chatId -ExpandProperty "lastMessagePreview" ``` This example shows how to use the Get-MgChat Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/v1.0/examples/Get-MgChatTab.md b/src/Teams/v1.0/examples/Get-MgChatTab.md index 13a80806423..c88a5a585c8 100644 --- a/src/Teams/v1.0/examples/Get-MgChatTab.md +++ b/src/Teams/v1.0/examples/Get-MgChatTab.md @@ -1,12 +1,8 @@ -### Example 1: Update the name of a tab in a chat +### Example 1: Code snippet ```powershell Import-Module Microsoft.Graph.Teams -$params = @{ - displayName = "My Contoso Tab - updated again" -} - -Update-MgChatTab -ChatId $chatId -TeamsTabId $teamsTabId -BodyParameter $params +Get-MgChatTab -ChatId $chatId -TeamsTabId $teamsTabId -ExpandProperty "teamsApp" ``` This example shows how to use the Get-MgChatTab Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/v1.0/examples/Get-MgGroupTeamChannelMessage.md b/src/Teams/v1.0/examples/Get-MgGroupTeamChannelMessage.md index 3f87765483f..a0079da4ee1 100644 --- a/src/Teams/v1.0/examples/Get-MgGroupTeamChannelMessage.md +++ b/src/Teams/v1.0/examples/Get-MgGroupTeamChannelMessage.md @@ -1,433 +1,26 @@ -### Example 1: Update policyViolation property using application permissions +### Example 1: Get a message in a chat ```powershell Import-Module Microsoft.Graph.Teams -$params = @{ - policyViolation = @{ - policyTip = @{ - generalText = "This item has been blocked by the administrator." - complianceUrl = "https://contoso.com/dlp-policy-page" - matchedConditionDescriptions = @( - "Credit Card Number" - ) - } - verdictDetails = "AllowOverrideWithoutJustification,AllowFalsePositiveOverride" - dlpAction = "BlockAccess" - } -} - -Update-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params -``` -This example shows how to use the Get-MgGroupTeamChannelMessage Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Update any property of a message using delegated permissions - -```powershell Import-Module Microsoft.Graph.Teams - -$params = @{ - messageType = "message" - subject = $null - summary = $null - importance = "normal" - locale = "en-us" - from = @{ - application = $null - device = $null - user = @{ - id = "3b102402-813e-4e17-a6b2-f841aef1fdfc" - displayName = "Lam Cong" - userIdentityType = "aadUser" - } - conversation = $null - } - body = @{ - contentType = "text" - content = "Edit text only" - } - attachments = @( - ) - mentions = @( - ) - reactions = @( - ) -} - -Update-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params +Get-MgChatMessage -ChatId $chatId -ChatMessageId $chatMessageId ``` This example shows how to use the Get-MgGroupTeamChannelMessage Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Update the mentions of a message using delegated permissions +### Example 2: Get a message in a channel ```powershell Import-Module Microsoft.Graph.Teams -$params = @{ - messageType = "message" - deletedDateTime = $null - subject = $null - summary = $null - importance = "normal" - locale = "en-us" - from = @{ - application = $null - device = $null - conversation = $null - user = @{ - id = "6b3f3c54-d09c-4fdd-b146-9b514a8a4f40" - displayName = "Lam Cong" - userIdentityType = "aadUser" - } - } - body = @{ - contentType = "html" - content = "<div><div> -<div> -<div> -<div> -<div><at id="0">Raghav</at><at id="1">TestGlobalBot</at> YEAH" - } - attachments = @( - ) - mentions = @( - @{ - id = 0 - mentionText = "Raghav" - mentioned = @{ - application = $null - device = $null - conversation = $null - user = @{ - id = "f1b66449-b46d-49b0-9c3c-53c10234c818e" - displayName = "Lam Cong" - userIdentityType = "aadUser" - } - } - } - @{ - id = 1 - mentionText = "TestGlobalBot" - mentioned = @{ - application = @{ - id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" - displayName = "TestGlobalBot" - applicationIdentityType = "bot" - } - device = $null - conversation = $null - user = $null - } - } - ) - reactions = @( - ) -} - -Update-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params +Get-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId ``` This example shows how to use the Get-MgGroupTeamChannelMessage Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Update the content with attachments of a message using delegated permissions +### Example 3: Get reply to a message in a channel ```powershell Import-Module Microsoft.Graph.Teams -$params = @{ - messageType = "message" - subject = $null - summary = $null - importance = "normal" - locale = "en-us" - from = @{ - application = $null - device = $null - user = @{ - id = "3b102402-813e-4e17-a6b2-f841aef1fdfc" - displayName = "Lam Cong" - userIdentityType = "aadUser" - } - conversation = $null - } - body = @{ - contentType = "html" - content = "<p><em>text</em></p><attachment id="e8f78756199240b88448ae0fc6db112d"></attachment><attachment id="638464e32834471ea202007da60a5ae6"></attachment>" - } - attachments = @( - @{ - id = "e8f78756199240b88448ae0fc6db112d" - contentType = "application/vnd.microsoft.card.hero" - contentUrl = $null - content = "{ - "title": "*title*", - "subtitle": "*subtitle*", - "text": "Have you found yourself scratching your head trying to figure these questions out? Frustrated trying to access some of the goodies unique to the Microsoft Teams platform? Well, fear not, Bot Builder SDK Extension for Teams in .NET and Node flavors is here! Just head on over to Nuget or NPM to download our tasty helpers, sure to speed up your prep time so you can spend more time maximizing the flavor of the bots you're cooking up.Here???s a small sample of some recipes to whet your appetite.", - "images": [ - { - "url": "https://us-api.asm.skype.com/v1/objects/0-eus-d8-ced0c9567ee7b0b233b987bd32f9eacd/views/img_preview" - } - ], - "buttons": [ - { - "type": "openUrl", - "image": "https://urlp.asm.skype.com/v1/url/content?url=https%3a%2f%2fcdn2.iconfinder.com%2fdata%2ficons%2fsocial-icons-33%2f128%2fTrello-128.png", - "title": "???????? click me ????????", - "value": "http://microsoft.com" - }, - { - "type": "imback", - "title": "&i am back& <>= \"", - "value": "&i am back& <>= \"" - }, - { - "type": "openUrl", - "title": "Open URL", - "value": "http://google.com" - } - ] -}" - name = $null - thumbnailUrl = $null - } - @{ - id = "638464e32834471ea202007da60a5ae6" - contentType = "application/vnd.microsoft.card.hero" - contentUrl = $null - content = "{ - "title": "*title*", - "subtitle": "*subtitle*", - "text": "Have you found yourself scratching your head trying to figure these questions out? Frustrated trying to access some of the goodies unique to the Microsoft Teams platform? Well, fear not, Bot Builder SDK Extension for Teams in .NET and Node flavors is here! Just head on over to Nuget or NPM to download our tasty helpers, sure to speed up your prep time so you can spend more time maximizing the flavor of the bots you're cooking up.Here???s a small sample of some recipes to whet your appetite.", - "images": [ - { - "url": "https://us-api.asm.skype.com/v1/objects/0-eus-d8-ced0c9567ee7b0b233b987bd32f9eacd/views/img_preview" - } - ], - "buttons": [ - { - "type": "messageBack", - "title": "&message back& <>= \"", - "text": "text = &message back& <>= \"", - "displayText": "displayText = &message back& <>= \"", - "value": { - "text": "some text 2" - } - } - ] -}" - name = $null - thumbnailUrl = $null - } - ) - mentions = @( - ) - reactions = @( - ) -} - -Update-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params -``` -This example shows how to use the Get-MgGroupTeamChannelMessage Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 5: Update the reactions in a message using delegated permissions - -```powershell Import-Module Microsoft.Graph.Teams - -$params = @{ - messageType = "message" - subject = $null - summary = $null - importance = "normal" - locale = "en-us" - from = @{ - application = $null - device = $null - user = @{ - id = "3b102402-813e-4e17-a6b2-f841aef1fdfc" - displayName = "Lam Cong" - userIdentityType = "aadUser" - } - conversation = $null - } - body = @{ - contentType = "html" - content = "<p><em>text</em></p><attachment id="e8f78756199240b88448ae0fc6db112d"></attachment><attachment id="638464e32834471ea202007da60a5ae6"></attachment>" - } - attachments = @( - @{ - id = "e8f78756199240b88448ae0fc6db112d" - contentType = "application/vnd.microsoft.card.hero" - contentUrl = $null - content = "{ - "title": "*title*", - "subtitle": "*subtitle*", - "text": "Have you found yourself scratching your head trying to figure these questions out? Frustrated trying to access some of the goodies unique to the Microsoft Teams platform? Well, fear not, Bot Builder SDK Extension for Teams in .NET and Node flavors is here! Just head on over to Nuget or NPM to download our tasty helpers, sure to speed up your prep time so you can spend more time maximizing the flavor of the bots you're cooking up.Here???s a small sample of some recipes to whet your appetite.", - "images": [ - { - "url": "https://us-api.asm.skype.com/v1/objects/0-eus-d8-ced0c9567ee7b0b233b987bd32f9eacd/views/img_preview" - } - ], - "buttons": [ - { - "type": "openUrl", - "image": "https://urlp.asm.skype.com/v1/url/content?url=https%3a%2f%2fcdn2.iconfinder.com%2fdata%2ficons%2fsocial-icons-33%2f128%2fTrello-128.png", - "title": "???????? click me ????????", - "value": "http://microsoft.com" - }, - { - "type": "imback", - "title": "&i am back& <>= \"", - "value": "&i am back& <>= \"" - }, - { - "type": "openUrl", - "title": "Open URL", - "value": "http://google.com" - } - ] -}" - name = $null - thumbnailUrl = $null - } - @{ - id = "638464e32834471ea202007da60a5ae6" - contentType = "application/vnd.microsoft.card.hero" - contentUrl = $null - content = "{ - "title": "*title*", - "subtitle": "*subtitle*", - "text": "Have you found yourself scratching your head trying to figure these questions out? Frustrated trying to access some of the goodies unique to the Microsoft Teams platform? Well, fear not, Bot Builder SDK Extension for Teams in .NET and Node flavors is here! Just head on over to Nuget or NPM to download our tasty helpers, sure to speed up your prep time so you can spend more time maximizing the flavor of the bots you're cooking up.Here???s a small sample of some recipes to whet your appetite.", - "images": [ - { - "url": "https://us-api.asm.skype.com/v1/objects/0-eus-d8-ced0c9567ee7b0b233b987bd32f9eacd/views/img_preview" - } - ], - "buttons": [ - { - "type": "messageBack", - "title": "&message back& <>= \"", - "text": "text = &message back& <>= \"", - "displayText": "displayText = &message back& <>= \"", - "value": { - "text": "some text 2" - } - } - ] -}" - name = $null - thumbnailUrl = $null - } - ) - mentions = @( - ) - reactions = @( - @{ - reactionType = "angry" - createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:30.489Z") - user = @{ - application = $null - device = $null - user = @{ - id = "f1b66449-b46d-49b0-9c3c-53c10a5c818e" - displayName = $null - userIdentityType = "aadUser" - } - } - } - @{ - reactionType = "laugh" - createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:32.489Z") - user = @{ - application = $null - device = $null - user = @{ - id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" - displayName = $null - userIdentityType = "aadUser" - } - } - } - @{ - reactionType = "like" - createdDateTime = [System.DateTime]::Parse("2018-10-21T02:17:14.67Z") - user = @{ - application = $null - device = $null - user = @{ - id = "f1b66449-b46d-49b0-9c3c-53c10a5c818e" - displayName = $null - userIdentityType = "aadUser" - } - } - } - @{ - reactionType = "like" - createdDateTime = [System.DateTime]::Parse("2018-10-21T02:34:40.3Z") - user = @{ - application = $null - device = $null - user = @{ - id = "4c9041b7-449a-40f7-8855-56da239b9fd1" - displayName = $null - userIdentityType = "aadUser" - } - } - } - @{ - reactionType = "like" - createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:25.489Z") - user = @{ - application = $null - device = $null - user = @{ - id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" - displayName = $null - userIdentityType = "aadUser" - } - } - } - @{ - reactionType = "heart" - createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:31.489Z") - user = @{ - application = $null - device = $null - user = @{ - id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" - displayName = $null - userIdentityType = "aadUser" - } - } - } - @{ - reactionType = "sad" - createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:33.489Z") - user = @{ - application = $null - device = $null - user = @{ - id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" - displayName = $null - userIdentityType = "aadUser" - } - } - } - @{ - reactionType = "surprised" - createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:34.489Z") - user = @{ - application = $null - device = $null - user = @{ - id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" - displayName = $null - userIdentityType = "aadUser" - } - } - } - ) -} - -Update-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params +Get-MgTeamChannelMessageReply -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -ChatMessageId1 $chatMessageId1 ``` This example shows how to use the Get-MgGroupTeamChannelMessage Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/v1.0/examples/Get-MgGroupTeamMember.md b/src/Teams/v1.0/examples/Get-MgGroupTeamMember.md index a7eaa20bec1..50cfea50162 100644 --- a/src/Teams/v1.0/examples/Get-MgGroupTeamMember.md +++ b/src/Teams/v1.0/examples/Get-MgGroupTeamMember.md @@ -2,14 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Teams -$params = @{ - "@odata.type" = "#microsoft.graph.aadUserConversationMember" - roles = @( - "owner" - ) -} - -Update-MgTeamMember -TeamId $teamId -ConversationMemberId $conversationMemberId -BodyParameter $params +Get-MgTeamMember -TeamId $teamId -ConversationMemberId $conversationMemberId ``` This example shows how to use the Get-MgGroupTeamMember Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/v1.0/examples/Get-MgGroupTeamPrimaryChannelMessage.md b/src/Teams/v1.0/examples/Get-MgGroupTeamPrimaryChannelMessage.md index fe90d47292f..d8d592aa1a5 100644 --- a/src/Teams/v1.0/examples/Get-MgGroupTeamPrimaryChannelMessage.md +++ b/src/Teams/v1.0/examples/Get-MgGroupTeamPrimaryChannelMessage.md @@ -1,433 +1,26 @@ -### Example 1: Update policyViolation property using application permissions +### Example 1: Get a message in a chat ```powershell Import-Module Microsoft.Graph.Teams -$params = @{ - policyViolation = @{ - policyTip = @{ - generalText = "This item has been blocked by the administrator." - complianceUrl = "https://contoso.com/dlp-policy-page" - matchedConditionDescriptions = @( - "Credit Card Number" - ) - } - verdictDetails = "AllowOverrideWithoutJustification,AllowFalsePositiveOverride" - dlpAction = "BlockAccess" - } -} - -Update-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params -``` -This example shows how to use the Get-MgGroupTeamPrimaryChannelMessage Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Update any property of a message using delegated permissions - -```powershell Import-Module Microsoft.Graph.Teams - -$params = @{ - messageType = "message" - subject = $null - summary = $null - importance = "normal" - locale = "en-us" - from = @{ - application = $null - device = $null - user = @{ - id = "3b102402-813e-4e17-a6b2-f841aef1fdfc" - displayName = "Lam Cong" - userIdentityType = "aadUser" - } - conversation = $null - } - body = @{ - contentType = "text" - content = "Edit text only" - } - attachments = @( - ) - mentions = @( - ) - reactions = @( - ) -} - -Update-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params +Get-MgChatMessage -ChatId $chatId -ChatMessageId $chatMessageId ``` This example shows how to use the Get-MgGroupTeamPrimaryChannelMessage Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Update the mentions of a message using delegated permissions +### Example 2: Get a message in a channel ```powershell Import-Module Microsoft.Graph.Teams -$params = @{ - messageType = "message" - deletedDateTime = $null - subject = $null - summary = $null - importance = "normal" - locale = "en-us" - from = @{ - application = $null - device = $null - conversation = $null - user = @{ - id = "6b3f3c54-d09c-4fdd-b146-9b514a8a4f40" - displayName = "Lam Cong" - userIdentityType = "aadUser" - } - } - body = @{ - contentType = "html" - content = "<div><div> -<div> -<div> -<div> -<div><at id="0">Raghav</at><at id="1">TestGlobalBot</at> YEAH" - } - attachments = @( - ) - mentions = @( - @{ - id = 0 - mentionText = "Raghav" - mentioned = @{ - application = $null - device = $null - conversation = $null - user = @{ - id = "f1b66449-b46d-49b0-9c3c-53c10234c818e" - displayName = "Lam Cong" - userIdentityType = "aadUser" - } - } - } - @{ - id = 1 - mentionText = "TestGlobalBot" - mentioned = @{ - application = @{ - id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" - displayName = "TestGlobalBot" - applicationIdentityType = "bot" - } - device = $null - conversation = $null - user = $null - } - } - ) - reactions = @( - ) -} - -Update-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params +Get-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId ``` This example shows how to use the Get-MgGroupTeamPrimaryChannelMessage Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Update the content with attachments of a message using delegated permissions +### Example 3: Get reply to a message in a channel ```powershell Import-Module Microsoft.Graph.Teams -$params = @{ - messageType = "message" - subject = $null - summary = $null - importance = "normal" - locale = "en-us" - from = @{ - application = $null - device = $null - user = @{ - id = "3b102402-813e-4e17-a6b2-f841aef1fdfc" - displayName = "Lam Cong" - userIdentityType = "aadUser" - } - conversation = $null - } - body = @{ - contentType = "html" - content = "<p><em>text</em></p><attachment id="e8f78756199240b88448ae0fc6db112d"></attachment><attachment id="638464e32834471ea202007da60a5ae6"></attachment>" - } - attachments = @( - @{ - id = "e8f78756199240b88448ae0fc6db112d" - contentType = "application/vnd.microsoft.card.hero" - contentUrl = $null - content = "{ - "title": "*title*", - "subtitle": "*subtitle*", - "text": "Have you found yourself scratching your head trying to figure these questions out? Frustrated trying to access some of the goodies unique to the Microsoft Teams platform? Well, fear not, Bot Builder SDK Extension for Teams in .NET and Node flavors is here! Just head on over to Nuget or NPM to download our tasty helpers, sure to speed up your prep time so you can spend more time maximizing the flavor of the bots you're cooking up.Here???s a small sample of some recipes to whet your appetite.", - "images": [ - { - "url": "https://us-api.asm.skype.com/v1/objects/0-eus-d8-ced0c9567ee7b0b233b987bd32f9eacd/views/img_preview" - } - ], - "buttons": [ - { - "type": "openUrl", - "image": "https://urlp.asm.skype.com/v1/url/content?url=https%3a%2f%2fcdn2.iconfinder.com%2fdata%2ficons%2fsocial-icons-33%2f128%2fTrello-128.png", - "title": "???????? click me ????????", - "value": "http://microsoft.com" - }, - { - "type": "imback", - "title": "&i am back& <>= \"", - "value": "&i am back& <>= \"" - }, - { - "type": "openUrl", - "title": "Open URL", - "value": "http://google.com" - } - ] -}" - name = $null - thumbnailUrl = $null - } - @{ - id = "638464e32834471ea202007da60a5ae6" - contentType = "application/vnd.microsoft.card.hero" - contentUrl = $null - content = "{ - "title": "*title*", - "subtitle": "*subtitle*", - "text": "Have you found yourself scratching your head trying to figure these questions out? Frustrated trying to access some of the goodies unique to the Microsoft Teams platform? Well, fear not, Bot Builder SDK Extension for Teams in .NET and Node flavors is here! Just head on over to Nuget or NPM to download our tasty helpers, sure to speed up your prep time so you can spend more time maximizing the flavor of the bots you're cooking up.Here???s a small sample of some recipes to whet your appetite.", - "images": [ - { - "url": "https://us-api.asm.skype.com/v1/objects/0-eus-d8-ced0c9567ee7b0b233b987bd32f9eacd/views/img_preview" - } - ], - "buttons": [ - { - "type": "messageBack", - "title": "&message back& <>= \"", - "text": "text = &message back& <>= \"", - "displayText": "displayText = &message back& <>= \"", - "value": { - "text": "some text 2" - } - } - ] -}" - name = $null - thumbnailUrl = $null - } - ) - mentions = @( - ) - reactions = @( - ) -} - -Update-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params -``` -This example shows how to use the Get-MgGroupTeamPrimaryChannelMessage Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 5: Update the reactions in a message using delegated permissions - -```powershell Import-Module Microsoft.Graph.Teams - -$params = @{ - messageType = "message" - subject = $null - summary = $null - importance = "normal" - locale = "en-us" - from = @{ - application = $null - device = $null - user = @{ - id = "3b102402-813e-4e17-a6b2-f841aef1fdfc" - displayName = "Lam Cong" - userIdentityType = "aadUser" - } - conversation = $null - } - body = @{ - contentType = "html" - content = "<p><em>text</em></p><attachment id="e8f78756199240b88448ae0fc6db112d"></attachment><attachment id="638464e32834471ea202007da60a5ae6"></attachment>" - } - attachments = @( - @{ - id = "e8f78756199240b88448ae0fc6db112d" - contentType = "application/vnd.microsoft.card.hero" - contentUrl = $null - content = "{ - "title": "*title*", - "subtitle": "*subtitle*", - "text": "Have you found yourself scratching your head trying to figure these questions out? Frustrated trying to access some of the goodies unique to the Microsoft Teams platform? Well, fear not, Bot Builder SDK Extension for Teams in .NET and Node flavors is here! Just head on over to Nuget or NPM to download our tasty helpers, sure to speed up your prep time so you can spend more time maximizing the flavor of the bots you're cooking up.Here???s a small sample of some recipes to whet your appetite.", - "images": [ - { - "url": "https://us-api.asm.skype.com/v1/objects/0-eus-d8-ced0c9567ee7b0b233b987bd32f9eacd/views/img_preview" - } - ], - "buttons": [ - { - "type": "openUrl", - "image": "https://urlp.asm.skype.com/v1/url/content?url=https%3a%2f%2fcdn2.iconfinder.com%2fdata%2ficons%2fsocial-icons-33%2f128%2fTrello-128.png", - "title": "???????? click me ????????", - "value": "http://microsoft.com" - }, - { - "type": "imback", - "title": "&i am back& <>= \"", - "value": "&i am back& <>= \"" - }, - { - "type": "openUrl", - "title": "Open URL", - "value": "http://google.com" - } - ] -}" - name = $null - thumbnailUrl = $null - } - @{ - id = "638464e32834471ea202007da60a5ae6" - contentType = "application/vnd.microsoft.card.hero" - contentUrl = $null - content = "{ - "title": "*title*", - "subtitle": "*subtitle*", - "text": "Have you found yourself scratching your head trying to figure these questions out? Frustrated trying to access some of the goodies unique to the Microsoft Teams platform? Well, fear not, Bot Builder SDK Extension for Teams in .NET and Node flavors is here! Just head on over to Nuget or NPM to download our tasty helpers, sure to speed up your prep time so you can spend more time maximizing the flavor of the bots you're cooking up.Here???s a small sample of some recipes to whet your appetite.", - "images": [ - { - "url": "https://us-api.asm.skype.com/v1/objects/0-eus-d8-ced0c9567ee7b0b233b987bd32f9eacd/views/img_preview" - } - ], - "buttons": [ - { - "type": "messageBack", - "title": "&message back& <>= \"", - "text": "text = &message back& <>= \"", - "displayText": "displayText = &message back& <>= \"", - "value": { - "text": "some text 2" - } - } - ] -}" - name = $null - thumbnailUrl = $null - } - ) - mentions = @( - ) - reactions = @( - @{ - reactionType = "angry" - createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:30.489Z") - user = @{ - application = $null - device = $null - user = @{ - id = "f1b66449-b46d-49b0-9c3c-53c10a5c818e" - displayName = $null - userIdentityType = "aadUser" - } - } - } - @{ - reactionType = "laugh" - createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:32.489Z") - user = @{ - application = $null - device = $null - user = @{ - id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" - displayName = $null - userIdentityType = "aadUser" - } - } - } - @{ - reactionType = "like" - createdDateTime = [System.DateTime]::Parse("2018-10-21T02:17:14.67Z") - user = @{ - application = $null - device = $null - user = @{ - id = "f1b66449-b46d-49b0-9c3c-53c10a5c818e" - displayName = $null - userIdentityType = "aadUser" - } - } - } - @{ - reactionType = "like" - createdDateTime = [System.DateTime]::Parse("2018-10-21T02:34:40.3Z") - user = @{ - application = $null - device = $null - user = @{ - id = "4c9041b7-449a-40f7-8855-56da239b9fd1" - displayName = $null - userIdentityType = "aadUser" - } - } - } - @{ - reactionType = "like" - createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:25.489Z") - user = @{ - application = $null - device = $null - user = @{ - id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" - displayName = $null - userIdentityType = "aadUser" - } - } - } - @{ - reactionType = "heart" - createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:31.489Z") - user = @{ - application = $null - device = $null - user = @{ - id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" - displayName = $null - userIdentityType = "aadUser" - } - } - } - @{ - reactionType = "sad" - createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:33.489Z") - user = @{ - application = $null - device = $null - user = @{ - id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" - displayName = $null - userIdentityType = "aadUser" - } - } - } - @{ - reactionType = "surprised" - createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:34.489Z") - user = @{ - application = $null - device = $null - user = @{ - id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" - displayName = $null - userIdentityType = "aadUser" - } - } - } - ) -} - -Update-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params +Get-MgTeamChannelMessageReply -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -ChatMessageId1 $chatMessageId1 ``` This example shows how to use the Get-MgGroupTeamPrimaryChannelMessage Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/v1.0/examples/Get-MgGroupTeamScheduleOpenShift.md b/src/Teams/v1.0/examples/Get-MgGroupTeamScheduleOpenShift.md index 8049cef8685..c51400b3eb7 100644 --- a/src/Teams/v1.0/examples/Get-MgGroupTeamScheduleOpenShift.md +++ b/src/Teams/v1.0/examples/Get-MgGroupTeamScheduleOpenShift.md @@ -2,29 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Teams -$params = @{ - schedulingGroupId = "TAG_228940ed-ff84-4e25-b129-1b395cf78be0" - sharedOpenShift = @{ - notes = "Inventory Management" - openSlotCount = 5 - displayName = "Field shift" - startDateTime = [System.DateTime]::Parse("2018-10-04T00:58:45.340Z") - endDateTime = [System.DateTime]::Parse("2018-10-04T09:50:45.332Z") - theme = "white" - activities = @( - @{ - isPaid = $true - startDateTime = [System.DateTime]::Parse("2018-10-04T00:58:45.340Z") - endDateTime = [System.DateTime]::Parse("2018-10-04T01:58:45.340Z") - code = "" - displayName = "Lunch" - } - ) - } - draftOpenShift = $null -} - -Update-MgTeamScheduleOpenShift -TeamId $teamId -OpenShiftId $openShiftId -BodyParameter $params +Get-MgTeamScheduleOpenShift -TeamId $teamId -OpenShiftId $openShiftId ``` This example shows how to use the Get-MgGroupTeamScheduleOpenShift Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/v1.0/examples/Get-MgGroupTeamTag.md b/src/Teams/v1.0/examples/Get-MgGroupTeamTag.md index c41a614e49d..5f435de927d 100644 --- a/src/Teams/v1.0/examples/Get-MgGroupTeamTag.md +++ b/src/Teams/v1.0/examples/Get-MgGroupTeamTag.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Teams -$params = @{ - displayName = "Finance" -} - -Update-MgTeamTag -TeamId $teamId -TeamworkTagId $teamworkTagId -BodyParameter $params +Get-MgTeamTag -TeamId $teamId -TeamworkTagId $teamworkTagId ``` This example shows how to use the Get-MgGroupTeamTag Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/v1.0/examples/Get-MgTeam.md b/src/Teams/v1.0/examples/Get-MgTeam.md index f929a9b4331..fe10ef0b010 100644 --- a/src/Teams/v1.0/examples/Get-MgTeam.md +++ b/src/Teams/v1.0/examples/Get-MgTeam.md @@ -2,21 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Teams -$params = @{ - memberSettings = @{ - allowCreateUpdateChannels = $true - } - messagingSettings = @{ - allowUserEditMessages = $true - allowUserDeleteMessages = $true - } - funSettings = @{ - allowGiphy = $true - giphyContentRating = "strict" - } -} - -Update-MgTeam -TeamId $teamId -BodyParameter $params +Get-MgTeam -TeamId $teamId ``` This example shows how to use the Get-MgTeam Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/v1.0/examples/Get-MgTeamChannelMember.md b/src/Teams/v1.0/examples/Get-MgTeamChannelMember.md index f6c6949389e..7a7ed7e8a4c 100644 --- a/src/Teams/v1.0/examples/Get-MgTeamChannelMember.md +++ b/src/Teams/v1.0/examples/Get-MgTeamChannelMember.md @@ -1,17 +1,9 @@ -### Example 1: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Teams -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +Get-MgTeamChannelMember -TeamId $teamId -ChannelId $channelId -ConversationMemberId $conversationMemberId +``` +This example shows how to use the Get-MgTeamChannelMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/v1.0/examples/Get-MgTeamChannelMessage.md b/src/Teams/v1.0/examples/Get-MgTeamChannelMessage.md index d860b54765b..ce6e442a249 100644 --- a/src/Teams/v1.0/examples/Get-MgTeamChannelMessage.md +++ b/src/Teams/v1.0/examples/Get-MgTeamChannelMessage.md @@ -1,433 +1,26 @@ -### Example 1: Update policyViolation property using application permissions +### Example 1: Get a message in a chat ```powershell Import-Module Microsoft.Graph.Teams -$params = @{ - policyViolation = @{ - policyTip = @{ - generalText = "This item has been blocked by the administrator." - complianceUrl = "https://contoso.com/dlp-policy-page" - matchedConditionDescriptions = @( - "Credit Card Number" - ) - } - verdictDetails = "AllowOverrideWithoutJustification,AllowFalsePositiveOverride" - dlpAction = "BlockAccess" - } -} - -Update-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params -``` -This example shows how to use the Get-MgTeamChannelMessage Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Update any property of a message using delegated permissions - -```powershell Import-Module Microsoft.Graph.Teams - -$params = @{ - messageType = "message" - subject = $null - summary = $null - importance = "normal" - locale = "en-us" - from = @{ - application = $null - device = $null - user = @{ - id = "3b102402-813e-4e17-a6b2-f841aef1fdfc" - displayName = "Lam Cong" - userIdentityType = "aadUser" - } - conversation = $null - } - body = @{ - contentType = "text" - content = "Edit text only" - } - attachments = @( - ) - mentions = @( - ) - reactions = @( - ) -} - -Update-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params +Get-MgChatMessage -ChatId $chatId -ChatMessageId $chatMessageId ``` This example shows how to use the Get-MgTeamChannelMessage Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Update the mentions of a message using delegated permissions +### Example 2: Get a message in a channel ```powershell Import-Module Microsoft.Graph.Teams -$params = @{ - messageType = "message" - deletedDateTime = $null - subject = $null - summary = $null - importance = "normal" - locale = "en-us" - from = @{ - application = $null - device = $null - conversation = $null - user = @{ - id = "6b3f3c54-d09c-4fdd-b146-9b514a8a4f40" - displayName = "Lam Cong" - userIdentityType = "aadUser" - } - } - body = @{ - contentType = "html" - content = "<div><div> -<div> -<div> -<div> -<div><at id="0">Raghav</at><at id="1">TestGlobalBot</at> YEAH" - } - attachments = @( - ) - mentions = @( - @{ - id = 0 - mentionText = "Raghav" - mentioned = @{ - application = $null - device = $null - conversation = $null - user = @{ - id = "f1b66449-b46d-49b0-9c3c-53c10234c818e" - displayName = "Lam Cong" - userIdentityType = "aadUser" - } - } - } - @{ - id = 1 - mentionText = "TestGlobalBot" - mentioned = @{ - application = @{ - id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" - displayName = "TestGlobalBot" - applicationIdentityType = "bot" - } - device = $null - conversation = $null - user = $null - } - } - ) - reactions = @( - ) -} - -Update-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params +Get-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId ``` This example shows how to use the Get-MgTeamChannelMessage Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Update the content with attachments of a message using delegated permissions +### Example 3: Get reply to a message in a channel ```powershell Import-Module Microsoft.Graph.Teams -$params = @{ - messageType = "message" - subject = $null - summary = $null - importance = "normal" - locale = "en-us" - from = @{ - application = $null - device = $null - user = @{ - id = "3b102402-813e-4e17-a6b2-f841aef1fdfc" - displayName = "Lam Cong" - userIdentityType = "aadUser" - } - conversation = $null - } - body = @{ - contentType = "html" - content = "<p><em>text</em></p><attachment id="e8f78756199240b88448ae0fc6db112d"></attachment><attachment id="638464e32834471ea202007da60a5ae6"></attachment>" - } - attachments = @( - @{ - id = "e8f78756199240b88448ae0fc6db112d" - contentType = "application/vnd.microsoft.card.hero" - contentUrl = $null - content = "{ - "title": "*title*", - "subtitle": "*subtitle*", - "text": "Have you found yourself scratching your head trying to figure these questions out? Frustrated trying to access some of the goodies unique to the Microsoft Teams platform? Well, fear not, Bot Builder SDK Extension for Teams in .NET and Node flavors is here! Just head on over to Nuget or NPM to download our tasty helpers, sure to speed up your prep time so you can spend more time maximizing the flavor of the bots you're cooking up.Here???s a small sample of some recipes to whet your appetite.", - "images": [ - { - "url": "https://us-api.asm.skype.com/v1/objects/0-eus-d8-ced0c9567ee7b0b233b987bd32f9eacd/views/img_preview" - } - ], - "buttons": [ - { - "type": "openUrl", - "image": "https://urlp.asm.skype.com/v1/url/content?url=https%3a%2f%2fcdn2.iconfinder.com%2fdata%2ficons%2fsocial-icons-33%2f128%2fTrello-128.png", - "title": "???????? click me ????????", - "value": "http://microsoft.com" - }, - { - "type": "imback", - "title": "&i am back& <>= \"", - "value": "&i am back& <>= \"" - }, - { - "type": "openUrl", - "title": "Open URL", - "value": "http://google.com" - } - ] -}" - name = $null - thumbnailUrl = $null - } - @{ - id = "638464e32834471ea202007da60a5ae6" - contentType = "application/vnd.microsoft.card.hero" - contentUrl = $null - content = "{ - "title": "*title*", - "subtitle": "*subtitle*", - "text": "Have you found yourself scratching your head trying to figure these questions out? Frustrated trying to access some of the goodies unique to the Microsoft Teams platform? Well, fear not, Bot Builder SDK Extension for Teams in .NET and Node flavors is here! Just head on over to Nuget or NPM to download our tasty helpers, sure to speed up your prep time so you can spend more time maximizing the flavor of the bots you're cooking up.Here???s a small sample of some recipes to whet your appetite.", - "images": [ - { - "url": "https://us-api.asm.skype.com/v1/objects/0-eus-d8-ced0c9567ee7b0b233b987bd32f9eacd/views/img_preview" - } - ], - "buttons": [ - { - "type": "messageBack", - "title": "&message back& <>= \"", - "text": "text = &message back& <>= \"", - "displayText": "displayText = &message back& <>= \"", - "value": { - "text": "some text 2" - } - } - ] -}" - name = $null - thumbnailUrl = $null - } - ) - mentions = @( - ) - reactions = @( - ) -} - -Update-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params -``` -This example shows how to use the Get-MgTeamChannelMessage Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 5: Update the reactions in a message using delegated permissions - -```powershell Import-Module Microsoft.Graph.Teams - -$params = @{ - messageType = "message" - subject = $null - summary = $null - importance = "normal" - locale = "en-us" - from = @{ - application = $null - device = $null - user = @{ - id = "3b102402-813e-4e17-a6b2-f841aef1fdfc" - displayName = "Lam Cong" - userIdentityType = "aadUser" - } - conversation = $null - } - body = @{ - contentType = "html" - content = "<p><em>text</em></p><attachment id="e8f78756199240b88448ae0fc6db112d"></attachment><attachment id="638464e32834471ea202007da60a5ae6"></attachment>" - } - attachments = @( - @{ - id = "e8f78756199240b88448ae0fc6db112d" - contentType = "application/vnd.microsoft.card.hero" - contentUrl = $null - content = "{ - "title": "*title*", - "subtitle": "*subtitle*", - "text": "Have you found yourself scratching your head trying to figure these questions out? Frustrated trying to access some of the goodies unique to the Microsoft Teams platform? Well, fear not, Bot Builder SDK Extension for Teams in .NET and Node flavors is here! Just head on over to Nuget or NPM to download our tasty helpers, sure to speed up your prep time so you can spend more time maximizing the flavor of the bots you're cooking up.Here???s a small sample of some recipes to whet your appetite.", - "images": [ - { - "url": "https://us-api.asm.skype.com/v1/objects/0-eus-d8-ced0c9567ee7b0b233b987bd32f9eacd/views/img_preview" - } - ], - "buttons": [ - { - "type": "openUrl", - "image": "https://urlp.asm.skype.com/v1/url/content?url=https%3a%2f%2fcdn2.iconfinder.com%2fdata%2ficons%2fsocial-icons-33%2f128%2fTrello-128.png", - "title": "???????? click me ????????", - "value": "http://microsoft.com" - }, - { - "type": "imback", - "title": "&i am back& <>= \"", - "value": "&i am back& <>= \"" - }, - { - "type": "openUrl", - "title": "Open URL", - "value": "http://google.com" - } - ] -}" - name = $null - thumbnailUrl = $null - } - @{ - id = "638464e32834471ea202007da60a5ae6" - contentType = "application/vnd.microsoft.card.hero" - contentUrl = $null - content = "{ - "title": "*title*", - "subtitle": "*subtitle*", - "text": "Have you found yourself scratching your head trying to figure these questions out? Frustrated trying to access some of the goodies unique to the Microsoft Teams platform? Well, fear not, Bot Builder SDK Extension for Teams in .NET and Node flavors is here! Just head on over to Nuget or NPM to download our tasty helpers, sure to speed up your prep time so you can spend more time maximizing the flavor of the bots you're cooking up.Here???s a small sample of some recipes to whet your appetite.", - "images": [ - { - "url": "https://us-api.asm.skype.com/v1/objects/0-eus-d8-ced0c9567ee7b0b233b987bd32f9eacd/views/img_preview" - } - ], - "buttons": [ - { - "type": "messageBack", - "title": "&message back& <>= \"", - "text": "text = &message back& <>= \"", - "displayText": "displayText = &message back& <>= \"", - "value": { - "text": "some text 2" - } - } - ] -}" - name = $null - thumbnailUrl = $null - } - ) - mentions = @( - ) - reactions = @( - @{ - reactionType = "angry" - createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:30.489Z") - user = @{ - application = $null - device = $null - user = @{ - id = "f1b66449-b46d-49b0-9c3c-53c10a5c818e" - displayName = $null - userIdentityType = "aadUser" - } - } - } - @{ - reactionType = "laugh" - createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:32.489Z") - user = @{ - application = $null - device = $null - user = @{ - id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" - displayName = $null - userIdentityType = "aadUser" - } - } - } - @{ - reactionType = "like" - createdDateTime = [System.DateTime]::Parse("2018-10-21T02:17:14.67Z") - user = @{ - application = $null - device = $null - user = @{ - id = "f1b66449-b46d-49b0-9c3c-53c10a5c818e" - displayName = $null - userIdentityType = "aadUser" - } - } - } - @{ - reactionType = "like" - createdDateTime = [System.DateTime]::Parse("2018-10-21T02:34:40.3Z") - user = @{ - application = $null - device = $null - user = @{ - id = "4c9041b7-449a-40f7-8855-56da239b9fd1" - displayName = $null - userIdentityType = "aadUser" - } - } - } - @{ - reactionType = "like" - createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:25.489Z") - user = @{ - application = $null - device = $null - user = @{ - id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" - displayName = $null - userIdentityType = "aadUser" - } - } - } - @{ - reactionType = "heart" - createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:31.489Z") - user = @{ - application = $null - device = $null - user = @{ - id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" - displayName = $null - userIdentityType = "aadUser" - } - } - } - @{ - reactionType = "sad" - createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:33.489Z") - user = @{ - application = $null - device = $null - user = @{ - id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" - displayName = $null - userIdentityType = "aadUser" - } - } - } - @{ - reactionType = "surprised" - createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:34.489Z") - user = @{ - application = $null - device = $null - user = @{ - id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" - displayName = $null - userIdentityType = "aadUser" - } - } - } - ) -} - -Update-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params +Get-MgTeamChannelMessageReply -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -ChatMessageId1 $chatMessageId1 ``` This example shows how to use the Get-MgTeamChannelMessage Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/v1.0/examples/Get-MgTeamMember.md b/src/Teams/v1.0/examples/Get-MgTeamMember.md index 1fb9b13963c..35cf73f90e4 100644 --- a/src/Teams/v1.0/examples/Get-MgTeamMember.md +++ b/src/Teams/v1.0/examples/Get-MgTeamMember.md @@ -2,14 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Teams -$params = @{ - "@odata.type" = "#microsoft.graph.aadUserConversationMember" - roles = @( - "owner" - ) -} - -Update-MgTeamMember -TeamId $teamId -ConversationMemberId $conversationMemberId -BodyParameter $params +Get-MgTeamMember -TeamId $teamId -ConversationMemberId $conversationMemberId ``` This example shows how to use the Get-MgTeamMember Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/v1.0/examples/Get-MgTeamPrimaryChannelMessage.md b/src/Teams/v1.0/examples/Get-MgTeamPrimaryChannelMessage.md index e9f987a3bfd..77dc9e4d082 100644 --- a/src/Teams/v1.0/examples/Get-MgTeamPrimaryChannelMessage.md +++ b/src/Teams/v1.0/examples/Get-MgTeamPrimaryChannelMessage.md @@ -1,433 +1,26 @@ -### Example 1: Update policyViolation property using application permissions +### Example 1: Get a message in a chat ```powershell Import-Module Microsoft.Graph.Teams -$params = @{ - policyViolation = @{ - policyTip = @{ - generalText = "This item has been blocked by the administrator." - complianceUrl = "https://contoso.com/dlp-policy-page" - matchedConditionDescriptions = @( - "Credit Card Number" - ) - } - verdictDetails = "AllowOverrideWithoutJustification,AllowFalsePositiveOverride" - dlpAction = "BlockAccess" - } -} - -Update-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params -``` -This example shows how to use the Get-MgTeamPrimaryChannelMessage Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Update any property of a message using delegated permissions - -```powershell Import-Module Microsoft.Graph.Teams - -$params = @{ - messageType = "message" - subject = $null - summary = $null - importance = "normal" - locale = "en-us" - from = @{ - application = $null - device = $null - user = @{ - id = "3b102402-813e-4e17-a6b2-f841aef1fdfc" - displayName = "Lam Cong" - userIdentityType = "aadUser" - } - conversation = $null - } - body = @{ - contentType = "text" - content = "Edit text only" - } - attachments = @( - ) - mentions = @( - ) - reactions = @( - ) -} - -Update-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params +Get-MgChatMessage -ChatId $chatId -ChatMessageId $chatMessageId ``` This example shows how to use the Get-MgTeamPrimaryChannelMessage Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Update the mentions of a message using delegated permissions +### Example 2: Get a message in a channel ```powershell Import-Module Microsoft.Graph.Teams -$params = @{ - messageType = "message" - deletedDateTime = $null - subject = $null - summary = $null - importance = "normal" - locale = "en-us" - from = @{ - application = $null - device = $null - conversation = $null - user = @{ - id = "6b3f3c54-d09c-4fdd-b146-9b514a8a4f40" - displayName = "Lam Cong" - userIdentityType = "aadUser" - } - } - body = @{ - contentType = "html" - content = "<div><div> -<div> -<div> -<div> -<div><at id="0">Raghav</at><at id="1">TestGlobalBot</at> YEAH" - } - attachments = @( - ) - mentions = @( - @{ - id = 0 - mentionText = "Raghav" - mentioned = @{ - application = $null - device = $null - conversation = $null - user = @{ - id = "f1b66449-b46d-49b0-9c3c-53c10234c818e" - displayName = "Lam Cong" - userIdentityType = "aadUser" - } - } - } - @{ - id = 1 - mentionText = "TestGlobalBot" - mentioned = @{ - application = @{ - id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" - displayName = "TestGlobalBot" - applicationIdentityType = "bot" - } - device = $null - conversation = $null - user = $null - } - } - ) - reactions = @( - ) -} - -Update-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params +Get-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId ``` This example shows how to use the Get-MgTeamPrimaryChannelMessage Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Update the content with attachments of a message using delegated permissions +### Example 3: Get reply to a message in a channel ```powershell Import-Module Microsoft.Graph.Teams -$params = @{ - messageType = "message" - subject = $null - summary = $null - importance = "normal" - locale = "en-us" - from = @{ - application = $null - device = $null - user = @{ - id = "3b102402-813e-4e17-a6b2-f841aef1fdfc" - displayName = "Lam Cong" - userIdentityType = "aadUser" - } - conversation = $null - } - body = @{ - contentType = "html" - content = "<p><em>text</em></p><attachment id="e8f78756199240b88448ae0fc6db112d"></attachment><attachment id="638464e32834471ea202007da60a5ae6"></attachment>" - } - attachments = @( - @{ - id = "e8f78756199240b88448ae0fc6db112d" - contentType = "application/vnd.microsoft.card.hero" - contentUrl = $null - content = "{ - "title": "*title*", - "subtitle": "*subtitle*", - "text": "Have you found yourself scratching your head trying to figure these questions out? Frustrated trying to access some of the goodies unique to the Microsoft Teams platform? Well, fear not, Bot Builder SDK Extension for Teams in .NET and Node flavors is here! Just head on over to Nuget or NPM to download our tasty helpers, sure to speed up your prep time so you can spend more time maximizing the flavor of the bots you're cooking up.Here???s a small sample of some recipes to whet your appetite.", - "images": [ - { - "url": "https://us-api.asm.skype.com/v1/objects/0-eus-d8-ced0c9567ee7b0b233b987bd32f9eacd/views/img_preview" - } - ], - "buttons": [ - { - "type": "openUrl", - "image": "https://urlp.asm.skype.com/v1/url/content?url=https%3a%2f%2fcdn2.iconfinder.com%2fdata%2ficons%2fsocial-icons-33%2f128%2fTrello-128.png", - "title": "???????? click me ????????", - "value": "http://microsoft.com" - }, - { - "type": "imback", - "title": "&i am back& <>= \"", - "value": "&i am back& <>= \"" - }, - { - "type": "openUrl", - "title": "Open URL", - "value": "http://google.com" - } - ] -}" - name = $null - thumbnailUrl = $null - } - @{ - id = "638464e32834471ea202007da60a5ae6" - contentType = "application/vnd.microsoft.card.hero" - contentUrl = $null - content = "{ - "title": "*title*", - "subtitle": "*subtitle*", - "text": "Have you found yourself scratching your head trying to figure these questions out? Frustrated trying to access some of the goodies unique to the Microsoft Teams platform? Well, fear not, Bot Builder SDK Extension for Teams in .NET and Node flavors is here! Just head on over to Nuget or NPM to download our tasty helpers, sure to speed up your prep time so you can spend more time maximizing the flavor of the bots you're cooking up.Here???s a small sample of some recipes to whet your appetite.", - "images": [ - { - "url": "https://us-api.asm.skype.com/v1/objects/0-eus-d8-ced0c9567ee7b0b233b987bd32f9eacd/views/img_preview" - } - ], - "buttons": [ - { - "type": "messageBack", - "title": "&message back& <>= \"", - "text": "text = &message back& <>= \"", - "displayText": "displayText = &message back& <>= \"", - "value": { - "text": "some text 2" - } - } - ] -}" - name = $null - thumbnailUrl = $null - } - ) - mentions = @( - ) - reactions = @( - ) -} - -Update-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params -``` -This example shows how to use the Get-MgTeamPrimaryChannelMessage Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 5: Update the reactions in a message using delegated permissions - -```powershell Import-Module Microsoft.Graph.Teams - -$params = @{ - messageType = "message" - subject = $null - summary = $null - importance = "normal" - locale = "en-us" - from = @{ - application = $null - device = $null - user = @{ - id = "3b102402-813e-4e17-a6b2-f841aef1fdfc" - displayName = "Lam Cong" - userIdentityType = "aadUser" - } - conversation = $null - } - body = @{ - contentType = "html" - content = "<p><em>text</em></p><attachment id="e8f78756199240b88448ae0fc6db112d"></attachment><attachment id="638464e32834471ea202007da60a5ae6"></attachment>" - } - attachments = @( - @{ - id = "e8f78756199240b88448ae0fc6db112d" - contentType = "application/vnd.microsoft.card.hero" - contentUrl = $null - content = "{ - "title": "*title*", - "subtitle": "*subtitle*", - "text": "Have you found yourself scratching your head trying to figure these questions out? Frustrated trying to access some of the goodies unique to the Microsoft Teams platform? Well, fear not, Bot Builder SDK Extension for Teams in .NET and Node flavors is here! Just head on over to Nuget or NPM to download our tasty helpers, sure to speed up your prep time so you can spend more time maximizing the flavor of the bots you're cooking up.Here???s a small sample of some recipes to whet your appetite.", - "images": [ - { - "url": "https://us-api.asm.skype.com/v1/objects/0-eus-d8-ced0c9567ee7b0b233b987bd32f9eacd/views/img_preview" - } - ], - "buttons": [ - { - "type": "openUrl", - "image": "https://urlp.asm.skype.com/v1/url/content?url=https%3a%2f%2fcdn2.iconfinder.com%2fdata%2ficons%2fsocial-icons-33%2f128%2fTrello-128.png", - "title": "???????? click me ????????", - "value": "http://microsoft.com" - }, - { - "type": "imback", - "title": "&i am back& <>= \"", - "value": "&i am back& <>= \"" - }, - { - "type": "openUrl", - "title": "Open URL", - "value": "http://google.com" - } - ] -}" - name = $null - thumbnailUrl = $null - } - @{ - id = "638464e32834471ea202007da60a5ae6" - contentType = "application/vnd.microsoft.card.hero" - contentUrl = $null - content = "{ - "title": "*title*", - "subtitle": "*subtitle*", - "text": "Have you found yourself scratching your head trying to figure these questions out? Frustrated trying to access some of the goodies unique to the Microsoft Teams platform? Well, fear not, Bot Builder SDK Extension for Teams in .NET and Node flavors is here! Just head on over to Nuget or NPM to download our tasty helpers, sure to speed up your prep time so you can spend more time maximizing the flavor of the bots you're cooking up.Here???s a small sample of some recipes to whet your appetite.", - "images": [ - { - "url": "https://us-api.asm.skype.com/v1/objects/0-eus-d8-ced0c9567ee7b0b233b987bd32f9eacd/views/img_preview" - } - ], - "buttons": [ - { - "type": "messageBack", - "title": "&message back& <>= \"", - "text": "text = &message back& <>= \"", - "displayText": "displayText = &message back& <>= \"", - "value": { - "text": "some text 2" - } - } - ] -}" - name = $null - thumbnailUrl = $null - } - ) - mentions = @( - ) - reactions = @( - @{ - reactionType = "angry" - createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:30.489Z") - user = @{ - application = $null - device = $null - user = @{ - id = "f1b66449-b46d-49b0-9c3c-53c10a5c818e" - displayName = $null - userIdentityType = "aadUser" - } - } - } - @{ - reactionType = "laugh" - createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:32.489Z") - user = @{ - application = $null - device = $null - user = @{ - id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" - displayName = $null - userIdentityType = "aadUser" - } - } - } - @{ - reactionType = "like" - createdDateTime = [System.DateTime]::Parse("2018-10-21T02:17:14.67Z") - user = @{ - application = $null - device = $null - user = @{ - id = "f1b66449-b46d-49b0-9c3c-53c10a5c818e" - displayName = $null - userIdentityType = "aadUser" - } - } - } - @{ - reactionType = "like" - createdDateTime = [System.DateTime]::Parse("2018-10-21T02:34:40.3Z") - user = @{ - application = $null - device = $null - user = @{ - id = "4c9041b7-449a-40f7-8855-56da239b9fd1" - displayName = $null - userIdentityType = "aadUser" - } - } - } - @{ - reactionType = "like" - createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:25.489Z") - user = @{ - application = $null - device = $null - user = @{ - id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" - displayName = $null - userIdentityType = "aadUser" - } - } - } - @{ - reactionType = "heart" - createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:31.489Z") - user = @{ - application = $null - device = $null - user = @{ - id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" - displayName = $null - userIdentityType = "aadUser" - } - } - } - @{ - reactionType = "sad" - createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:33.489Z") - user = @{ - application = $null - device = $null - user = @{ - id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" - displayName = $null - userIdentityType = "aadUser" - } - } - } - @{ - reactionType = "surprised" - createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:34.489Z") - user = @{ - application = $null - device = $null - user = @{ - id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" - displayName = $null - userIdentityType = "aadUser" - } - } - } - ) -} - -Update-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params +Get-MgTeamChannelMessageReply -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -ChatMessageId1 $chatMessageId1 ``` This example shows how to use the Get-MgTeamPrimaryChannelMessage Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/v1.0/examples/Get-MgTeamScheduleOpenShift.md b/src/Teams/v1.0/examples/Get-MgTeamScheduleOpenShift.md index 6c922b232d7..0272287671a 100644 --- a/src/Teams/v1.0/examples/Get-MgTeamScheduleOpenShift.md +++ b/src/Teams/v1.0/examples/Get-MgTeamScheduleOpenShift.md @@ -2,29 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Teams -$params = @{ - schedulingGroupId = "TAG_228940ed-ff84-4e25-b129-1b395cf78be0" - sharedOpenShift = @{ - notes = "Inventory Management" - openSlotCount = 5 - displayName = "Field shift" - startDateTime = [System.DateTime]::Parse("2018-10-04T00:58:45.340Z") - endDateTime = [System.DateTime]::Parse("2018-10-04T09:50:45.332Z") - theme = "white" - activities = @( - @{ - isPaid = $true - startDateTime = [System.DateTime]::Parse("2018-10-04T00:58:45.340Z") - endDateTime = [System.DateTime]::Parse("2018-10-04T01:58:45.340Z") - code = "" - displayName = "Lunch" - } - ) - } - draftOpenShift = $null -} - -Update-MgTeamScheduleOpenShift -TeamId $teamId -OpenShiftId $openShiftId -BodyParameter $params +Get-MgTeamScheduleOpenShift -TeamId $teamId -OpenShiftId $openShiftId ``` This example shows how to use the Get-MgTeamScheduleOpenShift Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/v1.0/examples/Get-MgTeamScheduleSchedulingGroup.md b/src/Teams/v1.0/examples/Get-MgTeamScheduleSchedulingGroup.md index f6c6949389e..a8b945fc8cd 100644 --- a/src/Teams/v1.0/examples/Get-MgTeamScheduleSchedulingGroup.md +++ b/src/Teams/v1.0/examples/Get-MgTeamScheduleSchedulingGroup.md @@ -1,17 +1,9 @@ -### Example 1: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Teams -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +Get-MgTeamScheduleSchedulingGroup -TeamId $teamId -SchedulingGroupId $schedulingGroupId +``` +This example shows how to use the Get-MgTeamScheduleSchedulingGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/v1.0/examples/Get-MgTeamScheduleShift.md b/src/Teams/v1.0/examples/Get-MgTeamScheduleShift.md index f6c6949389e..21bfc5a1894 100644 --- a/src/Teams/v1.0/examples/Get-MgTeamScheduleShift.md +++ b/src/Teams/v1.0/examples/Get-MgTeamScheduleShift.md @@ -1,17 +1,9 @@ -### Example 1: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Teams -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +Get-MgTeamScheduleShift -TeamId $teamId -ShiftId $shiftId +``` +This example shows how to use the Get-MgTeamScheduleShift Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/v1.0/examples/Get-MgTeamScheduleTimeOff.md b/src/Teams/v1.0/examples/Get-MgTeamScheduleTimeOff.md index f6c6949389e..91ce4062083 100644 --- a/src/Teams/v1.0/examples/Get-MgTeamScheduleTimeOff.md +++ b/src/Teams/v1.0/examples/Get-MgTeamScheduleTimeOff.md @@ -1,17 +1,9 @@ -### Example 1: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Teams -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +Get-MgTeamScheduleTimeOff -TeamId $teamId -TimeOffId $timeOffId +``` +This example shows how to use the Get-MgTeamScheduleTimeOff Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/v1.0/examples/Get-MgTeamScheduleTimeOffReason.md b/src/Teams/v1.0/examples/Get-MgTeamScheduleTimeOffReason.md index f6c6949389e..88e74420af8 100644 --- a/src/Teams/v1.0/examples/Get-MgTeamScheduleTimeOffReason.md +++ b/src/Teams/v1.0/examples/Get-MgTeamScheduleTimeOffReason.md @@ -1,17 +1,9 @@ -### Example 1: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Teams -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +Get-MgTeamScheduleTimeOffReason -TeamId $teamId -TimeOffReasonId $timeOffReasonId +``` +This example shows how to use the Get-MgTeamScheduleTimeOffReason Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/v1.0/examples/Get-MgTeamTag.md b/src/Teams/v1.0/examples/Get-MgTeamTag.md index a260514b9f1..11b646df089 100644 --- a/src/Teams/v1.0/examples/Get-MgTeamTag.md +++ b/src/Teams/v1.0/examples/Get-MgTeamTag.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Teams -$params = @{ - displayName = "Finance" -} - -Update-MgTeamTag -TeamId $teamId -TeamworkTagId $teamworkTagId -BodyParameter $params +Get-MgTeamTag -TeamId $teamId -TeamworkTagId $teamworkTagId ``` This example shows how to use the Get-MgTeamTag Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/v1.0/examples/Get-MgTeamworkWorkforceIntegration.md b/src/Teams/v1.0/examples/Get-MgTeamworkWorkforceIntegration.md index ff95ce6f8ba..506faeb71a4 100644 --- a/src/Teams/v1.0/examples/Get-MgTeamworkWorkforceIntegration.md +++ b/src/Teams/v1.0/examples/Get-MgTeamworkWorkforceIntegration.md @@ -2,19 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Teams -$params = @{ - displayName = "displayName-value" - apiVersion = 99 - encryption = @{ - protocol = "protocol-value" - secret = "secret-value" - } - isActive = $true - url = "url-value" - supportedEntities = "supportedEntities-value" -} - -Update-MgTeamworkWorkforceIntegration -WorkforceIntegrationId $workforceIntegrationId -BodyParameter $params +Get-MgTeamworkWorkforceIntegration -WorkforceIntegrationId $workforceIntegrationId ``` This example shows how to use the Get-MgTeamworkWorkforceIntegration Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/v1.0/examples/Get-MgUserChatTab.md b/src/Teams/v1.0/examples/Get-MgUserChatTab.md index 5cbca70dbe3..a3270eadad9 100644 --- a/src/Teams/v1.0/examples/Get-MgUserChatTab.md +++ b/src/Teams/v1.0/examples/Get-MgUserChatTab.md @@ -1,12 +1,8 @@ -### Example 1: Update the name of a tab in a chat +### Example 1: Code snippet ```powershell Import-Module Microsoft.Graph.Teams -$params = @{ - displayName = "My Contoso Tab - updated again" -} - -Update-MgChatTab -ChatId $chatId -TeamsTabId $teamsTabId -BodyParameter $params +Get-MgChatTab -ChatId $chatId -TeamsTabId $teamsTabId -ExpandProperty "teamsApp" ``` This example shows how to use the Get-MgUserChatTab Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/v1.0/examples/New-MgChatMember.md b/src/Teams/v1.0/examples/New-MgChatMember.md index 42f9d289f25..cc853433e72 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: Add a single member to a chat and specify the timespan for the conversation history +### Example 1: Code snippet ```powershell Import-Module Microsoft.Graph.Teams @@ -16,7 +16,7 @@ New-MgChatMember -ChatId $chatId -BodyParameter $params This example shows how to use the New-MgChatMember Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Adding a single member to a Microsoft Teams chat, sharing no chat history +### Example 2: Code snippet ```powershell Import-Module Microsoft.Graph.Teams @@ -33,7 +33,7 @@ New-MgChatMember -ChatId $chatId -BodyParameter $params This example shows how to use the New-MgChatMember Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Adding a single member to a Microsoft Teams chat, sharing the whole history of the chat +### Example 3: Code snippet ```powershell Import-Module Microsoft.Graph.Teams @@ -51,7 +51,7 @@ New-MgChatMember -ChatId $chatId -BodyParameter $params This example shows how to use the New-MgChatMember Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Add a single member to a chat using user principal name +### Example 4: Code snippet ```powershell Import-Module Microsoft.Graph.Teams diff --git a/src/Teams/v1.0/examples/New-MgChatMessage.md b/src/Teams/v1.0/examples/New-MgChatMessage.md index 86d4f233560..dbbdeb82fe1 100644 --- a/src/Teams/v1.0/examples/New-MgChatMessage.md +++ b/src/Teams/v1.0/examples/New-MgChatMessage.md @@ -307,6 +307,8 @@ $params = @{ ) reactions = @( ) + messageHistory = @( + ) } New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params diff --git a/src/Teams/v1.0/examples/New-MgGroupTeamChannelMessage.md b/src/Teams/v1.0/examples/New-MgGroupTeamChannelMessage.md index b716b57e025..cc97a1fa540 100644 --- a/src/Teams/v1.0/examples/New-MgGroupTeamChannelMessage.md +++ b/src/Teams/v1.0/examples/New-MgGroupTeamChannelMessage.md @@ -307,6 +307,8 @@ $params = @{ ) reactions = @( ) + messageHistory = @( + ) } New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params diff --git a/src/Teams/v1.0/examples/New-MgGroupTeamPrimaryChannelMessage.md b/src/Teams/v1.0/examples/New-MgGroupTeamPrimaryChannelMessage.md index f1a246081af..b1d7b9ea64d 100644 --- a/src/Teams/v1.0/examples/New-MgGroupTeamPrimaryChannelMessage.md +++ b/src/Teams/v1.0/examples/New-MgGroupTeamPrimaryChannelMessage.md @@ -307,6 +307,8 @@ $params = @{ ) reactions = @( ) + messageHistory = @( + ) } New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params diff --git a/src/Teams/v1.0/examples/New-MgTeamChannelMessage.md b/src/Teams/v1.0/examples/New-MgTeamChannelMessage.md index ec498baceb7..3087ff64e2f 100644 --- a/src/Teams/v1.0/examples/New-MgTeamChannelMessage.md +++ b/src/Teams/v1.0/examples/New-MgTeamChannelMessage.md @@ -307,6 +307,8 @@ $params = @{ ) reactions = @( ) + messageHistory = @( + ) } New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params diff --git a/src/Teams/v1.0/examples/New-MgTeamInstalledApp.md b/src/Teams/v1.0/examples/New-MgTeamInstalledApp.md index f6c6949389e..666401aa45a 100644 --- a/src/Teams/v1.0/examples/New-MgTeamInstalledApp.md +++ b/src/Teams/v1.0/examples/New-MgTeamInstalledApp.md @@ -1,17 +1,13 @@ -### Example 1: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Teams -{{ Add description here }} +$params = @{ + "teamsApp@odata.bind" = "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps/12345678-9abc-def0-123456789a" +} -### Example 2: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +New-MgTeamInstalledApp -TeamId $teamId -BodyParameter $params +``` +This example shows how to use the New-MgTeamInstalledApp Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/v1.0/examples/New-MgTeamPrimaryChannelMessage.md b/src/Teams/v1.0/examples/New-MgTeamPrimaryChannelMessage.md index 618f7f13ac5..4db1b5faedb 100644 --- a/src/Teams/v1.0/examples/New-MgTeamPrimaryChannelMessage.md +++ b/src/Teams/v1.0/examples/New-MgTeamPrimaryChannelMessage.md @@ -307,6 +307,8 @@ $params = @{ ) reactions = @( ) + messageHistory = @( + ) } New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params diff --git a/src/Teams/v1.0/examples/New-MgUserChat.md b/src/Teams/v1.0/examples/New-MgUserChat.md index b97c38e70cd..4cc79c4baf7 100644 --- a/src/Teams/v1.0/examples/New-MgUserChat.md +++ b/src/Teams/v1.0/examples/New-MgUserChat.md @@ -1,4 +1,4 @@ -### Example 1: Code snippet +### Example 1: List all chats ```powershell Import-Module Microsoft.Graph.Teams @@ -7,7 +7,7 @@ Get-MgUserChat -UserId $userId This example shows how to use the New-MgUserChat Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Code snippet +### Example 2: List all chats along with the members of each chat ```powershell Import-Module Microsoft.Graph.Teams @@ -16,7 +16,7 @@ Get-MgUserChat -UserId $userId -ExpandProperty "members" This example shows how to use the New-MgUserChat Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Code snippet +### Example 3: List all chats in order of the most to least recent chat messages ```powershell Import-Module Microsoft.Graph.Teams @@ -25,3 +25,12 @@ Get-MgChat -Sort "lastMessagePreview/createdDateTime desc" This example shows how to use the New-MgUserChat Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: List chats along with the preview of the last message sent in the chat + +```powershell Import-Module Microsoft.Graph.Teams + +Get-MgChat -ExpandProperty "lastMessagePreview" +``` +This example shows how to use the New-MgUserChat Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/v1.0/examples/New-MgUserChatMember.md b/src/Teams/v1.0/examples/New-MgUserChatMember.md index 54b9413ec73..6b4889ff5ae 100644 --- a/src/Teams/v1.0/examples/New-MgUserChatMember.md +++ b/src/Teams/v1.0/examples/New-MgUserChatMember.md @@ -1,4 +1,4 @@ -### Example 1: Add a single member to a chat and specify the timespan for the conversation history +### Example 1: Code snippet ```powershell Import-Module Microsoft.Graph.Teams @@ -16,7 +16,7 @@ New-MgChatMember -ChatId $chatId -BodyParameter $params This example shows how to use the New-MgUserChatMember Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Adding a single member to a Microsoft Teams chat, sharing no chat history +### Example 2: Code snippet ```powershell Import-Module Microsoft.Graph.Teams @@ -33,7 +33,7 @@ New-MgChatMember -ChatId $chatId -BodyParameter $params This example shows how to use the New-MgUserChatMember Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Adding a single member to a Microsoft Teams chat, sharing the whole history of the chat +### Example 3: Code snippet ```powershell Import-Module Microsoft.Graph.Teams @@ -51,7 +51,7 @@ New-MgChatMember -ChatId $chatId -BodyParameter $params This example shows how to use the New-MgUserChatMember Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Add a single member to a chat using user principal name +### Example 4: Code snippet ```powershell Import-Module Microsoft.Graph.Teams diff --git a/src/Teams/v1.0/examples/New-MgUserChatMessage.md b/src/Teams/v1.0/examples/New-MgUserChatMessage.md index 2a2d0f83b58..3d92f9a9122 100644 --- a/src/Teams/v1.0/examples/New-MgUserChatMessage.md +++ b/src/Teams/v1.0/examples/New-MgUserChatMessage.md @@ -307,6 +307,8 @@ $params = @{ ) reactions = @( ) + messageHistory = @( + ) } New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params diff --git a/src/Teams/v1.0/examples/Remove-MgChat.md b/src/Teams/v1.0/examples/Remove-MgChat.md index b7f64b685e6..ced021564bb 100644 --- a/src/Teams/v1.0/examples/Remove-MgChat.md +++ b/src/Teams/v1.0/examples/Remove-MgChat.md @@ -1,12 +1,44 @@ -### Example 1: Code snippet +### Example 1: Get a group chat ```powershell Import-Module Microsoft.Graph.Teams -$params = @{ - topic = "Group chat title update" -} +Get-MgChat -ChatId $chatId +``` +This example shows how to use the Remove-MgChat Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Get a user's one on one chat + +```powershell Import-Module Microsoft.Graph.Teams + +Get-MgUserChat -UserId $userId -ChatId $chatId +``` +This example shows how to use the Remove-MgChat Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Get a chat and all its members + +```powershell Import-Module Microsoft.Graph.Teams + +Get-MgChat -ChatId $chatId -ExpandProperty "members" +``` +This example shows how to use the Remove-MgChat Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Get the meeting details of a chat associated with a Microsoft Teams meeting + +```powershell Import-Module Microsoft.Graph.Teams + +Get-MgChat -ChatId $chatId +``` +This example shows how to use the Remove-MgChat Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 5: Get the chat along with the preview of the last message sent in the chat + +```powershell Import-Module Microsoft.Graph.Teams -Update-MgChat -ChatId $chatId -BodyParameter $params +Get-MgChat -ChatId $chatId -ExpandProperty "lastMessagePreview" ``` This example shows how to use the Remove-MgChat Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/v1.0/examples/Remove-MgChatTab.md b/src/Teams/v1.0/examples/Remove-MgChatTab.md index b28059be6e5..68f5a52d090 100644 --- a/src/Teams/v1.0/examples/Remove-MgChatTab.md +++ b/src/Teams/v1.0/examples/Remove-MgChatTab.md @@ -1,12 +1,8 @@ -### Example 1: Update the name of a tab in a chat +### Example 1: Code snippet ```powershell Import-Module Microsoft.Graph.Teams -$params = @{ - displayName = "My Contoso Tab - updated again" -} - -Update-MgChatTab -ChatId $chatId -TeamsTabId $teamsTabId -BodyParameter $params +Get-MgChatTab -ChatId $chatId -TeamsTabId $teamsTabId -ExpandProperty "teamsApp" ``` This example shows how to use the Remove-MgChatTab Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/v1.0/examples/Remove-MgGroupTeamChannelMember.md b/src/Teams/v1.0/examples/Remove-MgGroupTeamChannelMember.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Remove-MgGroupTeamChannelMember.md +++ b/src/Teams/v1.0/examples/Remove-MgGroupTeamChannelMember.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Remove-MgGroupTeamPrimaryChannelMember.md b/src/Teams/v1.0/examples/Remove-MgGroupTeamPrimaryChannelMember.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Remove-MgGroupTeamPrimaryChannelMember.md +++ b/src/Teams/v1.0/examples/Remove-MgGroupTeamPrimaryChannelMember.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Remove-MgGroupTeamScheduleSchedulingGroup.md b/src/Teams/v1.0/examples/Remove-MgGroupTeamScheduleSchedulingGroup.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Remove-MgGroupTeamScheduleSchedulingGroup.md +++ b/src/Teams/v1.0/examples/Remove-MgGroupTeamScheduleSchedulingGroup.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Remove-MgGroupTeamScheduleShift.md b/src/Teams/v1.0/examples/Remove-MgGroupTeamScheduleShift.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Remove-MgGroupTeamScheduleShift.md +++ b/src/Teams/v1.0/examples/Remove-MgGroupTeamScheduleShift.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Remove-MgGroupTeamScheduleTimeOff.md b/src/Teams/v1.0/examples/Remove-MgGroupTeamScheduleTimeOff.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Remove-MgGroupTeamScheduleTimeOff.md +++ b/src/Teams/v1.0/examples/Remove-MgGroupTeamScheduleTimeOff.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Remove-MgGroupTeamScheduleTimeOffReason.md b/src/Teams/v1.0/examples/Remove-MgGroupTeamScheduleTimeOffReason.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Remove-MgGroupTeamScheduleTimeOffReason.md +++ b/src/Teams/v1.0/examples/Remove-MgGroupTeamScheduleTimeOffReason.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Remove-MgTeam.md b/src/Teams/v1.0/examples/Remove-MgTeam.md index eba29921540..f48488df611 100644 --- a/src/Teams/v1.0/examples/Remove-MgTeam.md +++ b/src/Teams/v1.0/examples/Remove-MgTeam.md @@ -2,21 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Teams -$params = @{ - memberSettings = @{ - allowCreateUpdateChannels = $true - } - messagingSettings = @{ - allowUserEditMessages = $true - allowUserDeleteMessages = $true - } - funSettings = @{ - allowGiphy = $true - giphyContentRating = "strict" - } -} - -Update-MgTeam -TeamId $teamId -BodyParameter $params +Get-MgTeam -TeamId $teamId ``` This example shows how to use the Remove-MgTeam Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/v1.0/examples/Remove-MgTeamChannel.md b/src/Teams/v1.0/examples/Remove-MgTeamChannel.md index 6f6ef1728d7..d2c3d4f6416 100644 --- a/src/Teams/v1.0/examples/Remove-MgTeamChannel.md +++ b/src/Teams/v1.0/examples/Remove-MgTeamChannel.md @@ -2,7 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Teams -Update-MgTeamChannel -TeamId $teamId -ChannelId $channelId +Get-MgTeamChannel -TeamId $teamId -ChannelId $channelId ``` This example shows how to use the Remove-MgTeamChannel Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/v1.0/examples/Remove-MgTeamMember.md b/src/Teams/v1.0/examples/Remove-MgTeamMember.md index 1ea1117a222..6d02d85d892 100644 --- a/src/Teams/v1.0/examples/Remove-MgTeamMember.md +++ b/src/Teams/v1.0/examples/Remove-MgTeamMember.md @@ -2,14 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Teams -$params = @{ - "@odata.type" = "#microsoft.graph.aadUserConversationMember" - roles = @( - "owner" - ) -} - -Update-MgTeamMember -TeamId $teamId -ConversationMemberId $conversationMemberId -BodyParameter $params +Get-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-MgTeamPrimaryChannelMember.md b/src/Teams/v1.0/examples/Remove-MgTeamPrimaryChannelMember.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Remove-MgTeamPrimaryChannelMember.md +++ b/src/Teams/v1.0/examples/Remove-MgTeamPrimaryChannelMember.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Remove-MgTeamScheduleOpenShift.md b/src/Teams/v1.0/examples/Remove-MgTeamScheduleOpenShift.md index d1e4ac79cf3..aa0f7a32601 100644 --- a/src/Teams/v1.0/examples/Remove-MgTeamScheduleOpenShift.md +++ b/src/Teams/v1.0/examples/Remove-MgTeamScheduleOpenShift.md @@ -2,29 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Teams -$params = @{ - schedulingGroupId = "TAG_228940ed-ff84-4e25-b129-1b395cf78be0" - sharedOpenShift = @{ - notes = "Inventory Management" - openSlotCount = 5 - displayName = "Field shift" - startDateTime = [System.DateTime]::Parse("2018-10-04T00:58:45.340Z") - endDateTime = [System.DateTime]::Parse("2018-10-04T09:50:45.332Z") - theme = "white" - activities = @( - @{ - isPaid = $true - startDateTime = [System.DateTime]::Parse("2018-10-04T00:58:45.340Z") - endDateTime = [System.DateTime]::Parse("2018-10-04T01:58:45.340Z") - code = "" - displayName = "Lunch" - } - ) - } - draftOpenShift = $null -} - -Update-MgTeamScheduleOpenShift -TeamId $teamId -OpenShiftId $openShiftId -BodyParameter $params +Get-MgTeamScheduleOpenShift -TeamId $teamId -OpenShiftId $openShiftId ``` This example shows how to use the Remove-MgTeamScheduleOpenShift Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/v1.0/examples/Remove-MgTeamworkWorkforceIntegration.md b/src/Teams/v1.0/examples/Remove-MgTeamworkWorkforceIntegration.md index 744e4de7391..f314fb590a4 100644 --- a/src/Teams/v1.0/examples/Remove-MgTeamworkWorkforceIntegration.md +++ b/src/Teams/v1.0/examples/Remove-MgTeamworkWorkforceIntegration.md @@ -2,19 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Teams -$params = @{ - displayName = "displayName-value" - apiVersion = 99 - encryption = @{ - protocol = "protocol-value" - secret = "secret-value" - } - isActive = $true - url = "url-value" - supportedEntities = "supportedEntities-value" -} - -Update-MgTeamworkWorkforceIntegration -WorkforceIntegrationId $workforceIntegrationId -BodyParameter $params +Get-MgTeamworkWorkforceIntegration -WorkforceIntegrationId $workforceIntegrationId ``` This example shows how to use the Remove-MgTeamworkWorkforceIntegration Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/v1.0/examples/Update-MgChat.md b/src/Teams/v1.0/examples/Update-MgChat.md index 332cc75c2b0..f0399495753 100644 --- a/src/Teams/v1.0/examples/Update-MgChat.md +++ b/src/Teams/v1.0/examples/Update-MgChat.md @@ -1,12 +1,44 @@ -### Example 1: Code snippet +### Example 1: Get a group chat ```powershell Import-Module Microsoft.Graph.Teams -$params = @{ - topic = "Group chat title update" -} +Get-MgChat -ChatId $chatId +``` +This example shows how to use the Update-MgChat Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Get a user's one on one chat + +```powershell Import-Module Microsoft.Graph.Teams + +Get-MgUserChat -UserId $userId -ChatId $chatId +``` +This example shows how to use the Update-MgChat Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Get a chat and all its members + +```powershell Import-Module Microsoft.Graph.Teams + +Get-MgChat -ChatId $chatId -ExpandProperty "members" +``` +This example shows how to use the Update-MgChat Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Get the meeting details of a chat associated with a Microsoft Teams meeting + +```powershell Import-Module Microsoft.Graph.Teams + +Get-MgChat -ChatId $chatId +``` +This example shows how to use the Update-MgChat Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 5: Get the chat along with the preview of the last message sent in the chat + +```powershell Import-Module Microsoft.Graph.Teams -Update-MgChat -ChatId $chatId -BodyParameter $params +Get-MgChat -ChatId $chatId -ExpandProperty "lastMessagePreview" ``` This example shows how to use the Update-MgChat Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/v1.0/examples/Update-MgChatTab.md b/src/Teams/v1.0/examples/Update-MgChatTab.md index 6d5b180b17e..7447957fb46 100644 --- a/src/Teams/v1.0/examples/Update-MgChatTab.md +++ b/src/Teams/v1.0/examples/Update-MgChatTab.md @@ -1,12 +1,8 @@ -### Example 1: Update the name of a tab in a chat +### Example 1: Code snippet ```powershell Import-Module Microsoft.Graph.Teams -$params = @{ - displayName = "My Contoso Tab - updated again" -} - -Update-MgChatTab -ChatId $chatId -TeamsTabId $teamsTabId -BodyParameter $params +Get-MgChatTab -ChatId $chatId -TeamsTabId $teamsTabId -ExpandProperty "teamsApp" ``` This example shows how to use the Update-MgChatTab Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/v1.0/examples/Update-MgGroupTeamChannelMember.md b/src/Teams/v1.0/examples/Update-MgGroupTeamChannelMember.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Update-MgGroupTeamChannelMember.md +++ b/src/Teams/v1.0/examples/Update-MgGroupTeamChannelMember.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Update-MgGroupTeamPrimaryChannelMember.md b/src/Teams/v1.0/examples/Update-MgGroupTeamPrimaryChannelMember.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Update-MgGroupTeamPrimaryChannelMember.md +++ b/src/Teams/v1.0/examples/Update-MgGroupTeamPrimaryChannelMember.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Update-MgGroupTeamScheduleSchedulingGroup.md b/src/Teams/v1.0/examples/Update-MgGroupTeamScheduleSchedulingGroup.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Update-MgGroupTeamScheduleSchedulingGroup.md +++ b/src/Teams/v1.0/examples/Update-MgGroupTeamScheduleSchedulingGroup.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Update-MgGroupTeamScheduleShift.md b/src/Teams/v1.0/examples/Update-MgGroupTeamScheduleShift.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Update-MgGroupTeamScheduleShift.md +++ b/src/Teams/v1.0/examples/Update-MgGroupTeamScheduleShift.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Update-MgGroupTeamScheduleTimeOff.md b/src/Teams/v1.0/examples/Update-MgGroupTeamScheduleTimeOff.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Update-MgGroupTeamScheduleTimeOff.md +++ b/src/Teams/v1.0/examples/Update-MgGroupTeamScheduleTimeOff.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Update-MgGroupTeamScheduleTimeOffReason.md b/src/Teams/v1.0/examples/Update-MgGroupTeamScheduleTimeOffReason.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Update-MgGroupTeamScheduleTimeOffReason.md +++ b/src/Teams/v1.0/examples/Update-MgGroupTeamScheduleTimeOffReason.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Update-MgTeam.md b/src/Teams/v1.0/examples/Update-MgTeam.md index 41638a9e200..5974cbd8e80 100644 --- a/src/Teams/v1.0/examples/Update-MgTeam.md +++ b/src/Teams/v1.0/examples/Update-MgTeam.md @@ -2,21 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Teams -$params = @{ - memberSettings = @{ - allowCreateUpdateChannels = $true - } - messagingSettings = @{ - allowUserEditMessages = $true - allowUserDeleteMessages = $true - } - funSettings = @{ - allowGiphy = $true - giphyContentRating = "strict" - } -} - -Update-MgTeam -TeamId $teamId -BodyParameter $params +Get-MgTeam -TeamId $teamId ``` This example shows how to use the Update-MgTeam Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/v1.0/examples/Update-MgTeamChannel.md b/src/Teams/v1.0/examples/Update-MgTeamChannel.md index 9b0fc3bb554..dfa7e5c088e 100644 --- a/src/Teams/v1.0/examples/Update-MgTeamChannel.md +++ b/src/Teams/v1.0/examples/Update-MgTeamChannel.md @@ -2,7 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Teams -Update-MgTeamChannel -TeamId $teamId -ChannelId $channelId +Get-MgTeamChannel -TeamId $teamId -ChannelId $channelId ``` This example shows how to use the Update-MgTeamChannel Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/v1.0/examples/Update-MgTeamChannelMessage.md b/src/Teams/v1.0/examples/Update-MgTeamChannelMessage.md index 1222e90d1df..2cd42d03e6c 100644 --- a/src/Teams/v1.0/examples/Update-MgTeamChannelMessage.md +++ b/src/Teams/v1.0/examples/Update-MgTeamChannelMessage.md @@ -1,433 +1,26 @@ -### Example 1: Update policyViolation property using application permissions +### Example 1: Get a message in a chat ```powershell Import-Module Microsoft.Graph.Teams -$params = @{ - policyViolation = @{ - policyTip = @{ - generalText = "This item has been blocked by the administrator." - complianceUrl = "https://contoso.com/dlp-policy-page" - matchedConditionDescriptions = @( - "Credit Card Number" - ) - } - verdictDetails = "AllowOverrideWithoutJustification,AllowFalsePositiveOverride" - dlpAction = "BlockAccess" - } -} - -Update-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params -``` -This example shows how to use the Update-MgTeamChannelMessage Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Update any property of a message using delegated permissions - -```powershell Import-Module Microsoft.Graph.Teams - -$params = @{ - messageType = "message" - subject = $null - summary = $null - importance = "normal" - locale = "en-us" - from = @{ - application = $null - device = $null - user = @{ - id = "3b102402-813e-4e17-a6b2-f841aef1fdfc" - displayName = "Lam Cong" - userIdentityType = "aadUser" - } - conversation = $null - } - body = @{ - contentType = "text" - content = "Edit text only" - } - attachments = @( - ) - mentions = @( - ) - reactions = @( - ) -} - -Update-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params +Get-MgChatMessage -ChatId $chatId -ChatMessageId $chatMessageId ``` This example shows how to use the Update-MgTeamChannelMessage Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Update the mentions of a message using delegated permissions +### Example 2: Get a message in a channel ```powershell Import-Module Microsoft.Graph.Teams -$params = @{ - messageType = "message" - deletedDateTime = $null - subject = $null - summary = $null - importance = "normal" - locale = "en-us" - from = @{ - application = $null - device = $null - conversation = $null - user = @{ - id = "6b3f3c54-d09c-4fdd-b146-9b514a8a4f40" - displayName = "Lam Cong" - userIdentityType = "aadUser" - } - } - body = @{ - contentType = "html" - content = "<div><div> -<div> -<div> -<div> -<div><at id="0">Raghav</at><at id="1">TestGlobalBot</at> YEAH" - } - attachments = @( - ) - mentions = @( - @{ - id = 0 - mentionText = "Raghav" - mentioned = @{ - application = $null - device = $null - conversation = $null - user = @{ - id = "f1b66449-b46d-49b0-9c3c-53c10234c818e" - displayName = "Lam Cong" - userIdentityType = "aadUser" - } - } - } - @{ - id = 1 - mentionText = "TestGlobalBot" - mentioned = @{ - application = @{ - id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" - displayName = "TestGlobalBot" - applicationIdentityType = "bot" - } - device = $null - conversation = $null - user = $null - } - } - ) - reactions = @( - ) -} - -Update-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params +Get-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId ``` This example shows how to use the Update-MgTeamChannelMessage Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Update the content with attachments of a message using delegated permissions +### Example 3: Get reply to a message in a channel ```powershell Import-Module Microsoft.Graph.Teams -$params = @{ - messageType = "message" - subject = $null - summary = $null - importance = "normal" - locale = "en-us" - from = @{ - application = $null - device = $null - user = @{ - id = "3b102402-813e-4e17-a6b2-f841aef1fdfc" - displayName = "Lam Cong" - userIdentityType = "aadUser" - } - conversation = $null - } - body = @{ - contentType = "html" - content = "<p><em>text</em></p><attachment id="e8f78756199240b88448ae0fc6db112d"></attachment><attachment id="638464e32834471ea202007da60a5ae6"></attachment>" - } - attachments = @( - @{ - id = "e8f78756199240b88448ae0fc6db112d" - contentType = "application/vnd.microsoft.card.hero" - contentUrl = $null - content = "{ - "title": "*title*", - "subtitle": "*subtitle*", - "text": "Have you found yourself scratching your head trying to figure these questions out? Frustrated trying to access some of the goodies unique to the Microsoft Teams platform? Well, fear not, Bot Builder SDK Extension for Teams in .NET and Node flavors is here! Just head on over to Nuget or NPM to download our tasty helpers, sure to speed up your prep time so you can spend more time maximizing the flavor of the bots you're cooking up.Here???s a small sample of some recipes to whet your appetite.", - "images": [ - { - "url": "https://us-api.asm.skype.com/v1/objects/0-eus-d8-ced0c9567ee7b0b233b987bd32f9eacd/views/img_preview" - } - ], - "buttons": [ - { - "type": "openUrl", - "image": "https://urlp.asm.skype.com/v1/url/content?url=https%3a%2f%2fcdn2.iconfinder.com%2fdata%2ficons%2fsocial-icons-33%2f128%2fTrello-128.png", - "title": "???????? click me ????????", - "value": "http://microsoft.com" - }, - { - "type": "imback", - "title": "&i am back& <>= \"", - "value": "&i am back& <>= \"" - }, - { - "type": "openUrl", - "title": "Open URL", - "value": "http://google.com" - } - ] -}" - name = $null - thumbnailUrl = $null - } - @{ - id = "638464e32834471ea202007da60a5ae6" - contentType = "application/vnd.microsoft.card.hero" - contentUrl = $null - content = "{ - "title": "*title*", - "subtitle": "*subtitle*", - "text": "Have you found yourself scratching your head trying to figure these questions out? Frustrated trying to access some of the goodies unique to the Microsoft Teams platform? Well, fear not, Bot Builder SDK Extension for Teams in .NET and Node flavors is here! Just head on over to Nuget or NPM to download our tasty helpers, sure to speed up your prep time so you can spend more time maximizing the flavor of the bots you're cooking up.Here???s a small sample of some recipes to whet your appetite.", - "images": [ - { - "url": "https://us-api.asm.skype.com/v1/objects/0-eus-d8-ced0c9567ee7b0b233b987bd32f9eacd/views/img_preview" - } - ], - "buttons": [ - { - "type": "messageBack", - "title": "&message back& <>= \"", - "text": "text = &message back& <>= \"", - "displayText": "displayText = &message back& <>= \"", - "value": { - "text": "some text 2" - } - } - ] -}" - name = $null - thumbnailUrl = $null - } - ) - mentions = @( - ) - reactions = @( - ) -} - -Update-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params -``` -This example shows how to use the Update-MgTeamChannelMessage Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 5: Update the reactions in a message using delegated permissions - -```powershell Import-Module Microsoft.Graph.Teams - -$params = @{ - messageType = "message" - subject = $null - summary = $null - importance = "normal" - locale = "en-us" - from = @{ - application = $null - device = $null - user = @{ - id = "3b102402-813e-4e17-a6b2-f841aef1fdfc" - displayName = "Lam Cong" - userIdentityType = "aadUser" - } - conversation = $null - } - body = @{ - contentType = "html" - content = "<p><em>text</em></p><attachment id="e8f78756199240b88448ae0fc6db112d"></attachment><attachment id="638464e32834471ea202007da60a5ae6"></attachment>" - } - attachments = @( - @{ - id = "e8f78756199240b88448ae0fc6db112d" - contentType = "application/vnd.microsoft.card.hero" - contentUrl = $null - content = "{ - "title": "*title*", - "subtitle": "*subtitle*", - "text": "Have you found yourself scratching your head trying to figure these questions out? Frustrated trying to access some of the goodies unique to the Microsoft Teams platform? Well, fear not, Bot Builder SDK Extension for Teams in .NET and Node flavors is here! Just head on over to Nuget or NPM to download our tasty helpers, sure to speed up your prep time so you can spend more time maximizing the flavor of the bots you're cooking up.Here???s a small sample of some recipes to whet your appetite.", - "images": [ - { - "url": "https://us-api.asm.skype.com/v1/objects/0-eus-d8-ced0c9567ee7b0b233b987bd32f9eacd/views/img_preview" - } - ], - "buttons": [ - { - "type": "openUrl", - "image": "https://urlp.asm.skype.com/v1/url/content?url=https%3a%2f%2fcdn2.iconfinder.com%2fdata%2ficons%2fsocial-icons-33%2f128%2fTrello-128.png", - "title": "???????? click me ????????", - "value": "http://microsoft.com" - }, - { - "type": "imback", - "title": "&i am back& <>= \"", - "value": "&i am back& <>= \"" - }, - { - "type": "openUrl", - "title": "Open URL", - "value": "http://google.com" - } - ] -}" - name = $null - thumbnailUrl = $null - } - @{ - id = "638464e32834471ea202007da60a5ae6" - contentType = "application/vnd.microsoft.card.hero" - contentUrl = $null - content = "{ - "title": "*title*", - "subtitle": "*subtitle*", - "text": "Have you found yourself scratching your head trying to figure these questions out? Frustrated trying to access some of the goodies unique to the Microsoft Teams platform? Well, fear not, Bot Builder SDK Extension for Teams in .NET and Node flavors is here! Just head on over to Nuget or NPM to download our tasty helpers, sure to speed up your prep time so you can spend more time maximizing the flavor of the bots you're cooking up.Here???s a small sample of some recipes to whet your appetite.", - "images": [ - { - "url": "https://us-api.asm.skype.com/v1/objects/0-eus-d8-ced0c9567ee7b0b233b987bd32f9eacd/views/img_preview" - } - ], - "buttons": [ - { - "type": "messageBack", - "title": "&message back& <>= \"", - "text": "text = &message back& <>= \"", - "displayText": "displayText = &message back& <>= \"", - "value": { - "text": "some text 2" - } - } - ] -}" - name = $null - thumbnailUrl = $null - } - ) - mentions = @( - ) - reactions = @( - @{ - reactionType = "angry" - createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:30.489Z") - user = @{ - application = $null - device = $null - user = @{ - id = "f1b66449-b46d-49b0-9c3c-53c10a5c818e" - displayName = $null - userIdentityType = "aadUser" - } - } - } - @{ - reactionType = "laugh" - createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:32.489Z") - user = @{ - application = $null - device = $null - user = @{ - id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" - displayName = $null - userIdentityType = "aadUser" - } - } - } - @{ - reactionType = "like" - createdDateTime = [System.DateTime]::Parse("2018-10-21T02:17:14.67Z") - user = @{ - application = $null - device = $null - user = @{ - id = "f1b66449-b46d-49b0-9c3c-53c10a5c818e" - displayName = $null - userIdentityType = "aadUser" - } - } - } - @{ - reactionType = "like" - createdDateTime = [System.DateTime]::Parse("2018-10-21T02:34:40.3Z") - user = @{ - application = $null - device = $null - user = @{ - id = "4c9041b7-449a-40f7-8855-56da239b9fd1" - displayName = $null - userIdentityType = "aadUser" - } - } - } - @{ - reactionType = "like" - createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:25.489Z") - user = @{ - application = $null - device = $null - user = @{ - id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" - displayName = $null - userIdentityType = "aadUser" - } - } - } - @{ - reactionType = "heart" - createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:31.489Z") - user = @{ - application = $null - device = $null - user = @{ - id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" - displayName = $null - userIdentityType = "aadUser" - } - } - } - @{ - reactionType = "sad" - createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:33.489Z") - user = @{ - application = $null - device = $null - user = @{ - id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" - displayName = $null - userIdentityType = "aadUser" - } - } - } - @{ - reactionType = "surprised" - createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:34.489Z") - user = @{ - application = $null - device = $null - user = @{ - id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" - displayName = $null - userIdentityType = "aadUser" - } - } - } - ) -} - -Update-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params +Get-MgTeamChannelMessageReply -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -ChatMessageId1 $chatMessageId1 ``` This example shows how to use the Update-MgTeamChannelMessage Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/v1.0/examples/Update-MgTeamMember.md b/src/Teams/v1.0/examples/Update-MgTeamMember.md index 6c925ae7e9f..a9bd76eb8ac 100644 --- a/src/Teams/v1.0/examples/Update-MgTeamMember.md +++ b/src/Teams/v1.0/examples/Update-MgTeamMember.md @@ -2,14 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Teams -$params = @{ - "@odata.type" = "#microsoft.graph.aadUserConversationMember" - roles = @( - "owner" - ) -} - -Update-MgTeamMember -TeamId $teamId -ConversationMemberId $conversationMemberId -BodyParameter $params +Get-MgTeamMember -TeamId $teamId -ConversationMemberId $conversationMemberId ``` This example shows how to use the Update-MgTeamMember Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/v1.0/examples/Update-MgTeamPrimaryChannelMember.md b/src/Teams/v1.0/examples/Update-MgTeamPrimaryChannelMember.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Update-MgTeamPrimaryChannelMember.md +++ b/src/Teams/v1.0/examples/Update-MgTeamPrimaryChannelMember.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Update-MgTeamScheduleOpenShift.md b/src/Teams/v1.0/examples/Update-MgTeamScheduleOpenShift.md index 72c4a1953ab..81cd04129d6 100644 --- a/src/Teams/v1.0/examples/Update-MgTeamScheduleOpenShift.md +++ b/src/Teams/v1.0/examples/Update-MgTeamScheduleOpenShift.md @@ -2,29 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Teams -$params = @{ - schedulingGroupId = "TAG_228940ed-ff84-4e25-b129-1b395cf78be0" - sharedOpenShift = @{ - notes = "Inventory Management" - openSlotCount = 5 - displayName = "Field shift" - startDateTime = [System.DateTime]::Parse("2018-10-04T00:58:45.340Z") - endDateTime = [System.DateTime]::Parse("2018-10-04T09:50:45.332Z") - theme = "white" - activities = @( - @{ - isPaid = $true - startDateTime = [System.DateTime]::Parse("2018-10-04T00:58:45.340Z") - endDateTime = [System.DateTime]::Parse("2018-10-04T01:58:45.340Z") - code = "" - displayName = "Lunch" - } - ) - } - draftOpenShift = $null -} - -Update-MgTeamScheduleOpenShift -TeamId $teamId -OpenShiftId $openShiftId -BodyParameter $params +Get-MgTeamScheduleOpenShift -TeamId $teamId -OpenShiftId $openShiftId ``` This example shows how to use the Update-MgTeamScheduleOpenShift Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/v1.0/examples/Update-MgTeamScheduleSchedulingGroup.md b/src/Teams/v1.0/examples/Update-MgTeamScheduleSchedulingGroup.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Update-MgTeamScheduleSchedulingGroup.md +++ b/src/Teams/v1.0/examples/Update-MgTeamScheduleSchedulingGroup.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Update-MgTeamScheduleTimeOff.md b/src/Teams/v1.0/examples/Update-MgTeamScheduleTimeOff.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Update-MgTeamScheduleTimeOff.md +++ b/src/Teams/v1.0/examples/Update-MgTeamScheduleTimeOff.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Update-MgTeamScheduleTimeOffReason.md b/src/Teams/v1.0/examples/Update-MgTeamScheduleTimeOffReason.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Update-MgTeamScheduleTimeOffReason.md +++ b/src/Teams/v1.0/examples/Update-MgTeamScheduleTimeOffReason.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Update-MgTeamTag.md b/src/Teams/v1.0/examples/Update-MgTeamTag.md index 31445b220da..3623652b78c 100644 --- a/src/Teams/v1.0/examples/Update-MgTeamTag.md +++ b/src/Teams/v1.0/examples/Update-MgTeamTag.md @@ -2,11 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Teams -$params = @{ - displayName = "Finance" -} - -Update-MgTeamTag -TeamId $teamId -TeamworkTagId $teamworkTagId -BodyParameter $params +Get-MgTeamTag -TeamId $teamId -TeamworkTagId $teamworkTagId ``` This example shows how to use the Update-MgTeamTag Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/v1.0/examples/Update-MgTeamworkWorkforceIntegration.md b/src/Teams/v1.0/examples/Update-MgTeamworkWorkforceIntegration.md index 93760cad8f0..2430e015311 100644 --- a/src/Teams/v1.0/examples/Update-MgTeamworkWorkforceIntegration.md +++ b/src/Teams/v1.0/examples/Update-MgTeamworkWorkforceIntegration.md @@ -2,19 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Teams -$params = @{ - displayName = "displayName-value" - apiVersion = 99 - encryption = @{ - protocol = "protocol-value" - secret = "secret-value" - } - isActive = $true - url = "url-value" - supportedEntities = "supportedEntities-value" -} - -Update-MgTeamworkWorkforceIntegration -WorkforceIntegrationId $workforceIntegrationId -BodyParameter $params +Get-MgTeamworkWorkforceIntegration -WorkforceIntegrationId $workforceIntegrationId ``` This example shows how to use the Update-MgTeamworkWorkforceIntegration Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/beta/examples/Get-MgBetaUserOutlookMasterCategory.md b/src/Users/beta/examples/Get-MgBetaUserOutlookMasterCategory.md index fdfb8cabb64..cb7d956f62b 100644 --- a/src/Users/beta/examples/Get-MgBetaUserOutlookMasterCategory.md +++ b/src/Users/beta/examples/Get-MgBetaUserOutlookMasterCategory.md @@ -2,12 +2,8 @@ ```powershell Import-Module Microsoft.Graph.Beta.Users -$params = @{ - color = "preset15" -} - # A UPN can also be used as -UserId. -Update-MgBetaUserOutlookMasterCategory -UserId $userId -OutlookCategoryId $outlookCategoryId -BodyParameter $params +Get-MgBetaUserOutlookMasterCategory -UserId $userId -OutlookCategoryId $outlookCategoryId ``` This example shows how to use the Get-MgBetaBetaUserOutlookMasterCategory Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/beta/examples/Get-MgBetaUserSettingShiftPreference.md b/src/Users/beta/examples/Get-MgBetaUserSettingShiftPreference.md index 29ba885a6dd..61ba4ac84de 100644 --- a/src/Users/beta/examples/Get-MgBetaUserSettingShiftPreference.md +++ b/src/Users/beta/examples/Get-MgBetaUserSettingShiftPreference.md @@ -2,32 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Beta.Users -$params = @{ - id = "SHPR_eeab4fb1-20e5-48ca-ad9b-98119d94bee7" - "@odata.etag" = "1a371e53-f0a6-4327-a1ee-e3c56e4b38aa" - availability = @( - @{ - recurrence = @{ - pattern = @{ - type = "Weekly" - daysOfWeek = @( - "Monday" - "Wednesday" - "Friday" - ) - interval = 1 - } - range = @{ - type = "noEnd" - } - } - timeZone = "Pacific Standard Time" - timeSlots = $null - } - ) -} - -Update-MgBetaUserSettingShiftPreference -UserId $userId -BodyParameter $params +Get-MgBetaUserSettingShiftPreference -UserId $userId ``` This example shows how to use the Get-MgBetaBetaUserSettingShiftPreference Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/beta/examples/Get-MgBetaUserTodoList.md b/src/Users/beta/examples/Get-MgBetaUserTodoList.md index 829cb4223af..963aaeba733 100644 --- a/src/Users/beta/examples/Get-MgBetaUserTodoList.md +++ b/src/Users/beta/examples/Get-MgBetaUserTodoList.md @@ -2,12 +2,8 @@ ```powershell Import-Module Microsoft.Graph.Beta.Users -$params = @{ - displayName = "Vacation Plan" -} - # A UPN can also be used as -UserId. -Update-MgBetaUserTodoList -UserId $userId -TodoTaskListId $todoTaskListId -BodyParameter $params +Get-MgBetaUserTodoList -UserId $userId -TodoTaskListId $todoTaskListId ``` This example shows how to use the Get-MgBetaBetaUserTodoList Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/beta/examples/Get-MgBetaUserTodoListTask.md b/src/Users/beta/examples/Get-MgBetaUserTodoListTask.md index fe40951b3d6..41760865ec2 100644 --- a/src/Users/beta/examples/Get-MgBetaUserTodoListTask.md +++ b/src/Users/beta/examples/Get-MgBetaUserTodoListTask.md @@ -2,15 +2,8 @@ ```powershell Import-Module Microsoft.Graph.Beta.Users -$params = @{ - dueDateTime = @{ - dateTime = "2020-07-25T16:00:00" - timeZone = "Eastern Standard Time" - } -} - # A UPN can also be used as -UserId. -Update-MgBetaUserTodoListTask -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -BodyParameter $params +Get-MgBetaUserTodoListTask -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId ``` This example shows how to use the Get-MgBetaBetaUserTodoListTask Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/beta/examples/Get-MgBetaUserTodoListTaskChecklistItem.md b/src/Users/beta/examples/Get-MgBetaUserTodoListTaskChecklistItem.md index d10724a6e60..20d50fa9f13 100644 --- a/src/Users/beta/examples/Get-MgBetaUserTodoListTaskChecklistItem.md +++ b/src/Users/beta/examples/Get-MgBetaUserTodoListTaskChecklistItem.md @@ -2,12 +2,8 @@ ```powershell Import-Module Microsoft.Graph.Beta.Users -$params = @{ - displayName = "buy cake" -} - # A UPN can also be used as -UserId. -Update-MgBetaUserTodoListTaskChecklistItem -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -ChecklistItemId $checklistItemId -BodyParameter $params +Get-MgBetaUserTodoListTaskChecklistItem -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -ChecklistItemId $checklistItemId ``` This example shows how to use the Get-MgBetaBetaUserTodoListTaskChecklistItem Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/beta/examples/Get-MgBetaUserTodoListTaskLinkedResource.md b/src/Users/beta/examples/Get-MgBetaUserTodoListTaskLinkedResource.md index ebe05ffb9b2..094340b260f 100644 --- a/src/Users/beta/examples/Get-MgBetaUserTodoListTaskLinkedResource.md +++ b/src/Users/beta/examples/Get-MgBetaUserTodoListTaskLinkedResource.md @@ -2,15 +2,8 @@ ```powershell Import-Module Microsoft.Graph.Beta.Users -$params = @{ - "@odata.type" = "#microsoft.graph.linkedResource" - webUrl = "http://microsoft.com" - applicationName = "Microsoft" - displayName = "Microsoft" -} - # A UPN can also be used as -UserId. -Update-MgBetaUserTodoListTaskLinkedResource -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -LinkedResourceId $linkedResourceId -BodyParameter $params +Get-MgBetaUserTodoListTaskLinkedResource -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -LinkedResourceId $linkedResourceId ``` This example shows how to use the Get-MgBetaBetaUserTodoListTaskLinkedResource Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/beta/examples/Remove-MgBetaUserOutlookMasterCategory.md b/src/Users/beta/examples/Remove-MgBetaUserOutlookMasterCategory.md index cec2b65de64..a89b26cdb8d 100644 --- a/src/Users/beta/examples/Remove-MgBetaUserOutlookMasterCategory.md +++ b/src/Users/beta/examples/Remove-MgBetaUserOutlookMasterCategory.md @@ -2,12 +2,8 @@ ```powershell Import-Module Microsoft.Graph.Beta.Users -$params = @{ - color = "preset15" -} - # A UPN can also be used as -UserId. -Update-MgBetaUserOutlookMasterCategory -UserId $userId -OutlookCategoryId $outlookCategoryId -BodyParameter $params +Get-MgBetaUserOutlookMasterCategory -UserId $userId -OutlookCategoryId $outlookCategoryId ``` This example shows how to use the Remove-MgBetaBetaUserOutlookMasterCategory Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/beta/examples/Remove-MgBetaUserTodoList.md b/src/Users/beta/examples/Remove-MgBetaUserTodoList.md index 69f0f3e0562..879b5f0b311 100644 --- a/src/Users/beta/examples/Remove-MgBetaUserTodoList.md +++ b/src/Users/beta/examples/Remove-MgBetaUserTodoList.md @@ -2,12 +2,8 @@ ```powershell Import-Module Microsoft.Graph.Beta.Users -$params = @{ - displayName = "Vacation Plan" -} - # A UPN can also be used as -UserId. -Update-MgBetaUserTodoList -UserId $userId -TodoTaskListId $todoTaskListId -BodyParameter $params +Get-MgBetaUserTodoList -UserId $userId -TodoTaskListId $todoTaskListId ``` This example shows how to use the Remove-MgBetaBetaUserTodoList Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/beta/examples/Remove-MgBetaUserTodoListTask.md b/src/Users/beta/examples/Remove-MgBetaUserTodoListTask.md index b2ead41faaf..57adba3ab4e 100644 --- a/src/Users/beta/examples/Remove-MgBetaUserTodoListTask.md +++ b/src/Users/beta/examples/Remove-MgBetaUserTodoListTask.md @@ -2,15 +2,8 @@ ```powershell Import-Module Microsoft.Graph.Beta.Users -$params = @{ - dueDateTime = @{ - dateTime = "2020-07-25T16:00:00" - timeZone = "Eastern Standard Time" - } -} - # A UPN can also be used as -UserId. -Update-MgBetaUserTodoListTask -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -BodyParameter $params +Get-MgBetaUserTodoListTask -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId ``` This example shows how to use the Remove-MgBetaBetaUserTodoListTask Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/beta/examples/Remove-MgBetaUserTodoListTaskChecklistItem.md b/src/Users/beta/examples/Remove-MgBetaUserTodoListTaskChecklistItem.md index 38748cb1774..699cba078ad 100644 --- a/src/Users/beta/examples/Remove-MgBetaUserTodoListTaskChecklistItem.md +++ b/src/Users/beta/examples/Remove-MgBetaUserTodoListTaskChecklistItem.md @@ -2,12 +2,8 @@ ```powershell Import-Module Microsoft.Graph.Beta.Users -$params = @{ - displayName = "buy cake" -} - # A UPN can also be used as -UserId. -Update-MgBetaUserTodoListTaskChecklistItem -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -ChecklistItemId $checklistItemId -BodyParameter $params +Get-MgBetaUserTodoListTaskChecklistItem -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -ChecklistItemId $checklistItemId ``` This example shows how to use the Remove-MgBetaBetaUserTodoListTaskChecklistItem Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/beta/examples/Remove-MgBetaUserTodoListTaskLinkedResource.md b/src/Users/beta/examples/Remove-MgBetaUserTodoListTaskLinkedResource.md index 82d31bd501b..b26d7fdf72c 100644 --- a/src/Users/beta/examples/Remove-MgBetaUserTodoListTaskLinkedResource.md +++ b/src/Users/beta/examples/Remove-MgBetaUserTodoListTaskLinkedResource.md @@ -2,15 +2,8 @@ ```powershell Import-Module Microsoft.Graph.Beta.Users -$params = @{ - "@odata.type" = "#microsoft.graph.linkedResource" - webUrl = "http://microsoft.com" - applicationName = "Microsoft" - displayName = "Microsoft" -} - # A UPN can also be used as -UserId. -Update-MgBetaUserTodoListTaskLinkedResource -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -LinkedResourceId $linkedResourceId -BodyParameter $params +Get-MgBetaUserTodoListTaskLinkedResource -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -LinkedResourceId $linkedResourceId ``` This example shows how to use the Remove-MgBetaBetaUserTodoListTaskLinkedResource Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/beta/examples/Update-MgBetaUserOutlookMasterCategory.md b/src/Users/beta/examples/Update-MgBetaUserOutlookMasterCategory.md index f227c5f6c2c..93822e75809 100644 --- a/src/Users/beta/examples/Update-MgBetaUserOutlookMasterCategory.md +++ b/src/Users/beta/examples/Update-MgBetaUserOutlookMasterCategory.md @@ -2,12 +2,8 @@ ```powershell Import-Module Microsoft.Graph.Beta.Users -$params = @{ - color = "preset15" -} - # A UPN can also be used as -UserId. -Update-MgBetaUserOutlookMasterCategory -UserId $userId -OutlookCategoryId $outlookCategoryId -BodyParameter $params +Get-MgBetaUserOutlookMasterCategory -UserId $userId -OutlookCategoryId $outlookCategoryId ``` This example shows how to use the Update-MgBetaBetaUserOutlookMasterCategory Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/beta/examples/Update-MgBetaUserTodoList.md b/src/Users/beta/examples/Update-MgBetaUserTodoList.md index cd3870378a0..f56aa07517c 100644 --- a/src/Users/beta/examples/Update-MgBetaUserTodoList.md +++ b/src/Users/beta/examples/Update-MgBetaUserTodoList.md @@ -2,12 +2,8 @@ ```powershell Import-Module Microsoft.Graph.Beta.Users -$params = @{ - displayName = "Vacation Plan" -} - # A UPN can also be used as -UserId. -Update-MgBetaUserTodoList -UserId $userId -TodoTaskListId $todoTaskListId -BodyParameter $params +Get-MgBetaUserTodoList -UserId $userId -TodoTaskListId $todoTaskListId ``` This example shows how to use the Update-MgBetaBetaUserTodoList Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/beta/examples/Update-MgBetaUserTodoListTask.md b/src/Users/beta/examples/Update-MgBetaUserTodoListTask.md index a39c43cee03..18aa78c7fd0 100644 --- a/src/Users/beta/examples/Update-MgBetaUserTodoListTask.md +++ b/src/Users/beta/examples/Update-MgBetaUserTodoListTask.md @@ -2,15 +2,8 @@ ```powershell Import-Module Microsoft.Graph.Beta.Users -$params = @{ - dueDateTime = @{ - dateTime = "2020-07-25T16:00:00" - timeZone = "Eastern Standard Time" - } -} - # A UPN can also be used as -UserId. -Update-MgBetaUserTodoListTask -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -BodyParameter $params +Get-MgBetaUserTodoListTask -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId ``` This example shows how to use the Update-MgBetaBetaUserTodoListTask Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/beta/examples/Update-MgBetaUserTodoListTaskChecklistItem.md b/src/Users/beta/examples/Update-MgBetaUserTodoListTaskChecklistItem.md index 16748c42b2c..d8a53cad25f 100644 --- a/src/Users/beta/examples/Update-MgBetaUserTodoListTaskChecklistItem.md +++ b/src/Users/beta/examples/Update-MgBetaUserTodoListTaskChecklistItem.md @@ -2,12 +2,8 @@ ```powershell Import-Module Microsoft.Graph.Beta.Users -$params = @{ - displayName = "buy cake" -} - # A UPN can also be used as -UserId. -Update-MgBetaUserTodoListTaskChecklistItem -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -ChecklistItemId $checklistItemId -BodyParameter $params +Get-MgBetaUserTodoListTaskChecklistItem -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -ChecklistItemId $checklistItemId ``` This example shows how to use the Update-MgBetaBetaUserTodoListTaskChecklistItem Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/beta/examples/Update-MgBetaUserTodoListTaskLinkedResource.md b/src/Users/beta/examples/Update-MgBetaUserTodoListTaskLinkedResource.md index 096682149d9..8307d8155be 100644 --- a/src/Users/beta/examples/Update-MgBetaUserTodoListTaskLinkedResource.md +++ b/src/Users/beta/examples/Update-MgBetaUserTodoListTaskLinkedResource.md @@ -2,15 +2,8 @@ ```powershell Import-Module Microsoft.Graph.Beta.Users -$params = @{ - "@odata.type" = "#microsoft.graph.linkedResource" - webUrl = "http://microsoft.com" - applicationName = "Microsoft" - displayName = "Microsoft" -} - # A UPN can also be used as -UserId. -Update-MgBetaUserTodoListTaskLinkedResource -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -LinkedResourceId $linkedResourceId -BodyParameter $params +Get-MgBetaUserTodoListTaskLinkedResource -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -LinkedResourceId $linkedResourceId ``` This example shows how to use the Update-MgBetaBetaUserTodoListTaskLinkedResource Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/v1.0/examples/Get-MgUserOutlookMasterCategory.md b/src/Users/v1.0/examples/Get-MgUserOutlookMasterCategory.md index 75a4b7e37ef..096a452d50a 100644 --- a/src/Users/v1.0/examples/Get-MgUserOutlookMasterCategory.md +++ b/src/Users/v1.0/examples/Get-MgUserOutlookMasterCategory.md @@ -2,12 +2,8 @@ ```powershell Import-Module Microsoft.Graph.Users -$params = @{ - color = "preset15" -} - # A UPN can also be used as -UserId. -Update-MgUserOutlookMasterCategory -UserId $userId -OutlookCategoryId $outlookCategoryId -BodyParameter $params +Get-MgUserOutlookMasterCategory -UserId $userId -OutlookCategoryId $outlookCategoryId ``` This example shows how to use the Get-MgUserOutlookMasterCategory Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/v1.0/examples/Get-MgUserSettingShiftPreference.md b/src/Users/v1.0/examples/Get-MgUserSettingShiftPreference.md index 8cd1fe7c3d3..c90fb30a5ff 100644 --- a/src/Users/v1.0/examples/Get-MgUserSettingShiftPreference.md +++ b/src/Users/v1.0/examples/Get-MgUserSettingShiftPreference.md @@ -2,32 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Users -$params = @{ - id = "SHPR_eeab4fb1-20e5-48ca-ad9b-98119d94bee7" - "@odata.etag" = "1a371e53-f0a6-4327-a1ee-e3c56e4b38aa" - availability = @( - @{ - recurrence = @{ - pattern = @{ - type = "Weekly" - daysOfWeek = @( - "Monday" - "Wednesday" - "Friday" - ) - interval = 1 - } - range = @{ - type = "noEnd" - } - } - timeZone = "Pacific Standard Time" - timeSlots = $null - } - ) -} - -Update-MgUserSettingShiftPreference -UserId $userId -BodyParameter $params +Get-MgUserSettingShiftPreference -UserId $userId ``` This example shows how to use the Get-MgUserSettingShiftPreference Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/v1.0/examples/Get-MgUserTodoList.md b/src/Users/v1.0/examples/Get-MgUserTodoList.md index 24e5c383feb..e2e9af01667 100644 --- a/src/Users/v1.0/examples/Get-MgUserTodoList.md +++ b/src/Users/v1.0/examples/Get-MgUserTodoList.md @@ -2,12 +2,8 @@ ```powershell Import-Module Microsoft.Graph.Users -$params = @{ - displayName = "Vacation Plan" -} - # A UPN can also be used as -UserId. -Update-MgUserTodoList -UserId $userId -TodoTaskListId $todoTaskListId -BodyParameter $params +Get-MgUserTodoList -UserId $userId -TodoTaskListId $todoTaskListId ``` This example shows how to use the Get-MgUserTodoList Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/v1.0/examples/Get-MgUserTodoListTask.md b/src/Users/v1.0/examples/Get-MgUserTodoListTask.md index db90702ee3d..ac44e02e553 100644 --- a/src/Users/v1.0/examples/Get-MgUserTodoListTask.md +++ b/src/Users/v1.0/examples/Get-MgUserTodoListTask.md @@ -2,15 +2,8 @@ ```powershell Import-Module Microsoft.Graph.Users -$params = @{ - dueDateTime = @{ - dateTime = "2020-07-25T16:00:00" - timeZone = "Eastern Standard Time" - } -} - # A UPN can also be used as -UserId. -Update-MgUserTodoListTask -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -BodyParameter $params +Get-MgUserTodoListTask -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId ``` This example shows how to use the Get-MgUserTodoListTask Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/v1.0/examples/Get-MgUserTodoListTaskChecklistItem.md b/src/Users/v1.0/examples/Get-MgUserTodoListTaskChecklistItem.md index 1aa7eff4753..2f05b59dfe2 100644 --- a/src/Users/v1.0/examples/Get-MgUserTodoListTaskChecklistItem.md +++ b/src/Users/v1.0/examples/Get-MgUserTodoListTaskChecklistItem.md @@ -2,12 +2,8 @@ ```powershell Import-Module Microsoft.Graph.Users -$params = @{ - displayName = "buy cake" -} - # A UPN can also be used as -UserId. -Update-MgUserTodoListTaskChecklistItem -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -ChecklistItemId $checklistItemId -BodyParameter $params +Get-MgUserTodoListTaskChecklistItem -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -ChecklistItemId $checklistItemId ``` This example shows how to use the Get-MgUserTodoListTaskChecklistItem Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/v1.0/examples/Get-MgUserTodoListTaskLinkedResource.md b/src/Users/v1.0/examples/Get-MgUserTodoListTaskLinkedResource.md index 335b6ee1a82..a08c7d86a4c 100644 --- a/src/Users/v1.0/examples/Get-MgUserTodoListTaskLinkedResource.md +++ b/src/Users/v1.0/examples/Get-MgUserTodoListTaskLinkedResource.md @@ -2,15 +2,8 @@ ```powershell Import-Module Microsoft.Graph.Users -$params = @{ - "@odata.type" = "#microsoft.graph.linkedResource" - webUrl = "http://microsoft.com" - applicationName = "Microsoft" - displayName = "Microsoft" -} - # A UPN can also be used as -UserId. -Update-MgUserTodoListTaskLinkedResource -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -LinkedResourceId $linkedResourceId -BodyParameter $params +Get-MgUserTodoListTaskLinkedResource -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -LinkedResourceId $linkedResourceId ``` This example shows how to use the Get-MgUserTodoListTaskLinkedResource Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/v1.0/examples/Remove-MgUserOutlookMasterCategory.md b/src/Users/v1.0/examples/Remove-MgUserOutlookMasterCategory.md index 9286371bf1e..363407d3c9a 100644 --- a/src/Users/v1.0/examples/Remove-MgUserOutlookMasterCategory.md +++ b/src/Users/v1.0/examples/Remove-MgUserOutlookMasterCategory.md @@ -2,12 +2,8 @@ ```powershell Import-Module Microsoft.Graph.Users -$params = @{ - color = "preset15" -} - # A UPN can also be used as -UserId. -Update-MgUserOutlookMasterCategory -UserId $userId -OutlookCategoryId $outlookCategoryId -BodyParameter $params +Get-MgUserOutlookMasterCategory -UserId $userId -OutlookCategoryId $outlookCategoryId ``` This example shows how to use the Remove-MgUserOutlookMasterCategory Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/v1.0/examples/Remove-MgUserTodoList.md b/src/Users/v1.0/examples/Remove-MgUserTodoList.md index 862566c3062..013413949db 100644 --- a/src/Users/v1.0/examples/Remove-MgUserTodoList.md +++ b/src/Users/v1.0/examples/Remove-MgUserTodoList.md @@ -2,12 +2,8 @@ ```powershell Import-Module Microsoft.Graph.Users -$params = @{ - displayName = "Vacation Plan" -} - # A UPN can also be used as -UserId. -Update-MgUserTodoList -UserId $userId -TodoTaskListId $todoTaskListId -BodyParameter $params +Get-MgUserTodoList -UserId $userId -TodoTaskListId $todoTaskListId ``` This example shows how to use the Remove-MgUserTodoList Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/v1.0/examples/Remove-MgUserTodoListTask.md b/src/Users/v1.0/examples/Remove-MgUserTodoListTask.md index a3f812363a4..137c929bd90 100644 --- a/src/Users/v1.0/examples/Remove-MgUserTodoListTask.md +++ b/src/Users/v1.0/examples/Remove-MgUserTodoListTask.md @@ -2,15 +2,8 @@ ```powershell Import-Module Microsoft.Graph.Users -$params = @{ - dueDateTime = @{ - dateTime = "2020-07-25T16:00:00" - timeZone = "Eastern Standard Time" - } -} - # A UPN can also be used as -UserId. -Update-MgUserTodoListTask -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -BodyParameter $params +Get-MgUserTodoListTask -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId ``` This example shows how to use the Remove-MgUserTodoListTask Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/v1.0/examples/Remove-MgUserTodoListTaskChecklistItem.md b/src/Users/v1.0/examples/Remove-MgUserTodoListTaskChecklistItem.md index 1eee8d3aef2..4e940a7deea 100644 --- a/src/Users/v1.0/examples/Remove-MgUserTodoListTaskChecklistItem.md +++ b/src/Users/v1.0/examples/Remove-MgUserTodoListTaskChecklistItem.md @@ -2,12 +2,8 @@ ```powershell Import-Module Microsoft.Graph.Users -$params = @{ - displayName = "buy cake" -} - # A UPN can also be used as -UserId. -Update-MgUserTodoListTaskChecklistItem -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -ChecklistItemId $checklistItemId -BodyParameter $params +Get-MgUserTodoListTaskChecklistItem -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -ChecklistItemId $checklistItemId ``` This example shows how to use the Remove-MgUserTodoListTaskChecklistItem Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/v1.0/examples/Remove-MgUserTodoListTaskLinkedResource.md b/src/Users/v1.0/examples/Remove-MgUserTodoListTaskLinkedResource.md index 2e2df5b6a09..44536b76a85 100644 --- a/src/Users/v1.0/examples/Remove-MgUserTodoListTaskLinkedResource.md +++ b/src/Users/v1.0/examples/Remove-MgUserTodoListTaskLinkedResource.md @@ -2,15 +2,8 @@ ```powershell Import-Module Microsoft.Graph.Users -$params = @{ - "@odata.type" = "#microsoft.graph.linkedResource" - webUrl = "http://microsoft.com" - applicationName = "Microsoft" - displayName = "Microsoft" -} - # A UPN can also be used as -UserId. -Update-MgUserTodoListTaskLinkedResource -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -LinkedResourceId $linkedResourceId -BodyParameter $params +Get-MgUserTodoListTaskLinkedResource -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -LinkedResourceId $linkedResourceId ``` This example shows how to use the Remove-MgUserTodoListTaskLinkedResource Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/v1.0/examples/Update-MgUserOutlookMasterCategory.md b/src/Users/v1.0/examples/Update-MgUserOutlookMasterCategory.md index 3e16b74b19b..7375390ef88 100644 --- a/src/Users/v1.0/examples/Update-MgUserOutlookMasterCategory.md +++ b/src/Users/v1.0/examples/Update-MgUserOutlookMasterCategory.md @@ -2,12 +2,8 @@ ```powershell Import-Module Microsoft.Graph.Users -$params = @{ - color = "preset15" -} - # A UPN can also be used as -UserId. -Update-MgUserOutlookMasterCategory -UserId $userId -OutlookCategoryId $outlookCategoryId -BodyParameter $params +Get-MgUserOutlookMasterCategory -UserId $userId -OutlookCategoryId $outlookCategoryId ``` This example shows how to use the Update-MgUserOutlookMasterCategory Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/v1.0/examples/Update-MgUserSettingShiftPreference.md b/src/Users/v1.0/examples/Update-MgUserSettingShiftPreference.md index 96815045773..cacc90d78de 100644 --- a/src/Users/v1.0/examples/Update-MgUserSettingShiftPreference.md +++ b/src/Users/v1.0/examples/Update-MgUserSettingShiftPreference.md @@ -2,32 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Users -$params = @{ - id = "SHPR_eeab4fb1-20e5-48ca-ad9b-98119d94bee7" - "@odata.etag" = "1a371e53-f0a6-4327-a1ee-e3c56e4b38aa" - availability = @( - @{ - recurrence = @{ - pattern = @{ - type = "Weekly" - daysOfWeek = @( - "Monday" - "Wednesday" - "Friday" - ) - interval = 1 - } - range = @{ - type = "noEnd" - } - } - timeZone = "Pacific Standard Time" - timeSlots = $null - } - ) -} - -Update-MgUserSettingShiftPreference -UserId $userId -BodyParameter $params +Get-MgUserSettingShiftPreference -UserId $userId ``` This example shows how to use the Update-MgUserSettingShiftPreference Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/v1.0/examples/Update-MgUserTodoList.md b/src/Users/v1.0/examples/Update-MgUserTodoList.md index e7019c92233..d76e646d0e8 100644 --- a/src/Users/v1.0/examples/Update-MgUserTodoList.md +++ b/src/Users/v1.0/examples/Update-MgUserTodoList.md @@ -2,12 +2,8 @@ ```powershell Import-Module Microsoft.Graph.Users -$params = @{ - displayName = "Vacation Plan" -} - # A UPN can also be used as -UserId. -Update-MgUserTodoList -UserId $userId -TodoTaskListId $todoTaskListId -BodyParameter $params +Get-MgUserTodoList -UserId $userId -TodoTaskListId $todoTaskListId ``` This example shows how to use the Update-MgUserTodoList Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/v1.0/examples/Update-MgUserTodoListTask.md b/src/Users/v1.0/examples/Update-MgUserTodoListTask.md index 42500d585c7..ac7fcffaf05 100644 --- a/src/Users/v1.0/examples/Update-MgUserTodoListTask.md +++ b/src/Users/v1.0/examples/Update-MgUserTodoListTask.md @@ -2,15 +2,8 @@ ```powershell Import-Module Microsoft.Graph.Users -$params = @{ - dueDateTime = @{ - dateTime = "2020-07-25T16:00:00" - timeZone = "Eastern Standard Time" - } -} - # A UPN can also be used as -UserId. -Update-MgUserTodoListTask -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -BodyParameter $params +Get-MgUserTodoListTask -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId ``` This example shows how to use the Update-MgUserTodoListTask Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/v1.0/examples/Update-MgUserTodoListTaskChecklistItem.md b/src/Users/v1.0/examples/Update-MgUserTodoListTaskChecklistItem.md index 3c1b4d48c3a..cfe5f127674 100644 --- a/src/Users/v1.0/examples/Update-MgUserTodoListTaskChecklistItem.md +++ b/src/Users/v1.0/examples/Update-MgUserTodoListTaskChecklistItem.md @@ -2,12 +2,8 @@ ```powershell Import-Module Microsoft.Graph.Users -$params = @{ - displayName = "buy cake" -} - # A UPN can also be used as -UserId. -Update-MgUserTodoListTaskChecklistItem -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -ChecklistItemId $checklistItemId -BodyParameter $params +Get-MgUserTodoListTaskChecklistItem -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -ChecklistItemId $checklistItemId ``` This example shows how to use the Update-MgUserTodoListTaskChecklistItem Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/v1.0/examples/Update-MgUserTodoListTaskLinkedResource.md b/src/Users/v1.0/examples/Update-MgUserTodoListTaskLinkedResource.md index f47faf4056f..771096f972d 100644 --- a/src/Users/v1.0/examples/Update-MgUserTodoListTaskLinkedResource.md +++ b/src/Users/v1.0/examples/Update-MgUserTodoListTaskLinkedResource.md @@ -2,15 +2,8 @@ ```powershell Import-Module Microsoft.Graph.Users -$params = @{ - "@odata.type" = "#microsoft.graph.linkedResource" - webUrl = "http://microsoft.com" - applicationName = "Microsoft" - displayName = "Microsoft" -} - # A UPN can also be used as -UserId. -Update-MgUserTodoListTaskLinkedResource -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -LinkedResourceId $linkedResourceId -BodyParameter $params +Get-MgUserTodoListTaskLinkedResource -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -LinkedResourceId $linkedResourceId ``` This example shows how to use the Update-MgUserTodoListTaskLinkedResource Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).