For security purpose I want to delete inactive user from shopify dashboard. Could you please give me suggestion how to do that.
Hi, @SupriyaShirote
Thanks for reaching out here for assistance!
I understand that you are wondering how to delete an inactive user from your Shopify dashboard. Can you confirm if this is in relation to a staff account on a specific Shopify store, or perhaps this is regarding your Shopify Partner dashboard? I see you are a Shopify Partner from your Community profile here.
If you want to remove a staff account from a store, then store owners and staff with the ‘add and remove staff’ permission can a remove a staff member’s account from a store. You can follow along with the instructions outlined on this resource here. Keep in mind you can’t undo this action, so make sure to select the correct staff account.
If this is in relation to managing staff accounts on the dashboard of your Shopify Partner organization, then we have some helpful information here. You can make various changes to your team accounts including editing permissions, changing their status and removing their account’s access to your Partner Dashboard entirely.
Before deleting any user account, ensure that the account is genuinely inactive and no longer needed. It’s also a good practice to inform the user in advance and provide them with an opportunity to download any necessary data or files associated with their account (if this is relevant and appropriate).
If you require any further Partner account assistance, feel free to reach out to our team directly by using the ‘support’ section of your Partner dashboard.
I want to remove a staff account from a store. Also I want user list
Is there any api is there to check access right and delete inactive user from shopify
Thanks for getting back to confirm!
I understand that you want to remove a staff account from the store - that’s certainly doable! As I mentioned in my previous reply, if you are the store owner, or if you are a staff member with the ‘add and remove staff’ permissions, you can go ahead and and remove a staff member’s account right from within your Shopify admin. Our help center resource here outlines this in further detail, but let me know if there’s anything unclear about this process.
You mentioned that you wanted a ‘user list’ - would it be possible to clarify further what sort of list you are referring to? If you simply need a list of all of the user accounts on your Shopify store, then you can get this by navigating to the Settings > Users and Permissions section of your Shopify admin. Under the Staff section you will see a list of all staff accounts.
As for the API questions you had, I would suggest checking out our developer documentation here to learn more about the type of information available. You can also feel free to create a new post over in the Partners and Developers section of the Shopify Community, where other Shopify Partners may be able to lend some assistance and guidance.
I am trying to get list of staff user including it’s permission.
I have tried with graphql API
{
shop {
name
staffMembers {
edges {
node {
id
privateData {
permissions
}
}
}
}
}
}
But I am facing this issue
{
“data”: null,
“errors”: [
{
“message”: “Access denied for staffMembers field.”,
“locations”: [
{
“line”: 7,
“column”: 5
}
],
“path”: [
“shop”,
“staffMembers”
],
“extensions”: {
“code”: “ACCESS_DENIED”,
“documentation”: “https://shopify.dev/api/usage/access-scopes”
}
}
],
“extensions”: {
“cost”: {
“requestedQueryCost”: 3,
“actualQueryCost”: 3,
“throttleStatus”: {
“maximumAvailable”: 10000.0,
“currentlyAvailable”: 9997,
“restoreRate”: 500.0
}
}
}
}
Do you have full permission? The error says Access denied for staffMembers field
don’t have read user access scope