Get-NotionUser

SYNOPSIS

Retrieves all users or a user with the ID specified.

SYNTAX

Get-NotionUser [-Token] <String> [[-UserId] <String>] [[-PageSize] <String>] [[-StartCursor] <String>]
 [<CommonParameters>]

DESCRIPTION

The Get-NotionUser cmdlet retrieves all users. If an ID is specified it will return that user. The command returns an object of the found users.

EXAMPLES

Example 1

PS C:\> Get-NotionUser -Token "yoursupersecrettokenvalue"

This command gets all users.

Example 2

PS C:\> Get-NotionUser -Token "yoursupersecrettokenvalue" -UserId "9bd15f8d-8082-429b-82db-e6c4ea88413b"

This command gets the user that has an ID of 9bd15f8d-8082-429b-82db-e6c4ea88413b.

PARAMETERS

-PageSize

Specifies an string containing the page size you want returned from the API. The maximum page size allowed currently is 100.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-StartCursor

Specifies a string containing the start cursor of the next page you want to retrieve.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Token

Specifies a string containing the integration token value.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-UserId

Specifies a string containing the ID of the user.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

None

OUTPUTS

System.Object

NOTES