How to trigger the switch “Has access on site” via API in Administration > Users > User details in Access section?
We want to disable certain users access but still want to keep the user disabled in the system for next 90days(as per our policy) and in order to reassign users issues,filters… before we delete the user.
I referred to JIRA Cloud Developer REST API documentation.
I tried:
$url = “JIRA_url/user?accountId=yyy”
$body = @{
active = “False”
}
Invoke-RestMethod -Method PUT -Uri $url -Body $body
I simplified the code above to make it easier. I got the error:
Invoke-RestMethod : The remote server returned an error: (405) Method Not Allowed
Hi, removing a user's site access is the same thing as removing the default application group that's providing the site access. So what you should do is to remove the group that has the application access, that will remove the site access from the user.
Recommended Learning For You
Level up your skills with Atlassian learning
Learning Path
Jira Administrator
Configure Jira Software, Jira Core, or Jira Service Management, including global settings, permissions, and schemes.
Managing Jira Projects Cloud
Learn to create and configure company-managed projects in Jira Software and partner effectively with Jira Admins.
Learning Path
Become an effective Jira Software Project Admin
This learning path is designed for team leaders who configure Jira Software projects to match a team's processes.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.