I have assigned users to an issue, but when I do they are added with manage permissions. I would prefer to update the sharing on the issue, and simply share the issue with contribute access. Does anyone know if that is possible through the API?
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
So I tried using API version 11 and it still didn't work, but Customer Support (Thanks Russel!!) had a second solution which did work on our instance of Workfront.
The accessorID, accessorObjCode, and coreAction fields are in the accessRules collection, and can be updated on the object instead of the share endpoint.
URL = OPTASK/<issue ID>?fields=accessRules
Method = PUT
Body = {"accessRules":[{"accessorID":"<ID>","accessorObjCode":"USER","coreAction":"VIEW"}]}
Possible values for coreAction turned out to be "VIEW", "LIMITED_EDIT", and "EDIT" instead of view, contribute, and manage.
Again, thanks for your help!
Regards,
Kato
Until you get the Fusion answer, you could edit the project access defaults as shown below. The edit can be made in bulk. Apologies if you already know that. :) ~Jeff
Views
Replies
Total Likes
Thanks Jeff! We do have our templates set up for project access defaults to give manage access to the task when someone is assigned. For our business process we need to assign some people with manage and others with contribute access.
Views
Replies
Total Likes
Hi Kato,
Yes, you can use Fusion to trigger updates to an object's security settings. The two screenshots below show a sample from our environment that trigger the automatic update of the Sharing settings on the Portfolio object to grant Manage to a particular Group.
The query string below contains:
All of that being said, if you want 'Contribute' to simply be the default access-type given to assignees for ALL issues or issues in one particular queue etc, then Jeff's solution is more elegant than relying on Fusion.
If you can elaborate on the use-case, we can maybe give better guidance.
Katherine
Hi Katherine, thanks for your help!
When I try to run the custom API call to PORT/share or OPTASK/share and provide the key:value pairs following your example, I get an error 'accessorObjCode cannot be null'. I tried this with a group and a user, and received the same error message in both cases.
I'm using the default version of the API. Is it possible you are using an earlier version?
Views
Replies
Total Likes
I haven't explicitly selected an API version, though if I check Advanced Settings to see that info, it seems to indicate it's using API 11? Give that a try and see if it works for you.
If not, can you show screenshots of your setup?
Views
Replies
Total Likes
So I tried using API version 11 and it still didn't work, but Customer Support (Thanks Russel!!) had a second solution which did work on our instance of Workfront.
The accessorID, accessorObjCode, and coreAction fields are in the accessRules collection, and can be updated on the object instead of the share endpoint.
URL = OPTASK/<issue ID>?fields=accessRules
Method = PUT
Body = {"accessRules":[{"accessorID":"<ID>","accessorObjCode":"USER","coreAction":"VIEW"}]}
Possible values for coreAction turned out to be "VIEW", "LIMITED_EDIT", and "EDIT" instead of view, contribute, and manage.
Again, thanks for your help!
Regards,
Kato
Did you ever get this working?
Do you know if this can this be used on a specific document folder path within a specific project?
I am looking to strip all the permissions on a specific folder and then add a few specific teams/groups back in.
Views
Replies
Total Likes
This one works for me, task sharing example.
Views
Likes
Replies
Views
Likes
Replies