Affan Hasan
Affan Hasan

Reputation: 344

Can we retrieve our machine serial number in our chrome extension?

Can we retrieve our machine serial number in our chrome extension?

For example I can get the serial number in windows by executing following command in the shell

wmic bios get serialnumber

How can I fetch this serial number in my chrome extension?

Upvotes: 1

Views: 2254

Answers (2)

Maarten Wolzak
Maarten Wolzak

Reputation: 2681

If your extension is force-installed by way of enterprise policy you can get the device serial number by using the chrome.enterprise.deviceAttributes endpoint: https://developer.chrome.com/docs/extensions/reference/enterprise_deviceAttributes/#method-getDeviceSerialNumber

Upvotes: 0

sowbug
sowbug

Reputation: 4672

No. Chrome extensions are designed to protect user privacy to the greatest practical extent, and one component of user privacy is controlling the ability of code to "fingerprint" the user. Read the EFF's discussion of fingerprinting for more.

I didn't mark your question as a duplicate, but the same answer applies to this question.

Upvotes: 2

Related Questions