Set-EntraTenantDetail
Set contact details for a tenant.
Syntax
Default (Default)
Set-EntraTenantDetail
[-PrivacyProfile <PrivacyProfile>]
[-MarketingNotificationEmails <System.Collections.Generic.List`1[System.String]>]
[-TechnicalNotificationMails <System.Collections.Generic.List`1[System.String]>]
[-SecurityComplianceNotificationMails <System.Collections.Generic.List`1[System.String]>]
[-SecurityComplianceNotificationPhones <System.Collections.Generic.List`1[System.String]>]
[<CommonParameters>]
Description
This cmdlet is used to set various contact details for a tenant.
For delegated scenarios, the signed-in user must have at least one of the following Microsoft Entra roles.
- Application Administrator
- Cloud Application Administrator
- Privileged Role Administrator
- User Administrator
- Helpdesk Administrator
Examples
Example 1: Set contact details for a tenant
Connect-Entra -Scopes 'Organization.ReadWrite.All'
$params = @{
MarketingNotificationEmails = @('amy@contoso.com', 'henry@contoso.com')
SecurityComplianceNotificationMails = @('john@contoso.com', 'mary@contoso.com')
SecurityComplianceNotificationPhones = @('1-555-625-9999', '1-555-233-5544')
TechnicalNotificationMails = 'peter@contoso.com'
}
Set-EntraTenantDetail @params
This example demonstrates how to set various contact details for a tenant.
-MarketingNotificationEmailsparameter indicates the email addresses that are used to send marketing notification emails.-SecurityComplianceNotificationMailsparameter indicates the email addresses that are used to send security compliance emails.-SecurityComplianceNotificationPhonesparameter specifies the phone numbers that are used for security compliance.-TechnicalNotificationMailsparameter indicates the email addresses that are used for technical notification emails.
Example 2: Set MarketingNotificationEmails for a tenant
Connect-Entra -Scopes 'Organization.ReadWrite.All'
Set-EntraTenantDetail -MarketingNotificationEmails @('amy@contoso.com','henry@contoso.com')
This example demonstrates how to set MarketingNotificationEmails detail for a tenant.
-MarketingNotificationEmailsparameter indicates the email addresses that are used to send marketing notification emails.
Example 3: Set SecurityComplianceNotificationMails for a tenant
Connect-Entra -Scopes 'Organization.ReadWrite.All'
Set-EntraTenantDetail -SecurityComplianceNotificationMails @('john@contoso.com','mary@contoso.com')
This example demonstrates how to set SecurityComplianceNotificationMails detail for a tenant.
-SecurityComplianceNotificationMailsparameter indicates the email addresses that are used to send security compliance emails.
Example 4: Set -SecurityComplianceNotificationPhones for a tenant
Connect-Entra -Scopes 'Organization.ReadWrite.All'
Set-EntraTenantDetail -SecurityComplianceNotificationPhones @('1-555-625-9999', '1-555-233-5544')
This example demonstrates how to set MarketingNotificationEmails detail for a tenant.
-SecurityComplianceNotificationPhonesparameter specifies the phone numbers that are used for security compliance.
Example 5: Set TechnicalNotificationMails for a tenant
Connect-Entra -Scopes 'Organization.ReadWrite.All'
Set-EntraTenantDetail -TechnicalNotificationMails 'peter@contoso.com'
This example demonstrates how to set TechnicalNotificationMails detail for a tenant.
-TechnicalNotificationMailsparameter indicates the email addresses that are used for technical notification emails.
Parameters
-MarketingNotificationEmails
The email addresses that are used to send marketing notification emails.
Parameter properties
| Type: | System.Collections.Generic.List`1[System.String] |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-PrivacyProfile
Represents a company's privacy profile, which includes a privacy statement URL and a contact person for questions regarding the privacy statement.
Parameter properties
| Type: | PrivacyProfile |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-SecurityComplianceNotificationMails
The email addresses that are used to send security compliance emails.
Parameter properties
| Type: | System.Collections.Generic.List`1[System.String] |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-SecurityComplianceNotificationPhones
One or more phone numbers that are used for security compliance.
Parameter properties
| Type: | System.Collections.Generic.List`1[System.String] |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-TechnicalNotificationMails
The email addresses that are used for technical notification emails.
Parameter properties
| Type: | System.Collections.Generic.List`1[System.String] |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Inputs
None
Outputs
System.Object
Notes
- For more details see Update organization.