Skip to content

Break And Change List Item Permission Using PnP JS In SPFx #2076

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

Closed
utterances-bot opened this issue Apr 10, 2025 · 1 comment
Closed

Break And Change List Item Permission Using PnP JS In SPFx #2076

utterances-bot opened this issue Apr 10, 2025 · 1 comment

Comments

@utterances-bot
Copy link

Break And Change List Item Permission Using PnP JS In SPFx

Introduction In SPFx many times we have a requirement like break permissions for the list, list items and etc for the particular users.

https://pnp.github.io/blog/post/break-and-change-list-item-permission-using-pnp-js-in-spfx/

Copy link

Hi Chandani.
I know I am not in the right place. But I could not find the correct and accurate information. Please forgive my rudeness.

My company uses SharePoint 2016 on its local intranet. A while ago, when I was looking into it in my spare time, I noticed the SharePoint Rest APIs. Then, with my amateur work, I wrote a core API similar to pnpjs but much simpler. With this API, I could manipulate (CRUD) the sharepoint lists in my own area, albeit amateurishly. I was storing these html+css+js files in a subsite I created in my own sharepoint area. Since I could not transfer all these files I needed to the system from outside and I could not install an IDE on the system, I was creating these files myself with notepad. You know what I am talking about, it is very boring and stupid. In fact, when I was writing my own core sharepoint API, I had no other alternative than the Firefox developer console for debugging. However, all my efforts eventually gave me a nice app and my work became much easier. However, now the Firefox developer console has been closed by my system administrator from group policy.

Now I need to update this application and write a new application. I no longer have a debugging environment. Moreover, as a result of my research, I learned about pnpjs and spfx. I also learned that custom scripts are blocked in new versions of sharepoint and its online version and that I need to do things with .sppkg.

My company is still using sp2016 and the application I wrote before works. I can still use custom scripts. However, I do not have a test environment. My plan is to write my application outside the company network, test it and transfer it to the company network when it is completed. This is a bit of a tedious process, our system administrator is very capricious. How do you think I can create the most suitable and simple test environment? I do not want to set up a VM myself, configuration and maintenance are very tiring, and spending my system resources on a VM is ridiculous. I bought SharePoint Online for $5 per month but after a long struggle I realized that it does not support custom scripts. Azure VMs are very expensive. Please tell me there is a much easier way.

I hope you have a nice day.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants