Rally Software

  • 1.  Changing project permission for a user thru the rally api

    Posted Jun 19, 2017 05:06 PM

    Hello,

    I want to change the permission for a user from "Editor" to "Viewer" for multiple projects. I have been able to get the user in different projects thru the api but need the delete and the create script  or the update script for permission changes.

    Has anyone approached this issue ?



  • 2.  Re: Changing project permission for a user thru the rally api

    Posted Jun 19, 2017 07:15 PM

    Hi RituAnand,

     

    The basic steps to update a user's permission from Editor to Viewer would be as follows:

    1. Find the reference to the projectPermission in question.

    2. Remove the existing Editor projectPermission.

    3. Create a new projectPermission with Viewer as the Role.

     

    Here are a few Knowledge Articles that should help with each step:

    How to remove user's access to a project using Web Services API 

    How to create ProjectPermission and add TeamMemberships with Web Services API 

    Is it possible to query user's project permissions by workspace where the project exists? 

     

    Let me know if that helps.

     

    Sean Davis



  • 3.  Re: Changing project permission for a user thru the rally api

    Posted Jun 20, 2017 01:24 AM

    You might also find these existing scripts useful:

     

    GitHub - RallyTools/Rally-User-Management 

     

    They aren't officially supported by CA but I have found them to be immensely useful over the years.