cancel
Showing results for 
Search instead for 
Did you mean: 

Security Keywords

Jill_Joubert
Champ on-the-rise
Champ on-the-rise

Has anyone ever updated security keywords with a sql job, ran nightly?  Is it possible to do this in workflow or with unity api?  This would be a mass update for about 8,000 users.

13 REPLIES 13

Jill_Joubert
Champ on-the-rise
Champ on-the-rise

Thank you everyone!  That is exactly what I was looking for. 

Jill_Joubert
Champ on-the-rise
Champ on-the-rise

Sorry, one more level of detail that one of you may have seen before.

Is there a way to update or delete current user security keywords, via API or some other automated method?

 

Josh_Spisak1
Champ on-the-rise
Champ on-the-rise

There is a removesecuritykeyword in the same useradministration class.

Jill_Joubert
Champ on-the-rise
Champ on-the-rise

Hi Josh,  Thank you for that.  

I'm having a problem initializing that security keyword to pass to the method.  I don't know what i am doing wrong, but my error logs: "An Error occured while parsing a keyword value for Keyword Type 'Facility ID' (139), check the inner exception for details"

Have you attempted to do this before?

KeywordType keywordType = app.Core.KeywordTypes.Find("Facility Id");

User user = app.Core.GetUser("JILLJ");

SecurityKeywordList skList = app.Core.UserAdministration.GetSecurityKeywords(user);

SecurityKeyword sk = skList.Find(keywordType);

UserAdministration userAdmin = app.Core.UserAdministration;

userAdmin.RemoveSecurityKeyword(sk);

Thanks in advance for any help.  You are greatly appreciated!

Megan_Caraballo
Content Contributor
Content Contributor

Can you try running diagnostics console to see if more detailed error information is returned?