Frequently used REST APIs – Part 1

Hi All,

Greetings for the day!!!

While doing SharePoint / Power Platform / Teams development we most of the time need to use REST APIs and then need to google. This is the reason – birth of this article. Thought to keep all REST APIs together so that whenever need can find quickly.

I will keep updating this article. As I am using respective REST APIs I’ll keep adding those.

If you have some known frequently used REST APIs, please add in comment section, I’ll include those in article

Get web details

  • Method : Get
/_api/web/

To get all lists

  • Method : GET
/_api/web/lists/

To get all list items of particular list

  • Method : GET
_api/web/lists/getbytitle('<LIST NAME>')/Items

To get list items / documents count

  • Method : GET
_api/web/lists/getbytitle('<List name / document library name>')/ItemCount

To get the members of specific group

  • Method : GET
_api/Web/SiteGroups/getbyid(GROUPID)/Users

Example : https://knowledgejunction1.sharepoint.com/_api/Web/SiteGroups/getbyid(3)/Users

Get all roles

  • Method : GET
_api/web/roleDefinitions/

To Get role id / Get the permission level ID

  • Method : GET
_api/web/roleDefinitions/getByName('<ROLE NAME>') 
  • Possible OOB role names are
    • Full Control
    • Design
    • Edit
    • Contribute
    • Read
    • Restricted View
    • Limited Access
    • Web-Only Limited Access
    • System.LimitedView
    • System.LimitedEdit

Get all site groups

  • Method : GET
_api/web/siteGroups/

Get the SharePoint group ID or specific group details from group name

  • Method : GET
_api/web/siteGroups/getByName('<GROUP NAME>')

Thanks for reading 🙂 If its worth at least reading once, kindly please like and share !!! SHARING IS CARING 🙂

Enjoy the beautiful life !!! Have a FUN !!! HAVE A SAFE LIFE !!! TAKE CARE 🙂

Prasham Sabadra

LIFE IS VERY BEAUTIFUL. ENJOY THE WHOLE JOURNEY :) Founder of Microsoft 365 Junction, Speaker, Author, Learner, Developer, Passionate Techie. Certified Professional Workshop Facilitator / Public Speaker. Believe in knowledge sharing. Around 20+ years of total IT experience and 17+ years of experience in SharePoint and Microsoft 365 services Please feel free me to contact for any SharePoint / Microsoft 365 queries. I am also very much interested in behavioral (life changing) sessions like motivational speeches, Success, Goal Setting, About Life, How to live Life etc. My book - Microsoft 365 Power Shell hand book for Administrators and Beginners and 100 Power Shell Interview Questions - https://www.amazon.in/Microsoft-Administrators-Beginners-Interview-Questions/dp/9394901639/ref=tmm_pap_swatch_0?_encoding=UTF8&qid=1679029081&sr=8-11

You may also like...

4 Responses

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.