cancel
Showing results for 
Search instead for 
Did you mean: 

Business Intelligence Platform - RESTful Web Service - Managing Additional User Attributes

Gatien
Discoverer
0 Kudos

Hello Every one,

I'm new to the SAP products and I'm currently working with Business Intelligence Platform - RESTful Web Service. My needs are to manage User and their groups through the API with the basic operations CRUD.

But I'm facing an issue concerning additional attributes on the User object. With the resources http://<baseURL>/v1/users or http://<baseURL>/v1/users/<user_id> this is not possible to retrieve these additional attributes. So I find a solution which is using the resource CMS Query and retrieve all user attributes.

I resolve my first issue, reading a User, but now I want to be able to create a User with these attributes filled and to update them. Did anyone know how to do that ? 

Thanks in advance,

Gatien. 

View Entire Topic
Joe_Peters
Active Contributor
0 Kudos

The docs for creating users via the REST API are here: Creating New User | SAP Help Portal, but I assume you've already seen it.

What additional properties are you trying to manage?  The REST API provides only a subset of the capabilities of the Java SDK; if what you're trying to do isn't possible with the REST API, you might need to use Java (or .NET).

Gatien
Discoverer
0 Kudos

Yes I already seen it.

The additional attributes have been defined directly from the CMC and can be found in the table SI_MAPPED_CUSTOM_ATTRIBUTES. They have been defined by administrators.

So as you said, I assume I need to use Java to do what I want. Could you give me some documentation on this? I suppose I can use the SAP library to connect to the CMC and create all the methods myself to retrieve data and perform any operations I want? Am I right ? 

Thank you in advance.

Gatien.

Joe_Peters
Active Contributor
0 Kudos
I don't see any reference to SI_MAPPED_CUSTOM_ATTRIBUTES anywhere, so I assume that's a custom property that you are creating. You can certainly do that, but you'll definitely need the Java or .NET SDK for that. Note that you can query for a custom property by name with the REST API via /cmsquery, but you can't create or modify one. There is a Developer's Guide for Java here: https://help.sap.com/doc/63b3f071627f4e72a89f1dd4059478a2/4.3/en-US/sbo43_bip_java_dg_en.pdf
Gatien
Discoverer
0 Kudos
It may be the wrong name because I don't currently have access to the environment. But anyway if it's not possible to create or modify these attributes I will use the Java SDk to do what I want. Thanks for your time and answers, it helps me a lot.