Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

New-ConnectSubscription

 

Applies to: Exchange Online

Topic Last Modified: 2013-09-23

This cmdlet is available only in the cloud-based service.

The New-ConnectSubscription cmdlet allows a user to create contact integration subscriptions between supported services (for example, Facebook or LinkedIn) and their own cloud-based mailbox. An administrator can't use this cmdlet to create subscriptions in another user's mailbox.

For information about the parameter sets in the Syntax section below, see Syntax.

New-ConnectSubscription -AppAuthorizationCode <String> -Facebook <SwitchParameter> -RedirectUri <String> <COMMON PARAMETERS>
New-ConnectSubscription -LinkedIn <SwitchParameter> -OAuthVerifier <String> -RequestSecret <String> -RequestToken <String> <COMMON PARAMETERS>
COMMON PARAMETERS: -Mailbox <MailboxIdParameter> [-Confirm [<SwitchParameter>]] [-DomainController <Fqdn>] [-WhatIf [<SwitchParameter>]]

This example modifies a people connection to LinkedIn.

New-ConnectSubscription -LinkedIn $true -OAuthVerifier <OAuthVerifyer value> -RequestSecret <Request Secret value> -RequestToken <Request Token value>

When you set up a contact subscription, contacts from the external networking service are integrated into your cloud-based mailbox.

You need to be assigned permissions before you can run this cmdlet. Although all parameters for this cmdlet are listed in this topic, you may not have access to some parameters if they're not included in the permissions assigned to you. To see what permissions you need, see the "Subscriptions" entry in the Feature Permissions in Exchange Online topic.

 

Parameter Required Type Description

AppAuthorizationCode

Required

System.String

The AppAuthorizationCode parameter specifies the code that is exchanged with Facebook in exchange for an access token.

This parameter is reserved for internal Microsoft use.

Facebook

Required

System.Management.Automation.SwitchParameter

The Facebook parameter specifies whether you want to edit a Facebook connection.

This parameter is reserved for internal Microsoft use.

LinkedIn

Required

System.Management.Automation.SwitchParameter

The LinkedIn parameter specifies whether you want to edit a LinkedIn subscription.

Mailbox

Required

Microsoft.Exchange.Configuration.Tasks.MailboxIdParameter

The Mailbox parameter specifies the cloud-based mailbox that will contain the subscription. You can use any value that uniquely identifies the mailbox.

For example:

  • Alias

  • Distinguished name (DN)

  • GUID

  • Name

  • Display name

  • LegacyExchangeDN

  • Email address

OAuthVerifier

Required

System.String

The OAuthVerifier parameter specifies the verification code associated with the request token. You must provide a value for the OAuthVerifier parameter and the RequestToken parameter values in exchange for an access token.

RedirectUri

Required

System.String

The RedirectUri parameter specifies the host name used to connect to the Exchange server from outside the firewall.

RequestSecret

Required

System.String

The RequestSecret parameter specifies the secret associated with the access token.

RequestToken

Required

System.String

The RequestToken parameter specifies the access token that provides access to protected resources accessible through LinkedIn. You must provide a value for the OAuthVerifier parameter and the RequestToken parameter values in exchange for an access token.

Confirm

Optional

System.Management.Automation.SwitchParameter

The Confirm switch causes the command to pause processing and requires you to acknowledge what the command will do before processing continues. You don't have to specify a value with the Confirm switch.

DomainController

Optional

Microsoft.Exchange.Data.Fqdn

This parameter is reserved for internal Microsoft use.

WhatIf

Optional

System.Management.Automation.SwitchParameter

The WhatIf switch instructs the command to simulate the actions that it would take on the object. By using the WhatIf switch, you can view what changes would occur without having to apply any of those changes. You don't have to specify a value with the WhatIf switch.

To see the input types that this cmdlet accepts, see Cmdlet Input and Output Types. If the Input Type field for a cmdlet is blank, the cmdlet doesn’t accept input data.

To see the return types, which are also known as output types, that this cmdlet accepts, see Cmdlet Input and Output Types. If the Output Type field is blank, the cmdlet doesn’t return data.

 
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.