I create a webpart with SPFX and it is deployed in a team site. I need get the team site groupId property.

1 Answer 1


I finally got the groupId with the following code:

sp.web.select("AllProperties").expand("AllProperties").get().then(w => {

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.