Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: User #1

Open
4 tasks
lipkau opened this issue Jun 28, 2017 · 0 comments
Open
4 tasks

Feature: User #1

lipkau opened this issue Jun 28, 2017 · 0 comments

Comments

@lipkau
Copy link
Member

lipkau commented Jun 28, 2017

The following functionality should be supported by the module:

Create a new user

Parameter

  • -Name
    • Mandatory: yes
    • **Type: ** string
    • Min length: 1
    • Max length: 50
  • -Roles
    • Mandatory: no
    • **Type: ** Array
    • Investigate where to get allowed values from
  • -Title
    • Mandatory: no
    • **Type: ** string
  • -MentionName
    • Mandatory: no
    • **Type: ** string
  • -GroupAdmin
    • Mandatory: no
    • **Type: ** switch
    • maybe find a better name?
  • -Timezone
    • Mandatory: no
    • **Type: ** string
    • Investigate valid values
  • -Password
    • Mandatory: no
    • **Type: ** secure string
  • -Email
    • Mandatory: yes
    • **Type: ** string
    • Validate if email is ok
  • -$PassThru
    • Mandatory: no
    • Type: switch

Output

[HipChatPS.User]

if ($PassThru) {Get-HipChatUser -Id $resonse.id}

Get User

  • Get-HipChatUser

No Parameter

GET /v2/user

Parameter

GET /v2/user/{id_or_email}

  • -Id
    • Mandatory: yes, within ParameterSet
    • ValueFromPipelineByProperty: yes
    • type: Int
    • Validate $_ to by of type [HipChatPS.User]
  • -Email
    • Mandatory: yes, within ParameterSet
    • type: String[]

Output

[HipChatPS.User]

Update a user

Parameter

  • -Id
    • Mandatory: yes, within ParameterSet
    • ValueFromPipelineByProperty: yes
    • type: Int
    • Validate $_ to by of type [HipChatPS.User]
  • -Email
    • Mandatory: yes, within ParameterSet
    • type: String[]
  • [String]Name
  • [Array]Roles
  • [String]Title
  • [Hashtable]Presence @{status ; show}
  • [string]MentionName
  • [Switch]GroupAdmin
  • [String]Timezone
  • [SecureString]Password
  • [String]NewEmail

Output

[HipChatPS.User]

Delete a user

Parameter

  • -Id
    • Mandatory: yes, within ParameterSet
    • ValueFromPipelineByProperty: yes
    • type: Int
    • Validate $_ to by of type [HipChatPS.User]
  • -Email
    • Mandatory: yes, within ParameterSet
    • type: String[]

Output

Bool

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant