简体   繁体   中英

is it possible to query project access for users via REST-API in VersionOne

I tried the following:

http://<instance_details>/rest-1.v1/Data/Scope?sel=Name,Members.Name,Owner.Name,Workers.Name,Viewers.Name

this categorises the users in three groups, members, owner and Viewers, however this doesn't gives the role name of each member against the project.

is it possible to query "Member Roles" for any project in VersionOne via REST-API ?

thanks

The VersionOne API does not expose methods to manage individual project roles. The only information in reference to roles that you can get for each Member is the default role. Members.DefaultRole.Name.

There is a ProjectRoles endpoint that can provide you role information.

For example,

http://<instance_details>/API/ProjectRoles/ByProject?where='Scope%3A12345'

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM