Synkronisering av användarkonton och e-postlistor från Scoutnet till Office 365
Creates a new configuration.
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.
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>]
Type: PSCredential; optional.
Credentials for api/group/memberlist
Type: PSCredential; optional.
Credentials for api/group/customlists
Type: Object; optional.
Maillists to process for maillist syncronisation. A hashtable with maillist info.
Type: Hashtable; optional.
Rules for Microsoft 365 groups synchronized from Scoutnet.
Type: Hashtable; optional.
Rules for shared mailboxes synchronized from Scoutnet.
Type: String; optional.
Domain name for office365 mail addresses.
Type: Object; required.
License assignment data to use when creating a new account.
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.
Type: Boolean; optional.
Include a member’s Scoutnet nickname in the Microsoft 365 display name. Default is off.
Type: String; optional.
Logfile name and path. Used to override the default value.
Type: String; optional.
Directory for downloaded Scoutnet API JSON files.
Type: Boolean; optional.
Save downloaded Scoutnet API JSON files.
Type: Boolean; optional.
Log elapsed time for the phases and contact commands of the distribution group synchronization. Default is off.
Type: String; optional.
Name of distribution group to add all new accounts to. The distribution group must exist.
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
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
Type: String; optional.
Subject for the mail to the user about the new account. Is sent to the member Scoutnet primary e-mail address.
Type: String; optional.
Body for the mail to the user about the new account. Is sent to the member Scoutnet primary e-mail address.
Type: String; optional.
Content type for the email, supported types is HTML and Text. Default is Text.
Type: String; optional.
Subject for the mail to the users new e-mail address. Can be used to inform the user about the system.
Type: String; optional.
Body for the mail to the users new e-mail address. Can be used to inform the user about the system.
Type: String; optional.
Content type for the email, supported types is HTML and Text. Default is Text.
Type: String; optional.
Autoreply message for disabled accounts. If set this text is set as autoreply message for disabled accounts. Html is supported.
$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.