Hi, I tried to find a way to change the ownership of an item in FME Server using REST API. There seems to be no possibility?
Solved
FME REST: How to change ownership
Best answer by nielsgerrits
When I test in the GUI (Security, Items, Repositories, check Repository, hit Change Owner, select other user, OK) it does a PUT on https://fmeservername.com/fmerest/v3/security/categories/Repositories/resources/repositoryname
The body is
{
"owner": "newowner",
"clientID": "repositoryname",
"displayName": "repositoryname",
"rolePermissions": [{
"permissions": ["REPOSITORY_DOWNLOAD", "REPOSITORY_READ", "REPOSITORY_WRITE", "REPOSITORY_EXECUTE", "REPOSITORY_DELETE"],
"name": "user:oldowner"
}],
"roles": ["user:user:oldowner"],
"name": "repositoryname",
"category": "Repositories"
}
So I think you need:
PUT /security/categories/< category >/resources/< resource > Replace resource metadata
Reply
Rich Text Editor, editor1
Editor toolbars
Press ALT 0 for help
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.