Forum Discussion
jamesbaxterARUK
Jan 25, 2019Brass Contributor
Permission for users to create plans but not groups
Hi there, I am in the process of setting up microsoft teams for my department. I am very impressed with the tools on offer so far but I have hit a hurdle. I have been looking through the Microsof...
- Jan 30, 2019
I think I have worked it out!
According to the Microsoft graph API:
- Groups and teams share an ID so have 1:1 correspondence
- Groups and plans don't share an ID. The group object owns a PlannerGroup object which contains a list of plans owned by the group. https://docs.microsoft.com/en-us/graph/api/resources/plannergroup?view=graph-rest-1.0 . This means that they have a many:1 correspondence
- Standalone plans quietly create a group and give it ownership of a single plan. That group could potentially still own more plans in the future.
By creating a plan through Microsoft Teams, you can create a plan without needing permission to create a group just as the API would suggest. I am not sure if this is due to a recent update or not but it is now working for me.
You need to create a new tab in a channel within a team and select planner, then create a new plan. This will automatically give ownership of the plan to the group associated with your team (with the same id as your team).
I'm guessing this bypasses a stage where you would need group permissions or something. I have checked and I still don't have permission to create groups so that is a good sign. Either way, I'm glad it works.
James
jamesbaxterARUK
Dec 12, 2019Brass Contributor
In teams, click the + to add a tab to a channel associated with the group you want to make a plan for:
Click planner
Create new plan
This allows you to create multiple plans per channel. Since there is only ever one group for a given channel this allows you multiple plans per group. If this doesn't work for you perhaps your organisation hasn't given you these permissions, though that seems unlikely.
In terms of the microsoft graph api objects found here, groups can definitely have multiple plans associated with them. It is not a 1:1 relationship.
Good luck!
DStefan
Dec 12, 2019Copper Contributor
I played with that functionality in Teams, but as far as I was able to tell, there wasn't a way to copy plans without making mirror plans that didn't function independently.
For example, I created one plan that way, which I had hoped to use as a template and copy across the various channels. I added a Planner tab and then chose "Use existing plan within team". I was able to rename the plan. All of the tasks were there. I replicated this same process across 3 different channels. Unfortunately, when I checked the task complete on the plan in one channel, it checked the same task complete in every instance. Even though they had different names on the various channels, it was treating them all as the same plan.
- jamesbaxterARUKDec 12, 2019Brass Contributor
DStefanOh! I see what you mean now. That is a pain. If you are authorised to use the API, you could use a get request:
See tasks in a plan GET https://graph.microsoft.com/v1.0/planner/plans/{id}/tasks to get the tasks in json format, then I'd imagine there's some way to post them into a new plan.
Hope that helps a bit. Good luck