Create Custom UserRole with Powershell

Hey, I’m trying to create a custom UserRole with the PowerShell API.

I see that it exist in this repository

UserRoles : Octopus.Client.Repositories.UserRolesRepository
That there is an method called: UserRoles.Create()

But what arguments should i use to be able to create an new user role?

Is this reference i should use for finding the correct arguments and argument types i should use?
https://github.com/OctopusDeploy/OctopusClients/blob/master/source/Octopus.Client/Model/UserRoleResource.cs

Kind Regards
Marten

We solved it by creating a New-Object Octopus.Client.Model.UserRoleResource

So this support ticket can be closed.

Hi Marten,

Thanks for getting in touch and letting us know you’ve solved this question! Please don’t hesitate to reach out if you have any further questions or concerns moving forward. :slight_smile:

Best regards,

Kenny

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.