-
Notifications
You must be signed in to change notification settings - Fork 49
Description
Context
I am Trying to create a new user in snipe-it via New-SnipeITUSer
Your Environment
- SnipitPS Module version used: 1.10.227
- Operating System and PowerShell version: Windows 10, PS 5
- Snipe It version: v6.0.10 build 8673 (gc6cbf3712)
Expected Behavior
New-snipeituser should create a new user when the mandatory fields are filled out (First name, Last Name & UserName)
Current Behavior
When running new-snipeituser without attributes, it prompts for FN, LN and UN. After completing those fields the following error happens.
When running new-snipeituser with attributes -first_name "test" -last_name "tester" -username "ttester" the same error happens
IsMutuallyAuthenticated : False
Cookies : {worldsurfleague_snipeitv6_session=gdOZUqYgXJWUGeruiuXyG5tdA1NG
RiyGRRXwL4fu}
Headers : {Transfer-Encoding, Connection, X-RateLimit-Limit,
X-RateLimit-Remaining...}
SupportsHeaders : True
ContentLength : -1
ContentEncoding :
ContentType : application/json
CharacterSet :
Server : nginx
LastModified : 9/29/2022 9:46:16 AM
StatusCode : 422
StatusDescription : Unprocessable Content
ProtocolVersion : 1.1
ResponseUri : https://worldsurfleague.snipe-it.io/api/v1/users
Method : POST
IsFromCache : False
Possible Solution
Steps to Reproduce (for bugs)
- new-snipeituser -first_name "test" -last_name "tester" -username "ttester"