Keywords.validateAssignRights (Method)

Returns a structure that contains lists of the keywords a user can and cannot assign. If a user has rights to create keywords, all words are allowed. If a user does not, the user can only add keywords that already exist to a page.

Returns:

Keywords_validateAssignRights_Result (struct)

Each row of the returned query results has the following fields:

Field Name Type Description
allowed KeywordList_EmptyString A comma-delimited list of keywords that the user can add either because they do not exist or because the user has rights to create keywords.
disallowed KeywordList_EmptyString A comma-delimited list of keywords that the user cannot add either because they do not exist or because the user does not have rights to create keywords.

Arguments:

Name Type Required Description
subsiteIDOrURL SubsiteIDorURL_EmptyString Required The ID of the target subsite, or the server relative path to the target subsite, or an empty string for the current subsite.
keywordList KeywordList_EmptyString Required A comma-delimited list of keywords.

Context:

License Requirements Keywords
Permission Requirements Contributor
Deny Context None
Require Context AuthoringEnabled
Author Lock (not required)
Transaction Logging Transaction logging is disabled for this method
Customization This method may be customized at the site level

Error Codes:

None

Notes:

None