New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhancement: extend spo list get
with --withPermissions
#2796
Comments
Thanks for the suggestion, @Adam-it. If I look at the sample you linked, there is an equivalent version based on the CLI. Are we still missing something or has the gap been filled already? |
@waldekmastykarz yes we are missing some information which I could not retrieve (this is the unique permissions and members info -what group and what permission). I already added and example as 80% of the list info is the same as PnP Powershell and it got approved, but this info is missing. |
Ah, understood. Have you checked how we currently handle that for webs, which also are securable objects? It would be good to build it in a consistent way across the different spo commands. |
not yet.. but I will do so in the coming weekend and let you know 👍 |
ok so I checked and for example in web in CLI we have an argument
we could do similar thing for the list command 🤔. So we could add and additional argument option also we could use this rest call to check the additional info if the permission inheritance is broken or not |
Thanks for the research @Adam-it. What if we extended the existing |
I am with the idea of adding the param If that is the case, do you think it make sense to update the specs @waldekmastykarz so that it would be clearer? |
Yes, good idea @arjunumenon 👍 |
spo list get
with --withPermissions
Hello @Adam-it - Thanks for all the suggestion and all findings which you have made. We have updated the specs based on the conversations. |
@arjunumenon wow that's cool 👍 thanks a lot for the help and fast changes 👍 you're awesome 🤩 |
Thanks for the kind words @Adam-it ❤. Totally understand your schedule and appreciate all the help in script-sample areas as well. You have already done a great job in identifying endpoints needed for enhancing the command. Based on your suggestion, We will keep the issue open to others so that they can contribute it. Appreciate your help 👍. |
@Abderahman88 this is way cool 😎. I think I am not in any position to make any kind of final decision here 😋 but yes I would suggest to include both (HasUniqueRoleAssignments and RoleAssignments) information in the json response 👍. |
Thanks @Abderahman88 for looking into that and volunteering. It is all yours. I would also second @Adam-it recommendation to add HasUniqueRoleAssignments,RoleAssignments as a staring point. |
+1 on the suggestion from @Abderahman88 and @Adam-it 👏 |
We need to extend the command
spo list get
with additional option--withPermissions
. When the option is passed, the result would include permission information along with other details.Specs are updated based on this conversation.
Additional Info
I came across this when I wanted to add a CLI equivalent of and existing PnP PowerShell script pnp/script-samples#110
I was able to retrieve all list information similar to PnP PowerShell except permission info 🤔. I wonder maybe I did something wrong 😅 or maybe there is no such functionality so we could ad one 🤔?
please let me know what do you think
The text was updated successfully, but these errors were encountered: