As we reach the end of September 2024, ThreadFix version 3.x on-premises has officially reached its End-of-Life. Therefore, there is no longer support or updates for this version of the product. We have fully transitioned our product and development teams to focus ThreadFix SaaS and migrating all customers over from the on-premises versions. Our Customer Success and Support teams are here to help you in migrating to ThreadFix SaaS and maximizing the value you see from this improved offering from Coalfire. This is the next phase of ThreadFix and our team is looking forward to continuing to support you on this journey.

Remove Application Role from User 3.0 - API

/rest/{version}/users/{userId}/role/app/delete

Descriptor

Value

HTTP Method

POST

Description

Removes the user permissions for the specified application.

This only removes explicit User/Application permissions, and does not affect any other permissions the user has from their global role, attached groups, and other team/app permissions.

To obtain the userId value in the endpoint, run the Get Users - API call first. The user's id value in the response is the userId value that you use in this endpoint.

Required Permission

Manage Users

Version Introduced

2.5.1.13

Request Header Parameters

Parameter

Value

Required

Description

Accept

String

Yes

A value of ‘application/json’ must be provided.

Request POST Data Parameters

Parameter

Value

Required

Description

appId

Integer

Yes

The ID of the application to remove permissions for.

Sample Call:

curl -H 'Accept: application/json' -H "Authorization: APIKEY {apiKey}" --data "appId=2" https://localhost:8443/threadfix/rest/latest/users/13/role/app/delete

Sample Output:

{ "message": "Successfully removed role mapping for user: Edea from app: Sample Application", "success": true, "responseCode": -1, "object": { "userId": 13, "appId": 2 } }

www.threadfix.it | www.coalfire.com
Copyright © 2024 Coalfire. All rights reserved.

This Information Security Policy is CoalFire - Public: Distribution of this material is not limited.