cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Nintex Newbie

Issue with Office 365 Update Item Permissions-Action

Jump to solution

I've created a simple Nintex workflow with one action to update item permissions.  See attachments below. 

 

It keeps returning the error, 'the username format is invalid'.  Under User or Group Name in the configuration I've both tried to key in a Display Name, email address and Sharepoint group but with the same results. 

 

On the same list item I've created Sharepoint 2010 workflow to update item permissions, and it runs with a successful result. 

 

Any ideas what's causing the error?

 

SP 2010 Workflow to update item permissionsSP 2010 Workflow to update item permissions  

 

Nintex worfklowNintex worfklowUpdate item permissions-action config 2Update item permissions-action config 2Update Item Permissions-action config 1Update Item Permissions-action config 1

Labels: (1)
Tags (1)
0 Kudos
Reply
4 Replies
Highlighted
Nintex Newbie

Re: Issue with Office 365 Update Item Permissions-Action

Jump to solution

One thing I noticed is that you have the Filter set to update all list item permissions. You would probably want to set that to "Update items only when the following is set to":

  • Update items when the column: ID
  • is equal to
  • {Current item: ID}

 

Also, you should output the value of the Created By user to the History list to see what the value is.

0 Kudos
Reply
Highlighted
Nintex Newbie

Re: Issue with Office 365 Update Item Permissions-Action

Jump to solution

I did as suggested but with the same result.  :catsad:  See screenshot.  It also shows the value of the Created By user to History.  

 

Thank you!

 

Workflow InformationWorkflow Information

0 Kudos
Reply
Highlighted
Automation Master
Automation Master

Re: Issue with Office 365 Update Item Permissions-Action

Jump to solution
Hi,

try to use the "Advanced Lookup" option, to put the "Created By" using the "Email" property.
If that doesn't work, create a text variable and assign it, again by using "Advanced Lookup" created by user's email. Then use the variable instead of the field.

Regards,
Tomasz
0 Kudos
Reply
Highlighted
Nintex Employee
Nintex Employee

Re: Issue with Office 365 Update Item Permissions-Action

Jump to solution

The issue was resolved by reviewing the account used within the Connection Manager.

The account used was in the following format username@domain.sharepoint.com or using MFA authentication. After creating a new service account in the following format username@domain.onmicrosoft.com the workflow completed as expected.

 

Reviewing the following knowledge based article helped resolve the issue.

Office 365 Actions Fail With Error: 'The Username Is Invalid Or Does Not Exist'

View solution in original post

0 Kudos
Reply