By: Mohamad Taheri user 15 Jul 2016 at 12:29 a.m. CDT

1 Response
Mohamad Taheri gravatar
Is it possible to register Users and set their groups programmatically?

By Valentino Pecaoco user 15 Jul 2016 at 1:13 a.m. CDT

Valentino Pecaoco gravatar
Hi Mohamad, You can use SCIM [https://tools.ietf.org/html/rfc7643](https://tools.ietf.org/html/rfc7643) [https://tools.ietf.org/html/rfc7644](https://tools.ietf.org/html/rfc7644) [SCIM-Client](https://github.com/GluuFederation/SCIM-Client/tree/version_2.4.3) is Gluu's Java library intended to be used by client applications. [Here](https://gluu.org/docs/integrate/scimuma-howto/) is the documentation for accessing SCIM with UMA authrorization. However, please note that you need to substitute the `scim-rp.jks` part for `scim-rp-openid-keys.json` for CE v2.4.3 (`scim-rp.jks` is for CE v2.4.4). SCIM-Client uses a pre-created/pre-registered Requesting Party (RP) profile (`scim-rp-openid-keys.json` + `scim_rp_client_id`) in accessing the SCIM endpoints protected by UMA. You can also check the unit tests: [SCIM 2.0 unit tests](https://github.com/GluuFederation/SCIM-Client/blob/version_2.4.3/src/test/java/gluu/scim2/client) [config-scim-test.properties](https://github.com/GluuFederation/SCIM-Client/blob/version_2.4.3/profiles/default/config-scim-test.properties) Regards, Val