cancel
Showing results for 
Search instead for 
Did you mean: 

Maintain user credential in Security Material CPI - upload ?

vijaymanikandan
Contributor
0 Kudos

Hi

Is there any way to upload multiple users and password in the security Material of CPI using Excel or notepad? We have to maintain around 30-40 user credentials. Just looking for an easier approach instead of maintaining one by one.

Br,

Vijay V

Accepted Solutions (1)

Accepted Solutions (1)

Sriprasadsbhat
Active Contributor
Dear Vijay,

There is no tool as such.But you can leverage below API for mass update of credentials provided you have input data in either in XML or JSON.

https://api.sap.com/api/SecurityContent/resource

You can perform POST operation below url

https://<TMN_URL>/cpi/api/v1/UserCredentials

Sample JSON input:

{
  "Name": "credentials name",
  "Kind": "default, successfactors or openconnectors",
  "Description": "descrption",
  "User": "user",
  "Password": "password",
  "CompanyId": "successfactors: company ID"
}

Regards,

Sriprasad Shivaram Bhat

vijaymanikandan
Contributor
0 Kudos

Hi

Thanks. I tried this and it did work but when I tried to update multiple users it fails. Not sure if its a format issue.

{
  "Name": "credentials name",
  "Kind": "default",
  "Description": "TEst",
  "User": "user1",
  "Password": "password",
  "CompanyId": "company ID"
},

{
  "Name": "credentials name1",
  "Kind": "default",
  "Description": "Test2",
  "User": "user2",
  "Password": "password",
  "CompanyId": "company ID"
}


Br,

Vijay V

Answers (2)

Answers (2)

former_member774412
Discoverer
0 Kudos

Hi Sriprasad,

When I am trying to use the above method to update the credential I am getting 403 error at my end. Do we required any specifics roles assign to my user ID ?

Thanks,

Amita

MortenWittrock
Active Contributor
0 Kudos

Hi Vijay

There's an OData API that will let you add user credentials using a program or script. Take a look at the Security Content API, specifically the User Credentials resource.

Regards,

Morten