Skip to main content
Nintex Community Menu Bar

View/Amend K2 Roles outside of workspace?

  • September 13, 2017
  • 5 replies
  • 29 views

Hi,

 

Does anyone know if it is possible to view/amend K2 roles outside of workspace? 

 

I want to be able to add/remove people from K2 roles via a view.  Second, search by a username and see what roles they are part of.

 

Kind Regards

Sana

5 replies

Forum|alt.badge.img+6
  • September 13, 2017

HI 


 


I am not too sure if this is what you are looking for however please see the link below, it shows how to create a K2 role using API:


 


http://help.k2.com/onlinehelp/k2blackpearl/devref/4.7/default.htm#how_to_create_a_role.html


 


Regards


 


Forum|alt.badge.img+6
  • September 13, 2017

Forum|alt.badge.img+13
  • September 13, 2017

Hello,


 


There isn’t an out of the box service object that allows you to manage (add/remove) K2 Roles. There is, however, a User Role Manager service with a “Role’ smartobject which you may utilize to retrieve the Roles and display it on a View. 


  • Author
  • September 20, 2017

Thank you.  4.7 K2 Management Page is exactly what I was looking for.  Unfortunately, we are not able to move from 4.6.11 anytime soon.  Not on required Windows Server yet.

 

Programmatically setting a role, is not ideal as I needed to set something up for non techny people to manage.  

 

User Role Manager, good for showing a list.  Shame that I can't add/remove users from it.   Thanks I might set that up for now.


Forum|alt.badge.img+18
  • September 20, 2017

If really needed, it may be possible to develop a custom service broker to interact with roles using the SourceCode.HostClientAPI and the SourceCode.Security.UserRoleManager.Management assemblies:


 


https://help.k2.com/onlinehelp/k2blackpearl/devref/4.7/default.htm#Custom_Service_Brokers.htm


http://help.k2.com/onlinehelp/k2blackpearl/devref/4.7/default.htm#K2ServerSamples.htm


 


Then create SmartObject(s) and build a view for interacting with roles.