IDM kullanıcılarla ilgili bir takım verileri de beraberinde saklamaktadır. Ancak bu veriler sizin uygulamanız için yeterli olmayabilir, bu durumda IDM’de üretilen her bir kullanıcı için ekstra JSON veri tipinde veri saklamanıza olanak sağlamaktadır. Bu verileri aşağıdaki api ucu vasıtası ile kaydedebilir ve sorgulayabilirsiniz.
Örnek
curl --location --request POST 'http://<idmapiadresi>/api/users/<userId>/data/appid=<appId>' \ --header 'client_id: <clientId>' \ --header 'client_secret: <clientSecret>' \ --header 'Content-Type: application/json-patch+json' \ --data-raw '{ "ExtraData": " {\\\"UserTypeId\\\":\\\"2\\\",\\\"Code\\\":\\\"TestCode\\\",\\\"DefaultCustomerId\\\":\\\"15\\\"} " }' |
Örnek
curl --location --request GET 'http://<idmapiadresi>/api/users/<userid>/data/appid=<appId>' \ --header 'client_secret: <client_id>' \ --header 'client_id: <client_secret>' |