configure/add-owner

configure/add-owner

Add a user or a group as the owner of the delegated group

Request

 

 

Parameters

Adding Group

Parameter Name

Value

Description

Parameter Name

Value

Description

group

String

Name of the delegated group

groupKey

String

Name of the group who should own this delegated group

Adding User

Parameter Name

Value

Description

Parameter Name

Value

Description

group

String

Name of the delegated group

userKey/user

String

Name of the user who should be the owner of this delegated group

Sample request

Adding Group

curl -u admin:admin -X POST -d '{"group": "Administrators","groupKey":"jira-administrators"}' -H "Content-Type: application/json" -v http://your.server.url/rest/wittified/delegated-groups/1.0/configure/add-owner

Adding User

curl -u admin:admin -X POST -d '{"group": "Administrators","userKey":"ff80808160e8c8810160e8d6a1210000"}' -H "Content-Type: application/json" -v http://your.server.url/rest/wittified/delegated-groups/1.0/configure/add-owner

curl -u admin:admin -X POST -d '{"group": "Administrators","user":"admin"}' -H "Content-Type: application/json" -v http://your.server.url/rest/wittified/delegated-groups/1.0/configure/add-owner

Adding multiple groups as owners

curl -u admin:admin -X POST -d '{"group": "Administrators","groupKey":"jira-administrators,jira-users"}' -H "Content-Type: application/json" -v http://your.server.url/rest/wittified/delegated-groups/1.0/configure/add-owner

Adding multiple users as owners

curl -u admin:admin -X POST -d '{"group": "Administrators","userKey":"ff80808160e8c8810160e8d6a1210000,ff80808160f8c8810160f8d6b1210001"}' -H "Content-Type: application/json" -v http://your.server.url/rest/wittified/delegated-groups/1.0/configure/add-owner

curl -u admin:admin -X POST -d ‘{“group”: “Administrators”,“user”:“admin,user1"}’ -H “Content-Type: application/json” -v http://your.server.url/rest/wittified/delegated-groups/1.0/configure/add-owner

If you do not know the userKey, you can pass username using ‘user’ parameter instead of ‘userKey’.

 

Sample response

Adding one group or user as owner

{"userOwners":"user1","groupOwners":"jira-users","group":"creator"}

Adding multiple groups as owners

{"userOwners":"user1","groupOwners":"jira-administrators,jira-users","group":"Administrators"}

Adding multiple users as owners

{"userOwners":"admin,user1","groupOwners":"jira-administrators,jira-users","group":"Administrators"}

 

Need support? Create a request with our support team.

Copyright © 2005 - 2025 Appfire | All rights reserved.