Identity federation

We have identity repository which defined as restful service. It is possible to configure identity federation to get users/groups, user’s group and group membership from the cloud using restful connector ?

I believe you will need a custom Identity Provider implementation. Please see this manual entry.