Update-MgIdentityConditionalAccessNamedLocation
Update the navigation property namedLocations in identity
Syntax
Update-MgIdentityConditionalAccessNamedLocation
-NamedLocationId <String>
[-AdditionalProperties <Hashtable>]
[-CreatedDateTime <DateTime>]
[-DisplayName <String>]
[-Id <String>]
[-ModifiedDateTime <DateTime>]
[-PassThru]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Update-MgIdentityConditionalAccessNamedLocation
-NamedLocationId <String>
-BodyParameter <IMicrosoftGraphNamedLocation>
[-PassThru]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Update-MgIdentityConditionalAccessNamedLocation
-InputObject <IIdentitySignInsIdentity>
[-AdditionalProperties <Hashtable>]
[-CreatedDateTime <DateTime>]
[-DisplayName <String>]
[-Id <String>]
[-ModifiedDateTime <DateTime>]
[-PassThru]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Update-MgIdentityConditionalAccessNamedLocation
-InputObject <IIdentitySignInsIdentity>
-BodyParameter <IMicrosoftGraphNamedLocation>
[-PassThru]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
Update the navigation property namedLocations in identity
Examples
Example 1: Update a country named location by adding to the list of countries
Connect-MgGraph -Scopes 'Policy.ReadWrite.ConditionalAccess'
$params = @{
"@odata.type" = "#microsoft.graph.countryNamedLocation"
DisplayName = "Named location with unknown countries and regions"
CountriesAndRegions = @(
"US"
"XK"
"ID"
"CA"
)
IncludeUnknownCountriesAndRegions = $true
}
Update-MgIdentityConditionalAccessNamedLocation -NamedLocationId '1f0fd623-bf8f-4003-9627-32a68c3cdcc1' -BodyParameter $params
This example updates the details of an existing named location.
Supply the values of the relevant fields that should be updated.
In this example, ID and CA are added in the list of countries.
Parameters
-AdditionalProperties
Additional Parameters
| Type: | Hashtable |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
-BodyParameter
namedLocation To construct, please use Get-Help -Online and see NOTES section for BODYPARAMETER properties and create a hash table.
| Type: | IMicrosoftGraphNamedLocation |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
-Confirm
Prompts you for confirmation before running the cmdlet.
| Type: | SwitchParameter |
| Aliases: | cf |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
-CreatedDateTime
The Timestamp type represents creation date and time of the location using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.
| Type: | DateTime |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
-DisplayName
Human-readable name of the location.
| Type: | String |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
-Id
The unique idenfier for an entity. Read-only.
| Type: | String |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
-InputObject
Identity Parameter To construct, please use Get-Help -Online and see NOTES section for INPUTOBJECT properties and create a hash table.
| Type: | IIdentitySignInsIdentity |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
-ModifiedDateTime
The Timestamp type represents last modified date and time of the location using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.
| Type: | DateTime |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
-NamedLocationId
key: id of namedLocation
| Type: | String |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
-PassThru
Returns true when the command succeeds
| Type: | SwitchParameter |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
| Type: | SwitchParameter |
| Aliases: | wi |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Inputs
Microsoft.Graph.PowerShell.Models.IIdentitySignInsIdentity
Microsoft.Graph.PowerShell.Models.IMicrosoftGraphNamedLocation
Outputs
System.Boolean
Notes
ALIASES
COMPLEX PARAMETER PROPERTIES
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
BODYPARAMETER <IMicrosoftGraphNamedLocation>: namedLocation
[(Any) <Object>]: This indicates any property can be added to this object.[Id <String>]: The unique idenfier for an entity. Read-only.[CreatedDateTime <DateTime?>]: The Timestamp type represents creation date and time of the location using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.[DisplayName <String>]: Human-readable name of the location.[ModifiedDateTime <DateTime?>]: The Timestamp type represents last modified date and time of the location using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.
INPUTOBJECT <IIdentitySignInsIdentity>: Identity Parameter
[ActivityBasedTimeoutPolicyId <String>]: key: id of activityBasedTimeoutPolicy[AppManagementPolicyId <String>]: key: id of appManagementPolicy[AuthenticationCombinationConfigurationId <String>]: key: id of authenticationCombinationConfiguration[AuthenticationContextClassReferenceId <String>]: key: id of authenticationContextClassReference[AuthenticationEventListenerId <String>]: key: id of authenticationEventListener[AuthenticationMethodConfigurationId <String>]: key: id of authenticationMethodConfiguration[AuthenticationMethodId <String>]: key: id of authenticationMethod[AuthenticationMethodModeDetailId <String>]: key: id of authenticationMethodModeDetail[AuthenticationMethodModes <String[]>]: Usage: authenticationMethodModes={authenticationMethodModes}[AuthenticationStrengthPolicyId <String>]: key: id of authenticationStrengthPolicy[AuthorizationPolicyId <String>]: key: id of authorizationPolicy[B2CIdentityUserFlowId <String>]: key: id of b2cIdentityUserFlow[B2XIdentityUserFlowId <String>]: key: id of b2xIdentityUserFlow[BitlockerRecoveryKeyId <String>]: key: id of bitlockerRecoveryKey[CertificateBasedAuthConfigurationId <String>]: key: id of certificateBasedAuthConfiguration[ClaimsMappingPolicyId <String>]: key: id of claimsMappingPolicy[CommandId <String>]: key: id of command[ConditionalAccessPolicyId <String>]: key: id of conditionalAccessPolicy[ConditionalAccessTemplateId <String>]: key: id of conditionalAccessTemplate[CrossTenantAccessPolicyConfigurationPartnerTenantId <String>]: key: tenantId of crossTenantAccessPolicyConfigurationPartner[CustomAuthenticationExtensionId <String>]: key: id of customAuthenticationExtension[DataLossPreventionPolicyId <String>]: key: id of dataLossPreventionPolicy[DataPolicyOperationId <String>]: key: id of dataPolicyOperation[DefaultUserRoleOverrideId <String>]: key: id of defaultUserRoleOverride[DirectoryObjectId <String>]: key: id of directoryObject[EmailAuthenticationMethodId <String>]: key: id of emailAuthenticationMethod[ExtensionId <String>]: key: id of extension[FeatureRolloutPolicyId <String>]: key: id of featureRolloutPolicy[Fido2AuthenticationMethodId <String>]: key: id of fido2AuthenticationMethod[GroupId <String>]: key: id of group[HomeRealmDiscoveryPolicyId <String>]: key: id of homeRealmDiscoveryPolicy[IdentityApiConnectorId <String>]: key: id of identityApiConnector[IdentityProviderBaseId <String>]: key: id of identityProviderBase[IdentityProviderId <String>]: key: id of identityProvider[IdentityUserFlowAttributeAssignmentId <String>]: key: id of identityUserFlowAttributeAssignment[IdentityUserFlowAttributeId <String>]: key: id of identityUserFlowAttribute[IdentityUserFlowId <String>]: key: id of identityUserFlow[InformationProtectionLabelId <String>]: key: id of informationProtectionLabel[LongRunningOperationId <String>]: key: id of longRunningOperation[MicrosoftAuthenticatorAuthenticationMethodId <String>]: key: id of microsoftAuthenticatorAuthenticationMethod[MobilityManagementPolicyId <String>]: key: id of mobilityManagementPolicy[NamedLocationId <String>]: key: id of namedLocation[OAuth2PermissionGrantId <String>]: key: id of oAuth2PermissionGrant[OrganizationId <String>]: key: id of organization[PasswordAuthenticationMethodId <String>]: key: id of passwordAuthenticationMethod[PasswordlessMicrosoftAuthenticatorAuthenticationMethodId <String>]: key: id of passwordlessMicrosoftAuthenticatorAuthenticationMethod[PermissionGrantConditionSetId <String>]: key: id of permissionGrantConditionSet[PermissionGrantPolicyId <String>]: key: id of permissionGrantPolicy[PhoneAuthenticationMethodId <String>]: key: id of phoneAuthenticationMethod[RiskDetectionId <String>]: key: id of riskDetection[RiskyServicePrincipalHistoryItemId <String>]: key: id of riskyServicePrincipalHistoryItem[RiskyServicePrincipalId <String>]: key: id of riskyServicePrincipal[RiskyUserHistoryItemId <String>]: key: id of riskyUserHistoryItem[RiskyUserId <String>]: key: id of riskyUser[SensitivityLabelId <String>]: key: id of sensitivityLabel[SensitivityLabelId1 <String>]: key: id of sensitivityLabel[ServicePrincipalCreationConditionSetId <String>]: key: id of servicePrincipalCreationConditionSet[ServicePrincipalCreationPolicyId <String>]: key: id of servicePrincipalCreationPolicy[ServicePrincipalRiskDetectionId <String>]: key: id of servicePrincipalRiskDetection[SoftwareOathAuthenticationMethodId <String>]: key: id of softwareOathAuthenticationMethod[TemporaryAccessPassAuthenticationMethodId <String>]: key: id of temporaryAccessPassAuthenticationMethod[ThreatAssessmentRequestId <String>]: key: id of threatAssessmentRequest[ThreatAssessmentResultId <String>]: key: id of threatAssessmentResult[TokenIssuancePolicyId <String>]: key: id of tokenIssuancePolicy[TokenLifetimePolicyId <String>]: key: id of tokenLifetimePolicy[TrustFrameworkKeySetId <String>]: key: id of trustFrameworkKeySet[TrustFrameworkPolicyId <String>]: key: id of trustFrameworkPolicy[UnifiedRoleManagementPolicyAssignmentId <String>]: key: id of unifiedRoleManagementPolicyAssignment[UnifiedRoleManagementPolicyId <String>]: key: id of unifiedRoleManagementPolicy[UnifiedRoleManagementPolicyRuleId <String>]: key: id of unifiedRoleManagementPolicyRule[UsageRightId <String>]: key: id of usageRight[UserFlowLanguageConfigurationId <String>]: key: id of userFlowLanguageConfiguration[UserFlowLanguagePageId <String>]: key: id of userFlowLanguagePage[UserId <String>]: key: id of user[WindowsHelloForBusinessAuthenticationMethodId <String>]: key: id of windowsHelloForBusinessAuthenticationMethod