Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Creating a User with only Site Access (no product access) through a Custom Plugin/the API

Virginia Elliff July 10, 2019

We have a custom plugin  we've made that, among other things, allows our support division to add new "customers" with additional data (phones numbers, etc.). Recently we have been trying to switch these portal users (customers) to have Atlassian accounts. 

 

Is there a way for me to create a new user that only has Site Access, no product access (so that it doesn't use a license)? Thus far when I create a customer through our plugin using the REST API, it is creating them as user and automatically adding them to the default access group for Jira Software. I've made a separate group that they can be added to that only has Site Access, but I am unsure how to get them into this group from creation in code.

Thank you for any help,

Virginia 

1 answer

1 accepted

0 votes
Answer accepted
Thomas Deiler
Community Champion
July 17, 2019

Dear @Virginia Elliff ,

to be honest, I think this is default behavior of the REST. Just fire two requests short after creating news users:

DELETE /rest/api/2/group/user?username=newuser&grouname=jira-software-users

POST /rest/api/2/group/user?groupname=newgroup  {"name": "newuser"}

so long

Thomas

Virginia Elliff July 18, 2019

Thanks for the response, @Thomas Deiler

 

We were hoping to not have to do it that way as it would require us to keep a license open just to be able to create these users. That creation would fail if no more licenses were available. 

So I was keeping my fingers crossed that someone had found a way to specify group at creation. 

 

Thank you again for your response, 

Virginia

Thomas Deiler
Community Champion
July 18, 2019

Dear @Virginia Elliff ,

this seems to be a know problem: JRACLOUD-65579 You simply cannot (yet) do what you want.

So long

Thomas

Virginia Elliff July 18, 2019

Thank you, @Thomas Deiler

 

I seem to have missed that ticket in my searching. 

 

You've been a great help.

Virginia

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events