# New-OfficeConfluenceSession

Creates an in-memory Confluence Cloud session. Review available syntax, parameters, pipeline guidance, and reference details in PSWriteOffice API Reference.

Project

PSWriteOffice

PowerShell document automation across OfficeIMO's document, spreadsheet, presentation, PDF, Project, Access, EPUB, invoicing, and conversion engines.

[View on GitHub](https://github.com/EvotecIT/OfficeIMO/tree/master/PowerShell/PSWriteOffice) [Visit Website](#) [Releases](https://github.com/EvotecIT/PSWriteOffice/releases/tag/v3.0.5) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/PSWriteOffice/0.2.0)

Stars **727**

Forks **84**

Open issues **7**

Total downloads **5,275,783**

Release **OfficeIMO-v3.6.2**

Language: C# Updated: 2026-11-24

Cmdlet 

**Module**

`PSWriteOffice`

**Inputs**

`None`

**Outputs**

`OfficeIMO.Confluence.ConfluenceSession`

**Source**

[NewOfficeConfluenceSessionCommand.cs:18](https://github.com/EvotecIT/PSWriteOffice/blob/main/Sources/PSWriteOffice/Cmdlets/Confluence/NewOfficeConfluenceSessionCommand.cs#L18) 

Creates an in-memory Confluence Cloud session.

## Syntax

```
New-OfficeConfluenceSession
[-ApplicationName <String>]
-Credential <PSCredential>
[-MaxRetryCount <Int32>]
[-RequestTimeoutSeconds <Int32>]
[-SiteUri] <Uri>
[<CommonParameters>]
```

[#](#method-new-officeconfluencesession-string-pscredential-int32-int32-uri)

Parameter set: `Basic`

```
New-OfficeConfluenceSession
-AccessToken <SecureString>
[-ApplicationName <String>]
-CloudId <String>
[-MaxRetryCount <Int32>]
[-RequestTimeoutSeconds <Int32>]
[-SiteUri] <Uri>
[<CommonParameters>]
```

[#](#method-new-officeconfluencesession-securestring-string-string-int32-int32-uri)

Parameter set: `Bearer`

## Examples

### Create a session using an Atlassian email and API token.

```powershell
$session = New-OfficeConfluenceSession -SiteUri 'https://example.atlassian.net/' -Credential (Get-Credential)
```

Use the Atlassian email as the user name and the API token as the password.

## Parameters

**-ApplicationName String optional**

Application name sent with requests.

**-Credential PSCredential requiredsets: Basic**

Atlassian email and API token credential.

**-MaxRetryCount Int32 optional**

Maximum retry count for safe read requests. Writes are never retried automatically.

**-RequestTimeoutSeconds Int32 optional**

Per-request timeout in seconds.

**-SiteUri Uri requiredposition: 0**

HTTPS root URI of the Confluence Cloud site.

**-AccessToken SecureString requiredsets: Bearer**

OAuth access token stored as a secure string.

**-CloudId String requiredsets: Bearer**

Atlassian Cloud identifier required for OAuth bearer-token routing.

## Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see [about_CommonParameters](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

Evotec API Reference Copyright 2026 Evotec Services

<!-- PowerForge markdown artifact sha256:D611A1A33FC0F9F815F064A545DB6D10A0D7E37C1A14C73EC45A7A4F7E83441A -->
