error message not clear enough when Special roles assignment is not possible via ManagePersonsAPI

Idea ID 2858573

error message not clear enough when Special roles assignment is not possible via ManagePersonsAPI

0 Votes

There are seven special roles which cannot be assigned to users via Manage Persons API: Favorite Views Owner, Financial Manager, CMP Agent, MT Administrator, MT Agent, Tenant Admin Role, Strong Identity Validation Bypass.
The output of the Job Status is 'Finished with error' with the reason that these roles don't exist, which is misleading.

I have two suggestions:
1. add the information that seven special roles cannot be assigned to users via Manage Persons API to the Manage Person API document (https://docs.microfocus.com/itom/SMAX:2020.11/ManagePersonsAPI).
2. change the reason for the Job Status 'Finished with error' due to special roles from 'roles don't exist' to 'special roles cannot be assigned via Manage Persons API'.

 

 

 

Tags (1)
3 Comments
Micro Focus Expert
Micro Focus Expert

Hello,

The roles are supported to be assigned using the API, but the "internal" role names are slightly different than the names visible in the UI.

Please try using the following names:

FavoritesAdminRole
tenantAdmin
CMPAgent
MTAgent
MTAdministrator
Reauthentication Bypass
Financial manager

This payload works for me:

{
	"operation": "CREATE_OR_UPDATE",
	"users": [{
		"properties": {
			"Upn": "brindusa"
		},
		"roles": {
			"ADD": [
				"tenantAdmin",
				"FavoritesAdminRole",
				"CMPAgent",
				"MTAgent",
				"MTAdministrator",
				"Reauthentication Bypass",
				"Financial manager"
			]
		}

	}]
}

 

 

Best regards,

Brindusa

Micro Focus Expert
Micro Focus Expert
Status changed to: Waiting for Votes

Thank you for sharing your idea! It’s open for comments and kudos, and we’re looking forward to input from the community. Once there is enough community traction, it will be further reviewed by the product team.

Micro Focus Expert
Micro Focus Expert
Status changed to: Already Offered

Please see Brindusa's comment for the correct names to use with the API.

Thanks, Steve

The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.