create issue only conrol owner

rinathombar
Tera Contributor

ifanyone know 

  • “Only the Control Owner or a member of the Owning Group for the control may create an issue.”

  •  Any other users (not the Owner or Owning Group members) are prevented from creating an Issue

1 ACCEPTED SOLUTION

Aditya_hublikar
Mega Sage

Hello @rinathombar ,

 

Once impersonate the owner of control and try to create an issue .Check once is it working or not ? 

There might any business rule which is restricting to create an issue .

 

 

If this helps you then mark it as helpful and accept as solution.

Regards,

Aditya

View solution in original post

5 REPLIES 5

Tanushree Maiti
Kilo Patron

Hi @rinathombar 

 

Check if these posts helps:

https://www.servicenow.com/community/grc-forum/what-is-the-function-of-owning-group-in-the-control-r...

 

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0998181

 

https://www.servicenow.com/community/grc-forum/assign-control-to-owning-group-instead-of-owner/m-p/1...

 

To restrict the creation of issues (or any record) ,so that only the designated Owner or members of the Owning Group can create them, you can use 

 Access Control Lists (ACLs)  OR BR for strict validation.

 

 

Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin:

rinathombar
Tera Contributor

Hello I create ACL and BR but not working 

acl script

(function executeRule(current, previous) {
    var control = new GlideRecord('sn_compliance_control');
    if (current.control && control.get(current.control)) {
        if (gs.getUserID() != control.owner) {
            gs.addErrorMessage("Only the Control Owner can create an Issue for this Control.");
            current.setAbortAction(true);
        }
    }
})(current, previous);

Aditya_hublikar
Mega Sage

Hello @rinathombar ,

 

Once impersonate the owner of control and try to create an issue .Check once is it working or not ? 

There might any business rule which is restricting to create an issue .

 

 

If this helps you then mark it as helpful and accept as solution.

Regards,

Aditya

I impersonate owner and check new button not visible and when system administrator has showing to create issue when but system adminsitstrator is not control owner