Skip to content

Get-ConfluenceCurrentUser

SYNOPSIS

Get the current (authenticated) user — Confluence's "me" endpoint (read:content-details).

SYNTAX

__AllParameterSets

Get-ConfluenceCurrentUser [[-Context] <Object>]

ALIASES

This cmdlet has the following aliases, {{Insert list of aliases}}

DESCRIPTION

Returns the account behind the connected token via the Confluence current-user endpoint (v1 /wiki/rest/api/user/current), which requires read:content-details. The read:user scope only covers the anonymous-user and group-membership endpoints, so a token without read:content-details is rejected with a scope-check 401.

EXAMPLES

EXAMPLE 1

Get-ConfluenceCurrentUser

Returns the account behind the connected token.

PARAMETERS

-Context

The context to use: an object, a context name, or $null for the default.

Type: System.Object
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: 0
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

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

OUTPUTS

NOTES