alexisp Posted March 20, 2023 Report Share Posted March 20, 2023 Hi, I'm trying to push users and user assignments from our internal system to ftrack. I'm probably missing something. Based on how it works for assigning users on tasks I'm tempted to do something like this, but obviously this is not it 😅  session.create('Membership', { 'context': ftrack_project, 'resource': ftrack_user, 'type': 'membership' })  Any pointers ? Cheers, Alexis Link to comment Share on other sites More sharing options...
alexisp Posted March 21, 2023 Author Report Share Posted March 21, 2023 Okay so, I managed to create an "Appointment" object of type "allocation" session.create('Appointment', { 'context': ftrack_proj, 'resource': ftrack_user, 'type': 'allocation' }) But it does not show up in when I try to list the user of the project 🤔 for allocation in ftrack_proj['allocations']: resource = allocation['resource'] if isinstance(resource, session.types['User']): print(resource['username']) And when I switch the project to private, the "allocations" attributes becomes None 🤨 I got to say the data model is a bit confusing here 😅 Any tips ? 🙃 Link to comment Share on other sites More sharing options...
Lorenzo Angeli Posted April 5, 2023 Report Share Posted April 5, 2023 Hi @alexisp could you please create an api user with explicit access to the private project and use that api key to create the session ? you can find more information in our help page: https://help.ftrack.com/en/articles/3004264-private-projects hope it helps. L. alexisp 1 Link to comment Share on other sites More sharing options...
alexisp Posted April 5, 2023 Author Report Share Posted April 5, 2023 Ah yes, I see ! It took a bit of playing around to manage that (as you cant grant access to a project that is not private yet). I will retry and let you know, but this means the "team" behavior is completely different between "open" and "private" mode ?  Also I don't really get the difference between "project access" and "organize team". I dont get why do I have people in the team that dont appear in the access list 🤔        Thx, Alexis Link to comment Share on other sites More sharing options...
Daniel Fleming Posted April 6, 2023 Report Share Posted April 6, 2023 Hi Alexis, The 'organize team' tab serves a couple of functions. it allows you to create project-specific groups. it is also the list of people who can be assigned tasks on that project. when left blank ALL users in the system show up in the drop-down list. Only those users who are added to the 'organize team' tab can be assigned to tasks from the drop-down. the 'project access' tab is as it sounds. It controls who has access to the project. sometimes you may have users who you want access to the project but you do not want them assigned to any work. It is also worth noting that project access differs depending on how your roles are set up. I want to be clear here that "PRIVATE PROJECTS" are a feature designed to be closer to "Air gapped" within your ftrack workspace. ONLY users who are EXPLICITLY added to a private project can access that project including administrators and API users. If you want to have some users with overall visibility on all projects then we recommend using open projects and controlling access to those projects through the Roles and project access. I hope that helps clear it up a little. Please let us know if you have any other questions. regards, Daniel Mohammadreza Hashemizadeh and alexisp 1 1 Link to comment Share on other sites More sharing options...
alexisp Posted April 11, 2023 Author Report Share Posted April 11, 2023 That is a most helpful clarification, it all makes sense. Thanks a lot ! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now