Add users in groups in AD on premises from SPFX solution

Viewed 225

I am trying to add users to AD Groups; unfortunately MS Graph doesn't work correctly because of the hybrid environment (Azure AD synced with AD on prem). Is there any way to add people to on prem groups in a SPFX React solution ? I get this error in MS Graph:

"{
"error": {
"code": "Request_BadRequest",
"message": "Unable to update the specified properties for on-premises mastered Directory Sync objects or objects currently undergoing migration. 
.......}"

Also, how fast the sync will work ? The solution will be deployed on SharePoint Online.

1 Answers
Related