I have WS-FED for O-365 is configured , i want to add custom attributes(memberof) to the user and sync up with O-365

I have WS-FED for O-365 is configured , i want to add custom attributes(memberof) to the user and sync up with O-365. Please suggest the steps from UI or API call to use it ? Thanks in advance.

Did you enable provisioning? WS-Fed is only for the SSO part:

https://help.okta.com/en/prod/Content/Topics/Apps/Apps_Okta_Enhancements_Office_365_Integration.htm#UserProvisioning