Office365-Scoutnet-synk

Synkronisering av användarkonton och e-postlistor från Scoutnet till Office 365


Project maintained by Scouterna Hosted on GitHub Pages — Theme by mattgraham

New-SNSConfiguration

Creates a new configuration.

Description

Creates a configuration object with the settings for the synchronization and caches it in the module. Parameters that are left out keep their default values.

Settings can be given as parameters, or changed afterwards on the returned object. Pass the configuration to Connect-SnSOffice365 and the synchronization functions.

Syntax

New-SNSConfiguration [[-CredentialMemberlist] <pscredential>] [[-CredentialCustomlists] <pscredential>] [[-MailListSettings] <Object>] [[-Microsoft365GroupSettings] <hashtable>] [[-SharedMailboxSettings] <hashtable>] [[-DomainName] <string>] [-LicenseAssignment] <Object> [[-UserSyncMailListId] <Object>] [[-IncludeNicknameInDisplayName] <bool>] [[-LogFilePath] <string>] [[-JsonFileDirectory] <string>] [[-SaveJsonFiles] <bool>] [[-EnableTimingLog] <bool>] [[-AllUsersGroupName] <string>] [[-SignatureText] <string>] [[-SignatureHtml] <string>] [[-NewUserEmailSubject] <string>] [[-NewUserEmailText] <string>] [[-NewUserEmailContentType] <string>] [[-NewUserInfoEmailSubject] <string>] [[-NewUserInfoEmailText] <string>] [[-NewUserInfoEmailContentType] <string>] [[-DisabledAccountsAutoReplyText] <string>] [<CommonParameters>]

Parameters

-CredentialMemberlist

Type: PSCredential; optional.

Credentials for api/group/memberlist

-CredentialCustomlists

Type: PSCredential; optional.

Credentials for api/group/customlists

-MailListSettings

Type: Object; optional.

Maillists to process for maillist syncronisation. A hashtable with maillist info.

-Microsoft365GroupSettings

Type: Hashtable; optional.

Rules for Microsoft 365 groups synchronized from Scoutnet.

-SharedMailboxSettings

Type: Hashtable; optional.

Rules for shared mailboxes synchronized from Scoutnet.

-DomainName

Type: String; optional.

Domain name for office365 mail addresses.

-LicenseAssignment

Type: Object; required.

License assignment data to use when creating a new account.

-UserSyncMailListId

Type: Object; optional.

List Id to use when syncronising user accounts. If it is empty (default value) then all members with a role will be given an account.

-IncludeNicknameInDisplayName

Type: Boolean; optional.

Include a member’s Scoutnet nickname in the Microsoft 365 display name. Default is off.

-LogFilePath

Type: String; optional.

Logfile name and path. Used to override the default value.

-JsonFileDirectory

Type: String; optional.

Directory for downloaded Scoutnet API JSON files.

-SaveJsonFiles

Type: Boolean; optional.

Save downloaded Scoutnet API JSON files.

-EnableTimingLog

Type: Boolean; optional.

Log elapsed time for the phases and contact commands of the distribution group synchronization. Default is off.

-AllUsersGroupName

Type: String; optional.

Name of distribution group to add all new accounts to. The distribution group must exist.

-SignatureText

Type: String; optional.

Outlook on the web signature content for new users. Text version. Automatic signature insertion may not work when Outlook roaming signatures is enabled in the organization. See https://learn.microsoft.com/en-us/powershell/module/exchangepowershell/set-mailboxmessageconfiguration?view=exchange-ps

-SignatureHtml

Type: String; optional.

Outlook on the web signature content for new users. HTML version. Automatic signature insertion may not work when Outlook roaming signatures is enabled in the organization. See https://learn.microsoft.com/en-us/powershell/module/exchangepowershell/set-mailboxmessageconfiguration?view=exchange-ps

-NewUserEmailSubject

Type: String; optional.

Subject for the mail to the user about the new account. Is sent to the member Scoutnet primary e-mail address.

-NewUserEmailText

Type: String; optional.

Body for the mail to the user about the new account. Is sent to the member Scoutnet primary e-mail address.

-NewUserEmailContentType

Type: String; optional.

Content type for the email, supported types is HTML and Text. Default is Text.

-NewUserInfoEmailSubject

Type: String; optional.

Subject for the mail to the users new e-mail address. Can be used to inform the user about the system.

-NewUserInfoEmailText

Type: String; optional.

Body for the mail to the users new e-mail address. Can be used to inform the user about the system.

-NewUserInfoEmailContentType

Type: String; optional.

Content type for the email, supported types is HTML and Text. Default is Text.

-DisabledAccountsAutoReplyText

Type: String; optional.

Autoreply message for disabled accounts. If set this text is set as autoreply message for disabled accounts. Html is supported.

Examples

Example 1

$conf = New-SNSConfiguration -LicenseAssignment $licenseAssignment -UserSyncMailListId '1234'
$conf.DomainName = 'example.se'
$conf.EnableTimingLog = $true

Creates a configuration and changes some settings on the returned object.