To get and store information about data such as privileges, privileges on objects, rights, etc.:
- Get a list of all operations from a reference
- Specify the operation codes for the necessary operations.
For example, we will use Undo receipt with code 172 and Prepare later with code 122 - Take the value of the Fright attribute as a code
- Create a new role and add the rights to the necessary operations — Undo receipt and Prepare later
Make the ROLES request and get the OpRight value
<Item Ident="1000146" Name="TestRole" Code="9" Status="rsActive"> <OpRights> <Data BinaryCoding="Base64Text">AAAAAAAAAAAAAAAAAAAABAAAAAAAEAAAAAAAAAAAAAA=</Data> </OpRights> </Item>
- Translate to bitstream
00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000100 00000000 00000000
00000000 00000000 00000000 00010000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 - It turns out that bits 126 and 172 are set. You can use the online converter to check your translation. The results must match.
If you're having problems, make sure you're reading the bit order correctly — it's reversed. For example, two operations are included here:
- 254: Cash Management application
- 014: Code from keyboard
- Bits are counted from low to high, i.e. 01000000 is bit 7, and 00000000 01000000 is bit 14, because the first bit is a null operation, 00000000 00001000 is bit 11.
00000000 01000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000
00000000 01000000