Skip to content
This repository has been archived by the owner on Aug 22, 2022. It is now read-only.

members to projects/groups #115

Open
ddobert opened this issue Jul 20, 2017 · 2 comments
Open

members to projects/groups #115

ddobert opened this issue Jul 20, 2017 · 2 comments
Assignees

Comments

@ddobert
Copy link

ddobert commented Jul 20, 2017

I'd like to propose the implementation of getting/setting members of groups and projects via PSGitLab.

API: https://docs.gitlab.com/ce/api/members.html

I might be able to write a cmdlet for your consideration. Let me know how I can help.

@ngetchell
Copy link
Owner

Love the idea.

I may start with the group creation then move on to group memberships. Would a function like this work for you?

Add-GitLabGroupMember -Group <GroupName> -Username <firstuser>,<seconduser> -AccessLevel Reporter

@ddobert
Copy link
Author

ddobert commented Jul 23, 2017

looks good, thanks!

I personally don't need the -ExpirationDate optional argument which is possible in the API - if it's a hassle don't implement it but it might be worth a shot while you're at it...

In addition to your proposal I'd need
Add-GitLabProjectMember -Project <ProjectName> -Username <firstuser>,<seconduser> -AccessLevel Developer

Listing/getting/deleting users would also be nice but at this stage I only need Add-GitLabGroupMember and Add-GitLabProjectMember :) Thank you!

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

No branches or pull requests

2 participants