Test-GitHubBlockedUser¶
SYNOPSIS¶
Check if a user is blocked by the authenticated user or an organization.
SYNTAX¶
__AllParameterSets¶
Test-GitHubBlockedUser [-Username] <string> [[-Organization] <string>] [[-PerPage] <int>]
[[-Context] <Object>] [<CommonParameters>]
ALIASES¶
This cmdlet has the following aliases, {{Insert list of aliases}}
DESCRIPTION¶
Returns a 204 if the given user is blocked by the authenticated user or organization. Returns a 404 if the given user is not blocked, or if the given user account has been identified as spam by GitHub.
EXAMPLES¶
EXAMPLE 1¶
Test-GitHubBlockedUser -Username 'octocat'
Checks if the user octocat is blocked by the authenticated user.
Returns true if the user is blocked, false if not.
EXAMPLE 2¶
Test-GitHubBlockedUser -Organization 'github' -Username 'octocat'
Checks if the user octocat is blocked by the organization github.
Returns true if the user is blocked, false if not.
PARAMETERS¶
-Context¶
The context to run the command in. Used to get the details for the API call. Can be either a string or a GitHubContext object.
Type: System.Object
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 3
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Organization¶
The organization name. The name is not case sensitive.
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 1
IsRequired: false
ValueFromPipeline: true
ValueFromPipelineByPropertyName: true
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-PerPage¶
The number of results per page (max 100).
Type: System.Nullable`1[System.Int32]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 2
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Username¶
The handle for the GitHub user account.
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases:
- login
ParameterSets:
- Name: (All)
Position: 0
IsRequired: true
ValueFromPipeline: true
ValueFromPipelineByPropertyName: true
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¶
System.String¶
{{ Fill in the Description }}
OUTPUTS¶
System.Boolean¶
{{ Fill in the Description }}
NOTES¶
Check if a user is blocked by the authenticated user Check if a user is blocked by an organization